Auto commit (MindMachine) Wed Apr 15 08:01:02 PM CDT 2026
This commit is contained in:
@@ -83,7 +83,7 @@ dependencies {
|
|||||||
|
|
||||||
// Monetization
|
// Monetization
|
||||||
implementation("com.google.android.gms:play-services-ads:23.1.0")
|
implementation("com.google.android.gms:play-services-ads:23.1.0")
|
||||||
implementation("com.android.billingclient:billing-ktx:7.1.1")
|
implementation("com.android.billingclient:billing-ktx:8")
|
||||||
|
|
||||||
testImplementation("junit:junit:4.13.2")
|
testImplementation("junit:junit:4.13.2")
|
||||||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
|
||||||
|
|||||||
@@ -158,9 +158,8 @@ class MainActivity : ComponentActivity() {
|
|||||||
onNoAdsEntitlementChanged = { hasNoAds ->
|
onNoAdsEntitlementChanged = { hasNoAds ->
|
||||||
lifecycleScope.launch { settingsRepo.updateNoAds(hasNoAds) }
|
lifecycleScope.launch { settingsRepo.updateNoAds(hasNoAds) }
|
||||||
},
|
},
|
||||||
)
|
).also { it.start() }
|
||||||
}
|
}
|
||||||
|
|
||||||
private val vm: MainViewModel by viewModels {
|
private val vm: MainViewModel by viewModels {
|
||||||
MainViewModel.Factory(
|
MainViewModel.Factory(
|
||||||
settingsRepo,
|
settingsRepo,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class BillingManager(
|
|||||||
.build()
|
.build()
|
||||||
|
|
||||||
fun start() {
|
fun start() {
|
||||||
log("BillingManager.start()")
|
log("BillingManager.start() - isReady=${billingClient.isReady}")
|
||||||
if (billingClient.isReady) {
|
if (billingClient.isReady) {
|
||||||
log("Billing client already ready")
|
log("Billing client already ready")
|
||||||
refresh()
|
refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user