From 1c065fd7021f4cfaab5033ddf10668d5f9655016 Mon Sep 17 00:00:00 2001 From: Karan Sharma <55722391+ksharma-xyz@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:39:07 +1100 Subject: [PATCH] Create :core:analytics module --- core/analytics/build.gradle.kts | 48 +++++++++++++++++++++++++++++++++ settings.gradle.kts | 1 + 2 files changed, 49 insertions(+) create mode 100644 core/analytics/build.gradle.kts diff --git a/core/analytics/build.gradle.kts b/core/analytics/build.gradle.kts new file mode 100644 index 00000000..cce00b8b --- /dev/null +++ b/core/analytics/build.gradle.kts @@ -0,0 +1,48 @@ +plugins { + alias(libs.plugins.krail.android.library) + alias(libs.plugins.krail.kotlin.multiplatform) + alias(libs.plugins.krail.compose.multiplatform) + alias(libs.plugins.kotlin.serialization) + alias(libs.plugins.ksp) + alias(libs.plugins.compose.compiler) +} + +android { + namespace = "xyz.ksharma.krail.core.analytics" +} + +kotlin { + applyDefaultHierarchyTemplate() + + androidTarget() + + iosArm64() + iosSimulatorArm64() + + java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion)) + } + } + + sourceSets { + androidMain { + dependencies { + api(libs.di.koinAndroid) + } + } + + commonMain { + dependencies { + implementation(libs.kotlinx.serialization.json) + implementation(compose.runtime) + api(libs.di.koinComposeViewmodel) + implementation(libs.slf4j.simple) + implementation(libs.firebase.gitLiveAnalytics) + } + } + + iosMain.dependencies { + } + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 1937e211..26a803e6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -33,6 +33,7 @@ rootProject.name = "Krail" //include(":android-app") include(":composeApp") include(":taj") // Design System +include(":core:analytics") include(":core:app-info") include(":core:date-time") include(":feature:trip-planner:ui")