Bump version to 6.5.3

main
Cody Henthorne 2022-12-12 12:48:59 -05:00
rodzic fd3b0ee375
commit e6f28c6cdd
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -50,8 +50,8 @@ ktlint {
version = "0.43.2"
}
def canonicalVersionCode = 1177
def canonicalVersionName = "6.5.2"
def canonicalVersionCode = 1178
def canonicalVersionName = "6.5.3"
def postFixSize = 100
def abiPostFix = ['universal' : 0,

Wyświetl plik

@ -75,13 +75,13 @@ class GooglePayApi(
Activity.RESULT_OK -> {
data?.let { intent ->
PaymentData.getFromIntent(intent)?.let { paymentRequestCallback.onSuccess(it) }
} ?: paymentRequestCallback.onError(GooglePayException(-1, "No data returned from Google Pay"))
} ?: paymentRequestCallback.onError(GooglePayException("No data returned from Google Pay"))
}
Activity.RESULT_CANCELED -> paymentRequestCallback.onCancelled()
AutoResolveHelper.RESULT_ERROR -> {
AutoResolveHelper.getStatusFromIntent(data)?.let {
Log.w(TAG, "loadPaymentData failed with error code ${it.statusCode}: ${it.statusMessage}")
paymentRequestCallback.onError(GooglePayException(it.statusCode, it.statusMessage))
paymentRequestCallback.onError(GooglePayException(it.statusMessage))
}
}
}
@ -217,5 +217,5 @@ class GooglePayApi(
fun onCancelled()
}
class GooglePayException(code: Int, message: String?) : Exception(message)
class GooglePayException(message: String?) : Exception(message)
}