@@ -19,13 +19,11 @@ buildscript {
19
19
20
20
21
21
apply plugin : ' com.android.library'
22
- apply from : " config.gradle"
22
+ apply from : ' config.gradle'
23
23
24
24
boolean isNewArchitectureEnabled = ext.AsyncStorageConfig . isNewArchitectureEnabled
25
25
boolean useNextStorage = ext.AsyncStorageConfig . useNextStorage
26
26
27
- println (" [AsyncStorage] Config: ${ ext.AsyncStorageConfig} " )
28
-
29
27
if (useNextStorage) {
30
28
apply plugin : ' com.google.devtools.ksp'
31
29
apply plugin : ' kotlin-android'
@@ -103,26 +101,20 @@ repositories {
103
101
dependencies {
104
102
if (useNextStorage) {
105
103
def room_version = project.ext.AsyncStorageConfig . roomVersion
106
- def coroutines_version = " 1.7.3"
107
- def junit_version = " 4.13.2"
108
- def robolectric_version = " 4.11.1"
109
- def truth_version = " 1.1.3"
110
- def androidxtest_version = " 1.4.0"
111
- def androidtest_junit_version = " 1.1.3"
112
104
113
105
implementation " androidx.room:room-runtime:$room_version "
114
106
implementation " androidx.room:room-ktx:$room_version "
115
107
ksp " androidx.room:room-compiler:$room_version "
116
108
117
- implementation " org.jetbrains.kotlinx:kotlinx- coroutines-android: $c oroutines_version "
109
+ implementation project.ext.AsyncStorageLibs . coroutines
118
110
119
- testImplementation " junit:junit: $j unit_version "
120
- testImplementation " androidx.test:runner: $a ndroidxtest_version "
121
- testImplementation " androidx.test:rules: $a ndroidxtest_version "
122
- testImplementation " androidx.test. ext:junit: $a ndroidtest_junit_version "
123
- testImplementation " org.robolectric:robolectric: $r obolectric_version "
124
- testImplementation " com.google.truth:truth: $t ruth_version "
125
- testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test: $c oroutines_version "
111
+ testImplementation project.ext.AsyncStorageLibs . testCoroutines
112
+ testImplementation project.ext.AsyncStorageLibs . testJunit
113
+ testImplementation project.ext.AsyncStorageLibs . testExtJunit
114
+ testImplementation project. ext.AsyncStorageLibs . testRunner
115
+ testImplementation project.ext.AsyncStorageLibs . testRules
116
+ testImplementation project.ext.AsyncStorageLibs . testRobolectric
117
+ testImplementation project.ext.AsyncStorageLibs . testTruth
126
118
}
127
119
128
120
implementation ' com.facebook.react:react-native:+' // from node_modules
0 commit comments