diff --git a/.gitignore b/.gitignore index 8cef73e5..aef2159a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ common/src/commonMain/kotlin/me/kevinschildhorn/common/network/ftps/TestingLogin androidApp/build/kotlin/compileDebugKotlinAndroid/cacheable/caches-jvm/lookups/lookups.tab_i.len desktopApp/build +androidApp/google-services.json diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts index af51030f..acef0180 100644 --- a/androidApp/build.gradle.kts +++ b/androidApp/build.gradle.kts @@ -2,6 +2,8 @@ plugins { kotlin("multiplatform") id("com.android.application") id("org.jetbrains.compose") + id("com.google.gms.google-services") + id("com.google.firebase.crashlytics") } kotlin { @@ -11,6 +13,7 @@ kotlin { dependencies { implementation(project(":shared")) implementation("io.insert-koin:koin-android:3.4.0") + implementation("com.google.firebase:firebase-crashlytics:18.6.0") } } } diff --git a/androidApp/src/androidMain/kotlin/com/kevinschildhorn/MainActivity.kt b/androidApp/src/androidMain/kotlin/com/kevinschildhorn/MainActivity.kt index c6cee56c..b9d912e0 100644 --- a/androidApp/src/androidMain/kotlin/com/kevinschildhorn/MainActivity.kt +++ b/androidApp/src/androidMain/kotlin/com/kevinschildhorn/MainActivity.kt @@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity(), KoinComponent { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) startKoin(this) - + setContent { MainView(loginViewModel, directoryViewModel, slideshowViewModel, playlistViewModel) } diff --git a/build.gradle.kts b/build.gradle.kts index 28722ab6..b9249406 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,4 +9,6 @@ plugins { id("dev.icerock.mobile.multiplatform-resources").version("0.23.0").apply(false) id("app.cash.sqldelight").version("2.0.1").apply(false) kotlin("plugin.serialization").version("1.9.21").apply(false) + id("com.google.firebase.crashlytics").version("2.9.9").apply(false) + id("com.google.gms.google-services").version("4.4.0").apply(false) } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 94e35985..f00f542d 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -5,6 +5,8 @@ plugins { id("org.jlleitschuh.gradle.ktlint") id("dev.icerock.mobile.multiplatform-resources") id("app.cash.sqldelight") + id("com.google.firebase.crashlytics") + kotlin("plugin.serialization") } @@ -34,9 +36,7 @@ kotlin { @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) implementation(compose.components.resources) implementation("br.com.devsrsouza.compose.icons:eva-icons:1.1.0") - implementation("io.github.reactivecircus.cache4k:cache4k:0.12.0") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2") implementation("io.insert-koin:koin-core:3.4.0") implementation("androidx.security:security-crypto:1.1.0-alpha06") diff --git a/shared/src/commonMain/kotlin/com/kevinschildhorn/fotopresenter/Koin.kt b/shared/src/commonMain/kotlin/com/kevinschildhorn/fotopresenter/Koin.kt index a28cfaab..7ea15b53 100644 --- a/shared/src/commonMain/kotlin/com/kevinschildhorn/fotopresenter/Koin.kt +++ b/shared/src/commonMain/kotlin/com/kevinschildhorn/fotopresenter/Koin.kt @@ -30,8 +30,10 @@ import com.kevinschildhorn.fotopresenter.ui.shared.SharedCache import org.koin.core.module.Module import org.koin.dsl.module + val baseLogger = Logger(LoggerConfig.default) + val commonModule = module {