diff --git a/app/build.gradle.kts b/app/build.gradle.kts index dcf5ef3..964ef87 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -60,7 +60,10 @@ android { isShrinkResources = true signingConfig = signingConfigs.getByName(BuildType.RELEASE.name) - proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) } } compileOptions { @@ -92,6 +95,9 @@ dependencies { ksp(libs.hilt.compiler) implementation(libs.hilt.navigation.compose) implementation(libs.matomo) + implementation(libs.clarity) + implementation(libs.ga4) + // Compose implementation(platform(libs.compose.bom)) diff --git a/build.gradle.kts b/build.gradle.kts index 168859e..0a04f6c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,12 +15,17 @@ plugins { // Agp alias(libs.plugins.android.library) apply false - //Hilt + // Hilt alias(libs.plugins.hilt) apply false - - //Kotlin serialization + // Kotlin serialization alias(libs.plugins.kotlin.serialization) apply false + // Firebase crashlytics + alias(libs.plugins.firebaseCrashlytics) apply false + + // Google services + alias(libs.plugins.googleServices) apply false + } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b58fe56..2cf33e7 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -39,6 +39,7 @@ agp = "8.7.3" kotlin = "2.0.0" ksp = "2.0.0-1.0.23" junitVersion = "1.2.1" +googleServicesPlugin = "4.4.2" # Matomo matomo = "4.3" @@ -46,9 +47,18 @@ matomo = "4.3" # Serialization serialization = "1.7.1" +# Compose navigation navigationCompose = "2.8.2" +# Crashlytics +firebaseCrashlyticsPlugin = "3.0.2" +firebaseCrashlyticsKtx = "19.2.0" +# Clarity +clarityVersion = "1.3.2" + +# GA4 +ga4 = "22.1.2" [libraries] @@ -80,9 +90,6 @@ compose-material3 = { group = "androidx.compose.material3", name = "material3" } # Material material = { group = "com.google.android.material", name = "material", version.ref = "material" } -# Matomo -matomo = { module = "com.github.matomo-org:matomo-sdk-android", version.ref = "matomo" } - # Kotlin serizalization kotlin-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" } @@ -100,6 +107,15 @@ test-androidx-junit = { group = "androidx.test.ext", name = "junit-ktx", version test-espresso = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +# Matomo +matomo = { module = "com.github.matomo-org:matomo-sdk-android", version.ref = "matomo" } + +# Clarity +clarity = { group = "com.microsoft.clarity", name = "clarity", version.ref = "clarityVersion" } + +# GA4 (Firebase Analytics) +ga4 = { module = "com.google.firebase:firebase-analytics", version.ref = "ga4" } + [plugins] android-application = { id = "com.android.application", version.ref = "agp" } kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } @@ -108,8 +124,8 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } android-library = { id = "com.android.library", version.ref = "agp" } hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } - - +firebaseCrashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebaseCrashlyticsPlugin" } +googleServices = { id = "com.google.gms.google-services", version.ref = "googleServicesPlugin" } [bundles] androidx = ["androidx-core-ktx", "androidx-activity-compose"]