File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,9 @@ if( newDbSize != null && newDbSize.isLong()) {
61
61
62
62
// Instead of reusing AsyncTask thread pool, AsyncStorage can use its own executor
63
63
def useDedicatedExecutor = getFlagOrDefault(' AsyncStorage_dedicatedExecutor' , false )
64
-
65
- apply plugin : ' com.android.library'
66
-
67
- // todo: decide the name
68
64
def useRoomImplementation = getFlagOrDefault(" AsyncStorage_useRoomLibrary" , false )
69
65
66
+ apply plugin : ' com.android.library'
70
67
if (useRoomImplementation) {
71
68
apply plugin : ' kotlin-android'
72
69
apply plugin : ' kotlin-kapt'
@@ -97,6 +94,16 @@ repositories {
97
94
}
98
95
99
96
dependencies {
97
+
98
+ if (useRoomImplementation) {
99
+ def room_version = " 2.2.6"
100
+ def coroutines_version = " 1.3.9"
101
+
102
+ implementation " androidx.room:room-runtime:$room_version "
103
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version "
104
+ kapt " androidx.room:room-compiler:$room_version "
105
+ }
106
+
100
107
// noinspection GradleDynamicVersion
101
108
implementation ' com.facebook.react:react-native:+' // From node_modules
102
109
}
You can’t perform that action at this time.
0 commit comments