updatezada

This commit is contained in:
Ighor Moura 2025-08-25 17:07:45 -04:00
parent a5f0139307
commit 4a417c3603
3 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<queries>
<package android:name="br.com.aditum.smartpostef" />
</queries>
<application
android:name=".services.PaymentApplication"
android:allowBackup="true"

View File

@ -377,6 +377,8 @@ class PaymentViewModel(
val callback = object : InitResponseCallback.Stub() {
override fun onResponse(initResponse: InitResponse?) {
viewModelScope.launch {
val json = gson.toJson(initResponse)
Log.d(TAG, json)
if (initResponse != null && initResponse.initialized) {
_sdkState.value = SdkState.IDLE
if (activationCode != null) {

View File

@ -115,8 +115,4 @@ class PaymentApplication : Application() {
Log.e(TAG, "Failed to connect to service after $maxAttempts attempts")
}
}
fun ensureServiceConnected(): Boolean {
return isServiceConnected
}
}