This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingRepository private constructor(private val application: Application) : | |
PurchasesUpdatedListener, BillingClientStateListener { | |
private lateinit var playStoreBillingClient: BillingClient | |
val coinsSkuDetailsListLiveData: MutableLiveData<List<SkuDetails>> = MutableLiveData() | |
val subsSkuDetailsListLiveData: MutableLiveData<List<SkuDetails>> = MutableLiveData() | |
companion object { | |
@Volatile | |
private var INSTANCE: BillingRepository? = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Application class integrated with Timber and Crashlytics | |
*/ | |
class MyApplication : Application() { | |
override fun onCreate() { | |
super.onCreate() | |
if(BuildConfig.DEBUG) Timber.plant(Timber.DebugTree()) | |
else Timber.plant(FirebaseCrashlyticsReportingTree()) | |
} |