mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-26 06:00:25 +00:00
Common: enable appcenter-distribution only for devNoFreeRelease
This commit is contained in:
parent
829d6295f9
commit
292a943a8e
1 changed files with 3 additions and 3 deletions
|
@ -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()))
|
||||
}
|
Loading…
Reference in a new issue