Skip to content

Commit

Permalink
Add analytics module
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed Jul 24, 2023
1 parent 3ebc1c1 commit 4785154
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/analytics/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
12 changes: 12 additions & 0 deletions core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
Empty file.
2 changes: 2 additions & 0 deletions core/analytics/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.teampophory.pophory.analytics

interface Analytics {
fun trackEvent(
name: String,
args: Map<String, *>? = null,
)
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ rootProject.name = "pophory"
include(":app")
include(":bottomnavigation")
include(":core:common")
include(":core:analytics")

0 comments on commit 4785154

Please sign in to comment.