diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/ActivityHandler.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/ActivityHandler.java index 933ddfdb5..04c10b67e 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/ActivityHandler.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/ActivityHandler.java @@ -805,7 +805,7 @@ public void run() { } @Override - public void verifyPlayStorePurchase(final AdjustPurchase purchase, final OnPurchaseVerificationFinishedListener callback) { + public void verifyPlayStorePurchase(final AdjustPlayStorePurchase purchase, final OnPurchaseVerificationFinishedListener callback) { executor.submit(new Runnable() { @Override public void run() { @@ -2504,7 +2504,7 @@ private void trackPlayStoreSubscriptionI(final AdjustPlayStoreSubscription subsc packageHandler.sendFirstPackage(); } - private void verifyPlayStorePurchaseI(final AdjustPurchase purchase, + private void verifyPlayStorePurchaseI(final AdjustPlayStorePurchase purchase, final OnPurchaseVerificationFinishedListener callback) { if (callback == null) { logger.warn("Purchase verification aborted because verification callback is null"); diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java index 098fbc8c2..bf454bbc6 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java @@ -431,7 +431,7 @@ public static void getSdkVersion(final OnSdkVersionReadListener onSdkVersionRead * @param purchase AdjustPurchase object to be tracked * @param callback Callback to obtain verification results */ - public static void verifyPlayStorePurchase(final AdjustPurchase purchase, + public static void verifyPlayStorePurchase(final AdjustPlayStorePurchase purchase, final OnPurchaseVerificationFinishedListener callback) { if (callback == null) { AdjustFactory.getLogger().error("Purchase verification aborted because verification callback is null"); diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustInstance.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustInstance.java index 1bc8078cd..fb09c786e 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustInstance.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustInstance.java @@ -771,7 +771,7 @@ private boolean isInstanceEnabled() { * @param purchase AdjustPurchase object to be verified * @param callback Callback to be pinged with the verification results */ - public void verifyPlayStorePurchase(final AdjustPurchase purchase, + public void verifyPlayStorePurchase(final AdjustPlayStorePurchase purchase, final OnPurchaseVerificationFinishedListener callback) { if (!checkActivityHandler("verifyPurchase")) { AdjustPurchaseVerificationResult result = new AdjustPurchaseVerificationResult( diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPurchase.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPlayStorePurchase.java similarity index 71% rename from Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPurchase.java rename to Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPlayStorePurchase.java index 25e32ed1d..20361f446 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPurchase.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustPlayStorePurchase.java @@ -1,10 +1,10 @@ package com.adjust.sdk; -public class AdjustPurchase { +public class AdjustPlayStorePurchase { private final String productId; private final String purchaseToken; - public AdjustPurchase(final String productId, final String purchaseToken) { + public AdjustPlayStorePurchase(final String productId, final String purchaseToken) { this.productId = productId; this.purchaseToken = purchaseToken; } diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/IActivityHandler.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/IActivityHandler.java index 26d4e8ace..f54f58bd1 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/IActivityHandler.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/IActivityHandler.java @@ -74,7 +74,7 @@ public interface IActivityHandler { void trackPlayStoreSubscription(AdjustPlayStoreSubscription subscription); - void verifyPlayStorePurchase(AdjustPurchase purchase, OnPurchaseVerificationFinishedListener callback); + void verifyPlayStorePurchase(AdjustPlayStorePurchase purchase, OnPurchaseVerificationFinishedListener callback); void verifyAndTrackPlayStorePurchase(AdjustEvent event, OnPurchaseVerificationFinishedListener callback); diff --git a/Adjust/sdk-core/src/main/java/com/adjust/sdk/PackageBuilder.java b/Adjust/sdk-core/src/main/java/com/adjust/sdk/PackageBuilder.java index b2291c26d..71266884e 100644 --- a/Adjust/sdk-core/src/main/java/com/adjust/sdk/PackageBuilder.java +++ b/Adjust/sdk-core/src/main/java/com/adjust/sdk/PackageBuilder.java @@ -209,7 +209,7 @@ ActivityPackage buildSubscriptionPackage(AdjustPlayStoreSubscription subscriptio return subscriptionPackage; } - ActivityPackage buildVerificationPackage(AdjustPurchase purchase, OnPurchaseVerificationFinishedListener callback) { + ActivityPackage buildVerificationPackage(AdjustPlayStorePurchase purchase, OnPurchaseVerificationFinishedListener callback) { Map parameters = getVerificationParameters(purchase); ActivityPackage purchaseVerificationPackage = getDefaultActivityPackage(ActivityKind.PURCHASE_VERIFICATION); purchaseVerificationPackage.setPath("/verify"); @@ -1061,7 +1061,7 @@ private Map getSubscriptionParameters(AdjustPlayStoreSubscriptio return parameters; } - private Map getVerificationParameters(AdjustPurchase purchase) { + private Map getVerificationParameters(AdjustPlayStorePurchase purchase) { Map parameters = new HashMap(); deviceInfo.reloadOtherDeviceInfoParams(adjustConfig, coppaEnabled, logger); diff --git a/Adjust/test-app-core/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java b/Adjust/test-app-core/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java index 0b0e1bf42..3a1613ac8 100644 --- a/Adjust/test-app-core/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java +++ b/Adjust/test-app-core/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java @@ -18,7 +18,7 @@ import com.adjust.sdk.AdjustEventFailure; import com.adjust.sdk.AdjustEventSuccess; import com.adjust.sdk.AdjustPlayStoreSubscription; -import com.adjust.sdk.AdjustPurchase; +import com.adjust.sdk.AdjustPlayStorePurchase; import com.adjust.sdk.AdjustPurchaseVerificationResult; import com.adjust.sdk.AdjustSessionFailure; import com.adjust.sdk.AdjustSessionSuccess; @@ -793,7 +793,7 @@ private void verifyPurchase() { String purchaseToken = command.getFirstParameterValue("purchaseToken"); final String localBasePath = basePath; - AdjustPurchase purchase = new AdjustPurchase(sku, purchaseToken); + AdjustPlayStorePurchase purchase = new AdjustPlayStorePurchase(sku, purchaseToken); Adjust.verifyPlayStorePurchase(purchase, new OnPurchaseVerificationFinishedListener() { @Override public void onVerificationFinished(AdjustPurchaseVerificationResult result) {