@@ -47,14 +47,19 @@ buildscript {
47
47
? rootProject. ext[' kotlinVersion' ]
48
48
: rootProject. hasProperty(' AsyncStorage_kotlinVersion' )
49
49
? 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'
51
55
52
56
repositories {
53
57
mavenCentral()
54
58
google()
55
59
}
56
60
dependencies {
57
61
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$asyncStorageKtVersion "
62
+ classpath " com.google.devtools.ksp:symbol-processing-gradle-plugin:$kspVersion "
58
63
}
59
64
}
60
65
@@ -76,8 +81,8 @@ def useNextStorage = getFlagOrDefault("AsyncStorage_useNextStorage", false)
76
81
77
82
apply plugin : ' com.android.library'
78
83
if (useNextStorage) {
84
+ apply plugin : ' com.google.devtools.ksp'
79
85
apply plugin : ' kotlin-android'
80
- apply plugin : ' kotlin-kapt'
81
86
apply from : ' ./testresults.gradle'
82
87
}
83
88
@@ -153,12 +158,7 @@ dependencies {
153
158
154
159
if (useNextStorage) {
155
160
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"
162
162
def junit_version = " 4.13.2"
163
163
def robolectric_version = " 4.7.3"
164
164
def truth_version = " 1.1.3"
@@ -167,18 +167,17 @@ dependencies {
167
167
168
168
implementation " androidx.room:room-runtime:$room_version "
169
169
implementation " androidx.room:room-ktx:$room_version "
170
- implementation " org.jetbrains.kotlin:kotlin-reflect: $k otlinReflect_version "
170
+ ksp " androidx.room:room-compiler: $r oom_version "
171
171
172
172
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version "
173
- kapt " androidx.room:room-compiler:$room_version "
174
173
175
174
testImplementation " junit:junit:$junit_version "
176
175
testImplementation " androidx.test:runner:$androidxtest_version "
177
176
testImplementation " androidx.test:rules:$androidxtest_version "
178
177
testImplementation " androidx.test.ext:junit:$androidtest_junit_version "
179
178
testImplementation " org.robolectric:robolectric:$robolectric_version "
180
179
testImplementation " com.google.truth:truth:$truth_version "
181
- testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:$c oroutinesTest_version "
180
+ testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:$c oroutines_version "
182
181
}
183
182
184
183
implementation ' com.facebook.react:react-native:+' // from node_modules
0 commit comments