From f3e4175a9cb7e1e834e3c2d8a9e672d92f119722 Mon Sep 17 00:00:00 2001 From: Krzysztof Borowy <6444719+krizzu@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:56:34 +0200 Subject: [PATCH 1/2] docs for rn 0.73 --- packages/website/docs/advanced/Next.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/packages/website/docs/advanced/Next.md b/packages/website/docs/advanced/Next.md index fbad5418..b3828306 100644 --- a/packages/website/docs/advanced/Next.md +++ b/packages/website/docs/advanced/Next.md @@ -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** From ea8780bca964a64a5d606705a09c039abf0dcb55 Mon Sep 17 00:00:00 2001 From: Krzysztof Borowy <6444719+krizzu@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:50:52 +0200 Subject: [PATCH 2/2] pad it --- packages/website/docs/advanced/Next.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/website/docs/advanced/Next.md b/packages/website/docs/advanced/Next.md index b3828306..f7cd5eff 100644 --- a/packages/website/docs/advanced/Next.md +++ b/packages/website/docs/advanced/Next.md @@ -51,17 +51,17 @@ For React Native below version 0.73, you need to apply Kotlin plugin to your pro In your project's android directory, locate root build.gradle file. Add Kotlin dependency to the buildscript: ```diff -buildscript { - ext { - // other extensions + buildscript { + ext { + // other extensions + kotlinVersion = '1.9.24' - } + } - dependencies { - // other dependencies + dependencies { + // other dependencies + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" - } -} + } + } ```