Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding crashlytics #49

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity(), KoinComponent {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startKoin(this)

setContent {
MainView(loginViewModel, directoryViewModel, slideshowViewModel, playlistViewModel)
}
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down