diff --git a/core/analytics/.gitignore b/core/analytics/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/core/analytics/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/core/analytics/build.gradle.kts b/core/analytics/build.gradle.kts new file mode 100644 index 00000000..2aec1b46 --- /dev/null +++ b/core/analytics/build.gradle.kts @@ -0,0 +1,12 @@ +@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed +plugins { + pophory("feature") +} + +android { + namespace = "com.teampophory.pophory.analytics" +} + +dependencies { + implementation(libs.amplitude.android) +} diff --git a/core/analytics/consumer-rules.pro b/core/analytics/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/core/analytics/src/main/AndroidManifest.xml b/core/analytics/src/main/AndroidManifest.xml new file mode 100644 index 00000000..b2d3ea12 --- /dev/null +++ b/core/analytics/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + + diff --git a/core/analytics/src/main/java/com/teampophory/pophory/analytics/Analytics.kt b/core/analytics/src/main/java/com/teampophory/pophory/analytics/Analytics.kt new file mode 100644 index 00000000..52e99074 --- /dev/null +++ b/core/analytics/src/main/java/com/teampophory/pophory/analytics/Analytics.kt @@ -0,0 +1,8 @@ +package com.teampophory.pophory.analytics + +interface Analytics { + fun trackEvent( + name: String, + args: Map? = null, + ) +} diff --git a/settings.gradle.kts b/settings.gradle.kts index a1832de0..19a83051 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -20,3 +20,4 @@ rootProject.name = "pophory" include(":app") include(":bottomnavigation") include(":core:common") +include(":core:analytics")