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")