Added koin, databinding and navigation components

Converted App class and Main activity to Kotlin. With that refactored fields within App class to allow lazy initialization

BEWARE: at this point the navigation is very much broken, won't let you anywhere beyond home screen
This commit is contained in:
Viktor De Pasquale
2019-04-11 20:01:49 +02:00
parent e035523eb8
commit 2d58c725e0
32 changed files with 524 additions and 380 deletions

View File

@@ -30,6 +30,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
@@ -64,12 +68,13 @@ dependencies {
implementation "com.jakewharton:butterknife-runtime:${butterKnifeVersion}"
kapt "com.jakewharton:butterknife-compiler:${butterKnifeVersion}"
implementation ("com.github.skoumalcz:teanity:0.3.3") {
exclude group: 'com.karumi', module: 'dexter'
exclude group: 'com.evernote', module: 'android-state'
def koin = "2.0.0-rc-2"
implementation("org.koin:koin-core:${koin}")
implementation("org.koin:koin-android:${koin}")
implementation("org.koin:koin-androidx-viewmodel:${koin}")
implementation("com.github.skoumalcz:teanity:0.3.3") {
exclude group: 'androidx.work', module: 'work-runtime-ktx'
exclude group: 'androidx.room', module: 'room-runtime'
exclude group: 'io.reactivex.rxjava2', module: 'rxkotlin' //hopefully not forever
exclude group: 'io.reactivex.rxjava2', module: 'rxandroid' //hopefully not forever
}
}