Skip to content

Commit

Permalink
revert logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kot331107 committed Nov 27, 2024
1 parent 087d461 commit cea1f67
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions android/src/amazon/java/com/dooboolab/rniap/RNIapAmazonModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,13 @@ class RNIapAmazonModule(

@ReactMethod
fun verifyLicense(promise: Promise) {
Log.d(
TAG,
"Amazon's DRM is ${
if (BuildConfig.IS_AMAZON_DRM_ENABLED) {
"enabled"
} else {
"disabled"
}
}",
)

if (!BuildConfig.IS_AMAZON_DRM_ENABLED) {
Log.d(TAG, "Amazon's DRM is disabled")
promise.resolve("NOT_LICENSED")
return
}

Log.d(TAG, "Amazon's DRM is enabled")
try {
LicensingService.verifyLicense(reactApplicationContext) { licenseResponse ->
when (
Expand Down

0 comments on commit cea1f67

Please sign in to comment.