Bump version to 6.5.3
This commit is contained in:
parent
fd3b0ee375
commit
e6f28c6cdd
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
}
|
Loading…
Add table
Reference in a new issue