Browse Source

Upgrade Koin to 2.0

cooperku_kdanmobile 5 years ago
parent
commit
f1c29bcd11
2 changed files with 8 additions and 1 deletions
  1. 1 1
      PDFReaderReaderModule
  2. 7 0
      app/build.gradle

+ 1 - 1
PDFReaderReaderModule

@@ -1 +1 @@
-Subproject commit bb688980e6ab5f3424daf21e9ebf69be6b737aa4
+Subproject commit 5b415efd91d5f32477f21b6590ed7c1f9780f3ab

+ 7 - 0
app/build.gradle

@@ -54,6 +54,8 @@ android {
 }
 
 dependencies {
+    def koinVersion = "2.0.0"
+
     implementation fileTree(dir: 'libs', include: ['*.jar'])
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
     implementation 'com.android.support:appcompat-v7:28.0.0'
@@ -63,6 +65,11 @@ dependencies {
     androidTestImplementation 'com.android.support.test:runner:0.5'
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
 
+    // Koin for Android
+    implementation "org.koin:koin-android:$koinVersion"
+    implementation "org.koin:koin-android-viewmodel:$koinVersion"
+    implementation "org.koin:koin-java:$koinVersion"
+
     implementation project(':PDFReaderReaderModule')
     implementation project(':KdanBaseModule')
 }