Skip to content

Commit 3d3e875

Browse files
author
Krzysztof Borowy
committed
bump version, move to ksp
1 parent 622d505 commit 3d3e875

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

packages/default-storage/android/build.gradle

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ buildscript {
4747
? rootProject.ext['kotlinVersion']
4848
: rootProject.hasProperty('AsyncStorage_kotlinVersion')
4949
? rootProject.properties['AsyncStorage_kotlinVersion']
50-
: '1.8.10'
50+
: '1.9.20'
51+
52+
def kspVersion = rootProject.hasProperty("AsyncStorage_next_kspVersion")
53+
? rootProject.properties["AsyncStorage_next_kspVersion"]
54+
: '1.9.20-1.0.14'
5155

5256
repositories {
5357
mavenCentral()
5458
google()
5559
}
5660
dependencies {
5761
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$asyncStorageKtVersion"
62+
classpath "com.google.devtools.ksp:symbol-processing-gradle-plugin:$kspVersion"
5863
}
5964
}
6065

@@ -76,8 +81,8 @@ def useNextStorage = getFlagOrDefault("AsyncStorage_useNextStorage", false)
7681

7782
apply plugin: 'com.android.library'
7883
if (useNextStorage) {
84+
apply plugin: 'com.google.devtools.ksp'
7985
apply plugin: 'kotlin-android'
80-
apply plugin: 'kotlin-kapt'
8186
apply from: './testresults.gradle'
8287
}
8388

@@ -153,12 +158,7 @@ dependencies {
153158

154159
if (useNextStorage) {
155160
def room_version = getVersionOrDefault('AsyncStorage_next_roomVersion', '2.4.3')
156-
def coroutines_version = "1.6.4"
157-
def coroutinesTest_version = "1.6.4"
158-
// if we don't provide explicit dependency on reflection, kotlin plugin
159-
// would add one automatically, probably a version that is not compatible with
160-
// used kotlin
161-
def kotlinReflect_version = project.ext.asyncStorageKtVersion
161+
def coroutines_version = "1.7.3"
162162
def junit_version = "4.13.2"
163163
def robolectric_version = "4.7.3"
164164
def truth_version = "1.1.3"
@@ -167,18 +167,17 @@ dependencies {
167167

168168
implementation "androidx.room:room-runtime:$room_version"
169169
implementation "androidx.room:room-ktx:$room_version"
170-
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinReflect_version"
170+
ksp "androidx.room:room-compiler:$room_version"
171171

172172
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
173-
kapt "androidx.room:room-compiler:$room_version"
174173

175174
testImplementation "junit:junit:$junit_version"
176175
testImplementation "androidx.test:runner:$androidxtest_version"
177176
testImplementation "androidx.test:rules:$androidxtest_version"
178177
testImplementation "androidx.test.ext:junit:$androidtest_junit_version"
179178
testImplementation "org.robolectric:robolectric:$robolectric_version"
180179
testImplementation "com.google.truth:truth:$truth_version"
181-
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesTest_version"
180+
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
182181
}
183182

184183
implementation 'com.facebook.react:react-native:+' // from node_modules

packages/default-storage/example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ newArchEnabled=true
4242
#ANDROID_NDK_VERSION=21.4.7075529
4343

4444
# Version of Kotlin to build against.
45-
KOTLIN_VERSION=1.8.10
45+
KOTLIN_VERSION=1.9.20
4646

4747
# This is an example of how you can change default DB size (6MB) to 10MB
4848
#AsyncStorage_db_size_in_MB=10

0 commit comments

Comments
 (0)