Skip to content

Commit

Permalink
[FEAT/#129] Amplitude Manager core 모듈 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Sep 10, 2024
1 parent 1847611 commit 853be3a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 18 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ dependencies {
implementation(retrofit)
implementation(retrofitJsonConverter)
implementation(timber)
implementation(amplitude)
}

KakaoDependencies.run {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/co/orange/ddanzi/MyApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package co.orange.ddanzi

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import co.orange.core.amplitude.AmplitudeManager
import co.orange.ddanzi.BuildConfig.AMPLITUDE_KEY
import co.orange.ddanzi.BuildConfig.NATIVE_APP_KEY
import co.orange.ddanzi.manager.AmplitudeManager
import com.kakao.sdk.common.KakaoSdk
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package co.orange.ddanzi.di.module

import co.orange.core.navigation.NavigationManager
import co.orange.ddanzi.navigate.NavigationManagerImpl
import co.orange.ddanzi.navigation.NavigationManagerImpl
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.orange.ddanzi.navigate
package co.orange.ddanzi.navigation

import android.content.Context
import android.content.Intent
Expand Down
36 changes: 23 additions & 13 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,31 @@ android {
}

dependencies {
// Kotlin
implementation(KotlinDependencies.kotlin)
KotlinDependencies.run {
implementation(kotlin)
}

// Lifecycle Ktx
implementation(AndroidXDependencies.lifeCycleKtx)
AndroidXDependencies.run {
implementation(lifeCycleKtx)
implementation(hilt)
}

// Material Design
implementation(GoogleDependencies.materialDesign)
GoogleDependencies.run {
implementation(materialDesign)
}

// Hilt
implementation(AndroidXDependencies.hilt)
kapt(KaptDependencies.hiltAndroidCompiler)
KaptDependencies.run {
kapt(hiltAndroidCompiler)
}

// Test Dependency
testImplementation(TestDependencies.jUnit)
androidTestImplementation(TestDependencies.androidTest)
androidTestImplementation(TestDependencies.espresso)
ThirdPartyDependencies.run {
implementation(timber)
implementation(amplitude)
}

TestDependencies.run {
testImplementation(jUnit)
androidTestImplementation(androidTest)
androidTestImplementation(espresso)
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.orange.ddanzi.manager
package co.orange.core.amplitude

import android.content.Context
import com.amplitude.android.Amplitude
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.lifecycle.lifecycleScope
import co.orange.auth.databinding.ActivityLoginBinding
import co.orange.auth.phone.PhoneActivity
import co.orange.core.R
import co.orange.core.amplitude.AmplitudeManager
import co.orange.core.base.BaseActivity
import co.orange.core.extension.setOnSingleClickListener
import co.orange.core.extension.stringOf
Expand All @@ -34,6 +35,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(featureR.layout.activit

private fun initLoginBtnListener() {
binding.btnLoginKakao.setOnSingleClickListener {
AmplitudeManager.trackEvent("click_sign_up_kakao")
viewModel.startLogInWithKakao(this)
}
}
Expand Down

0 comments on commit 853be3a

Please sign in to comment.