forked from upstream-mirrors/quik
Move AnalyticsManagerImpl to data module
This commit is contained in:
@@ -4,11 +4,18 @@ apply plugin: 'kotlin-kapt'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
publishNonDefault true
|
||||
flavorDimensions "analytics"
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
withAnalytics { dimension "analytics" }
|
||||
noAnalytics { dimension "analytics" }
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -35,6 +42,8 @@ dependencies {
|
||||
implementation "me.leolin:ShortcutBadger:1.1.21"
|
||||
implementation project(":android-smsmms")
|
||||
implementation project(':domain')
|
||||
withAnalyticsImplementation "com.amplitude:android-sdk:2.16.0"
|
||||
withAnalyticsImplementation "com.mixpanel.android:mixpanel-android:5.2.1"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package com.moez.QKSMS.common.util
|
||||
|
||||
import manager.AnalyticsManager
|
||||
import com.moez.QKSMS.manager.AnalyticsManager
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
@@ -77,6 +77,13 @@ android.applicationVariants.all { variant ->
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
noAnalyticsDebug
|
||||
noAnalyticsRelease
|
||||
withAnalyticsDebug
|
||||
withAnalyticsRelease
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// lifecycle
|
||||
implementation "android.arch.lifecycle:extensions:$lifecycle_version"
|
||||
@@ -151,6 +158,8 @@ dependencies {
|
||||
implementation project(":android-smsmms")
|
||||
implementation project(':data')
|
||||
implementation project(':domain')
|
||||
withAnalyticsImplementation "com.amplitude:android-sdk:2.16.0"
|
||||
withAnalyticsImplementation "com.mixpanel.android:mixpanel-android:5.2.1"
|
||||
noAnalyticsDebug project(path: ':data', configuration: 'noAnalyticsDebug')
|
||||
noAnalyticsRelease project(path: ':data', configuration: 'noAnalyticsRelease')
|
||||
withAnalyticsDebug project(path: ':data', configuration: 'withAnalyticsDebug')
|
||||
withAnalyticsRelease project(path: ':data', configuration: 'withAnalyticsRelease')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user