Bump version to 6.5.3

This commit is contained in:
Cody Henthorne 2022-12-12 12:48:59 -05:00
parent fd3b0ee375
commit e6f28c6cdd
2 changed files with 5 additions and 5 deletions

View file

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

View file

@ -75,13 +75,13 @@ class GooglePayApi(
Activity.RESULT_OK -> { Activity.RESULT_OK -> {
data?.let { intent -> data?.let { intent ->
PaymentData.getFromIntent(intent)?.let { paymentRequestCallback.onSuccess(it) } 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() Activity.RESULT_CANCELED -> paymentRequestCallback.onCancelled()
AutoResolveHelper.RESULT_ERROR -> { AutoResolveHelper.RESULT_ERROR -> {
AutoResolveHelper.getStatusFromIntent(data)?.let { AutoResolveHelper.getStatusFromIntent(data)?.let {
Log.w(TAG, "loadPaymentData failed with error code ${it.statusCode}: ${it.statusMessage}") 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() fun onCancelled()
} }
class GooglePayException(code: Int, message: String?) : Exception(message) class GooglePayException(message: String?) : Exception(message)
} }