From 39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 17 Apr 2021 17:08:19 -0700 Subject: Start hilt injection --- app/build.gradle | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 357d21d4..5a3def45 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-parcelize' apply plugin: 'kotlin-kapt' +apply plugin: 'dagger.hilt.android.plugin' //apply plugin: 'com.getkeepsafe.dexcount' apply plugin: 'com.gladed.androidgitversion' @@ -52,7 +53,7 @@ android { testInstrumentationRunner "com.pitchedapps.frost.FrostTestRunner" javaCompileOptions { annotationProcessorOptions { - arguments = ["room.schemaLocation": "$projectDir/src/schemas".toString()] + arguments += ["room.schemaLocation": "$projectDir/src/schemas".toString()] } } } @@ -274,6 +275,13 @@ dependencies { testImplementation kau.Dependencies.koinTest androidTestImplementation kau.Dependencies.koinTest + implementation kau.Dependencies.hilt + kapt kau.Dependencies.hiltCompiler + testImplementation kau.Dependencies.hilt + kaptTest kau.Dependencies.hiltCompiler + androidTestImplementation kau.Dependencies.hilt + kaptAndroidTest kau.Dependencies.hiltCompiler + implementation kau.Dependencies.coroutines implementation "org.apache.commons:commons-text:${Versions.apacheCommonsText}" @@ -313,6 +321,10 @@ dependencies { } +kapt { + correctErrorTypes true +} + def kotlinResolutions = ['kotlin-reflect', 'kotlin-stdlib', 'kotlin-stdlib-jdk7', -- cgit v1.2.3 From 6abaf596e4db5a36057f6a8acf31b72f57a12e18 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 17 Apr 2021 20:06:36 -0700 Subject: Remove koin dependency in production --- .idea/jarRepositories.xml | 5 +++ app/build.gradle | 1 - .../main/kotlin/com/pitchedapps/frost/FrostApp.kt | 38 +------------------- .../pitchedapps/frost/activities/ImageActivity.kt | 2 +- .../frost/activities/WebOverlayActivity.kt | 2 +- .../kotlin/com/pitchedapps/frost/db/Database.kt | 9 ----- .../com/pitchedapps/frost/facebook/FbCookie.kt | 5 --- .../com/pitchedapps/frost/glide/GlideUtils.kt | 3 +- .../pitchedapps/frost/injectors/ThemeProvider.kt | 10 ------ .../kotlin/com/pitchedapps/frost/prefs/Prefs.kt | 29 +-------------- .../pitchedapps/frost/services/UpdateReceiver.kt | 3 +- .../com/pitchedapps/frost/settings/Appearance.kt | 2 +- .../kotlin/com/pitchedapps/frost/settings/Debug.kt | 14 +++++--- .../pitchedapps/frost/settings/Notifications.kt | 2 +- .../kotlin/com/pitchedapps/frost/utils/Utils.kt | 42 +++++++++++++--------- .../com/pitchedapps/frost/utils/WebContextMenu.kt | 14 ++++---- .../pitchedapps/frost/views/FrostVideoViewer.kt | 3 +- .../com/pitchedapps/frost/views/FrostViewPager.kt | 7 ++-- .../com/pitchedapps/frost/views/FrostWebView.kt | 2 +- .../com/pitchedapps/frost/web/DebugWebView.kt | 3 +- .../pitchedapps/frost/web/FrostChromeClients.kt | 8 +++-- .../kotlin/com/pitchedapps/frost/web/FrostJSI.kt | 3 +- 22 files changed, 70 insertions(+), 137 deletions(-) (limited to 'app/build.gradle') diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index eb2873e7..1e2d92c1 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -26,5 +26,10 @@