Skip to content

Commit af61d62

Browse files
committed
Add analytics module
1 parent 81bdcb7 commit af61d62

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

core/analytics/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

core/analytics/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
2+
plugins {
3+
pophory("feature")
4+
}
5+
6+
android {
7+
namespace = "com.teampophory.pophory.analytics"
8+
}
9+
10+
dependencies {
11+
implementation(libs.amplitude.android)
12+
}

core/analytics/consumer-rules.pro

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.teampophory.pophory.analytics
2+
3+
interface Analytics {
4+
fun trackEvent(
5+
name: String,
6+
args: Map<String, *>? = null,
7+
)
8+
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ rootProject.name = "pophory"
2222
include(":app")
2323
include(":bottomnavigation")
2424
include(":core:common")
25+
include(":core:analytics")
2526
include(":core:designsystem")
2627
include(":domain:auth")
2728
include(":data:auth")

0 commit comments

Comments
 (0)