Skip to content

Commit 7fb5376

Browse files
author
Krzysztof Borowy
committed
room deps
1 parent d3128c3 commit 7fb5376

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

android/build.gradle

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,9 @@ if( newDbSize != null && newDbSize.isLong()) {
6161

6262
// Instead of reusing AsyncTask thread pool, AsyncStorage can use its own executor
6363
def useDedicatedExecutor = getFlagOrDefault('AsyncStorage_dedicatedExecutor', false)
64-
65-
apply plugin: 'com.android.library'
66-
67-
// todo: decide the name
6864
def useRoomImplementation = getFlagOrDefault("AsyncStorage_useRoomLibrary", false)
6965

66+
apply plugin: 'com.android.library'
7067
if(useRoomImplementation) {
7168
apply plugin: 'kotlin-android'
7269
apply plugin: 'kotlin-kapt'
@@ -97,6 +94,16 @@ repositories {
9794
}
9895

9996
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+
100107
//noinspection GradleDynamicVersion
101108
implementation 'com.facebook.react:react-native:+' // From node_modules
102109
}

0 commit comments

Comments
 (0)