Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Mention kotlin plugin setup for RN < 0.73 #1131

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions packages/website/docs/advanced/Next.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,34 @@ When you enable the feature again, the new database is **not** recreated, becaus

### Enable

#### Add config flag

In your project's `android` directory, locate `gradle.properties` file (if it does not exist, create one) and add the line:
```groovy
AsyncStorage_useNextStorage=true
```

#### React Native < 0.73

For React Native below version 0.73, you need to apply Kotlin plugin to your project.
In your project's android directory, locate root build.gradle file. Add Kotlin dependency to the buildscript:

```diff
buildscript {
ext {
// other extensions
+ kotlinVersion = '1.9.24'
}

dependencies {
// other dependencies
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

```


### Configuration

**Kotlin version**
Expand Down