Skip to content

Commit 749d652

Browse files
committed
docs: migration update
1 parent 4a4e271 commit 749d652

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ It provides a simple API compatible with the [Web Storage API](https://developer
1919
|-----------------|-----------------|
2020
| React Native | 0.76 |
2121
| Kotlin | 2.1.0 |
22-
| KSP | 2.1.0-1.0.28 |
2322
| Android min sdk | 24 |
2423

2524

@@ -45,8 +44,8 @@ allprojects {
4544
// ... others like google(), mavenCentral()
4645
4746
maven {
48-
// or uri("path/to/node_modules/@react-native-async-storage/async-storage/android/local_repo")
4947
url = uri(project(":react-native-async-storage_async-storage").file("local_repo"))
48+
// or uri("path/to/node_modules/@react-native-async-storage/async-storage/android/local_repo")
5049
}
5150
}
5251
}

docs/migration-to-3.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@ AsyncStorage v3 introduces a few breaking changes to simplify the API and make i
44

55
## Key changes:
66

7+
### Requirements
8+
9+
Here is the table describing minimum requirements for v3:
10+
11+
| Component | Minimum Version |
12+
|-----------------|-----------------|
13+
| React Native | 0.76 |
14+
| Kotlin | 2.1.0 |
15+
| Android min sdk | 24 |
16+
17+
18+
719
### Installation changes
820

9-
Android requires a local Maven repository to be added to your `build.gradle(.kts)` file. Head over to the [Installation step for Android](index.md#android) to learn more.
21+
Android requires a local Maven repository to be added to your `android/build.gradle(.kts)`:
22+
```groovy
23+
allprojects {
24+
repositories {
25+
// ... others like google(), mavenCentral()
26+
27+
maven {
28+
url = uri(project(":react-native-async-storage_async-storage").file("local_repo"))
29+
// or uri("path/to/node_modules/@react-native-async-storage/async-storage/android/local_repo")
30+
}
31+
}
32+
}
33+
```
1034

1135
### `AsyncStorage` is now instance-based
1236

0 commit comments

Comments
 (0)