Billing: replace in-app logs with ADB logging, add auto-reconnection
This commit is contained in:
@@ -1256,7 +1256,6 @@ fun RemoveAdsScreen(billingManager: solutions.tretter.mindmachine.billing.Billin
|
||||
val ui by vm.ui.collectAsStateWithLifecycle()
|
||||
val activity = LocalContext.current as? Activity
|
||||
val details by billingManager.productDetails.collectAsStateWithLifecycle()
|
||||
val logs by billingManager.logs.collectAsStateWithLifecycle()
|
||||
|
||||
val subDetails = details[solutions.tretter.mindmachine.billing.BillingProducts.SUB_REMOVE_ADS_MONTHLY]
|
||||
val subPrice = subDetails
|
||||
@@ -1308,21 +1307,6 @@ fun RemoveAdsScreen(billingManager: solutions.tretter.mindmachine.billing.Billin
|
||||
"Note: Purchases only work when the app is installed from Google Play (Internal testing/Production). Debug sideloaded builds won’t complete real billing flows.",
|
||||
color = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.8f)
|
||||
)
|
||||
|
||||
// Debug logs
|
||||
Text("Billing logs:", style = MaterialTheme.typography.titleMedium, color = MaterialTheme.colorScheme.onBackground)
|
||||
Column(
|
||||
Modifier
|
||||
.weight(1f)
|
||||
.fillMaxWidth()
|
||||
.verticalScroll(rememberScrollState())
|
||||
.background(MaterialTheme.colorScheme.surfaceVariant.copy(alpha = 0.2f))
|
||||
.padding(8.dp)
|
||||
) {
|
||||
logs.forEach { log ->
|
||||
Text(log, color = MaterialTheme.colorScheme.onBackground, style = MaterialTheme.typography.bodySmall)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user