Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsuzuki committed Jul 15, 2024
1 parent 343cdfa commit 35fc385
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,79 +38,79 @@ object GoogleResponse {
BillingClient.BillingResponseCode.OK -> {
Logger.d(
TAG,
"${BILLING_RESPONSE}: " + "\n " + BillingClient.BillingResponseCode.OK.toString() + "\n message: OK"
"$BILLING_RESPONSE: " + "\n " + BillingClient.BillingResponseCode.OK.toString() + "\n message: OK"
)
}
BillingClient.BillingResponseCode.USER_CANCELED -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.USER_CANCELED.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.USER_CANCELED.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.BILLING_UNAVAILABLE -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.BILLING_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.BILLING_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.DEVELOPER_ERROR -> {
Logger.e(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.DEVELOPER_ERROR.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.DEVELOPER_ERROR.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.ERROR -> {
Logger.e(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.ERROR.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.ERROR.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.FEATURE_NOT_SUPPORTED -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.FEATURE_NOT_SUPPORTED.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.FEATURE_NOT_SUPPORTED.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.ITEM_NOT_OWNED -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_NOT_OWNED.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_NOT_OWNED.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.ITEM_UNAVAILABLE -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.ITEM_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.SERVICE_DISCONNECTED -> {
Logger.w(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_DISCONNECTED.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_DISCONNECTED.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.SERVICE_TIMEOUT -> {
Logger.e(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_TIMEOUT.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_TIMEOUT.toString() + "\n message: ${billingResult.debugMessage}"
)
}
BillingClient.BillingResponseCode.SERVICE_UNAVAILABLE -> {
Logger.e(
TAG,
"${BILLING_RESPONSE}: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
"$BILLING_RESPONSE: " + "\n code: " + BillingClient.BillingResponseCode.SERVICE_UNAVAILABLE.toString() + "\n message: ${billingResult.debugMessage}"
)
}
else -> {
Logger.wtf(
TAG,
"Unhandled ${BILLING_RESPONSE}: ${billingResult?.responseCode}"
"Unhandled $BILLING_RESPONSE: ${billingResult?.responseCode}"
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class GoogleSales(
Logger.d(
TAG,
"startOrder => " +
"\n product: $product," +
"\n options: $options"
"\n product: $product," +
"\n options: $options"
)

if (product is GoogleProduct && client is GoogleClient) {
Expand Down Expand Up @@ -273,9 +273,9 @@ class GoogleSales(
Logger.d(
TAG,
"startSubscriptionPurchaseFlow =>" +
"\n skuDetails: $skuDetails," +
"\n productDetails: $productDetails," +
"\n options: $options"
"\n skuDetails: $skuDetails," +
"\n productDetails: $productDetails," +
"\n options: $options"
)
if (activity == null || (skuDetails == null && productDetails == null) || billingClient == null) {
return BillingResult.newBuilder()
Expand Down Expand Up @@ -382,9 +382,9 @@ class GoogleSales(
Logger.d(
TAG,
"startInAppPurchaseFlow =>" +
"\n skuDetails: $skuDetails," +
"\n productDetails: $productDetails," +
"\n options: $options"
"\n skuDetails: $skuDetails," +
"\n productDetails: $productDetails," +
"\n options: $options"
)
if (activity == null || (skuDetails == null && productDetails == null) || billingClient == null) {
return BillingResult.newBuilder()
Expand Down

0 comments on commit 35fc385

Please sign in to comment.