39 lines
911 B
Kotlin
39 lines
911 B
Kotlin
package com.gamedog.vididin.manager
|
|
|
|
|
|
import com.ama.core.architecture.util.SpUtil
|
|
import kotlinx.coroutines.CoroutineScope
|
|
import kotlinx.coroutines.Dispatchers
|
|
import kotlinx.coroutines.SupervisorJob
|
|
|
|
|
|
|
|
class TestingManager private constructor() {
|
|
|
|
private val mBgScope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
|
|
|
|
|
|
companion object {
|
|
@Volatile
|
|
private var instance: TestingManager? = null
|
|
fun instance(): TestingManager {
|
|
return instance ?: synchronized(this) {
|
|
instance ?: TestingManager().also {
|
|
instance = it
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
fun isRewardAdDisable(): Boolean {
|
|
return SpUtil.instance().getBoolean(SpUtil.KEY_TESTING_REWARD_AD_DISABLE)
|
|
}
|
|
|
|
fun isNormalAdDisable(): Boolean {
|
|
return SpUtil.instance().getBoolean(SpUtil.KEY_TESTING_NORMAL_AD_DISABLE)
|
|
}
|
|
|
|
|
|
|
|
} |