Common: enable appcenter-distribution only for devNoFreeRelease

This commit is contained in:
Felix 2019-05-04 17:21:18 +02:00
parent 829d6295f9
commit 292a943a8e

View file

@ -8,10 +8,10 @@ import de.nicidienase.chaosflix.ChaosflixApplication
fun libsInit(application: ChaosflixApplication) {
val modules: List<Class<out AppCenterService>>
if (BuildConfig.FLAVOR_stage == "prod") {
modules = listOf(Analytics::class.java, Crashes::class.java)
} else {
if (BuildConfig.BUILD_TYPE == "devNoFreeRelease") {
modules = listOf(Analytics::class.java, Crashes::class.java, Distribute::class.java)
} else {
modules = listOf(Analytics::class.java, Crashes::class.java)
}
AppCenter.start(application, BuildConfig.APPCENTER_ID, *(modules.toTypedArray()))
}