diff --git a/ext/android/proxy/adjust-android.jar b/ext/android/proxy/adjust-android.jar index 2d85af84..18a17a78 100644 Binary files a/ext/android/proxy/adjust-android.jar and b/ext/android/proxy/adjust-android.jar differ diff --git a/ext/android/proxy/adjust-test.jar b/ext/android/proxy/adjust-test.jar index 387e2dcc..9d1b79df 100644 Binary files a/ext/android/proxy/adjust-test.jar and b/ext/android/proxy/adjust-test.jar differ diff --git a/libs/android/adjust-android.jar b/libs/android/adjust-android.jar index 2d85af84..18a17a78 100644 Binary files a/libs/android/adjust-android.jar and b/libs/android/adjust-android.jar differ diff --git a/libs/ios/AdjustSdk.framework/Versions/A/AdjustSdk b/libs/ios/AdjustSdk.framework/Versions/A/AdjustSdk index a39844fe..c3e6e7af 100644 Binary files a/libs/ios/AdjustSdk.framework/Versions/A/AdjustSdk and b/libs/ios/AdjustSdk.framework/Versions/A/AdjustSdk differ diff --git a/test/app/Classes/AdjustCommandExecutor.cpp b/test/app/Classes/AdjustCommandExecutor.cpp index ac9a80b8..86e960cb 100644 --- a/test/app/Classes/AdjustCommandExecutor.cpp +++ b/test/app/Classes/AdjustCommandExecutor.cpp @@ -591,21 +591,21 @@ void AdjustCommandExecutor::trackSubscription() { std::string transactionDate = command->getFirstParameterValue("transactionDate"); std::string salesRegion = command->getFirstParameterValue("salesRegion"); - AdjustAppStoreSubscription2dx *subscription = new AdjustAppStoreSubscription2dx( + AdjustAppStoreSubscription2dx subscription = AdjustAppStoreSubscription2dx( price, currency, transactionId, receipt ); - subscription->setTransactionDate(transactionDate); - subscription->setSalesRegion(salesRegion); + subscription.setTransactionDate(transactionDate); + subscription.setSalesRegion(salesRegion); if (this->command->containsParameter("callbackParams")) { std::vector callbackParams = command->getParameters("callbackParams"); for (int i = 0; i < callbackParams.size(); i = i + 2) { std::string key = callbackParams[i]; std::string value = callbackParams[i + 1]; - subscription->addCallbackParameter(key, value); + subscription.addCallbackParameter(key, value); } } @@ -614,11 +614,11 @@ void AdjustCommandExecutor::trackSubscription() { for (int i = 0; i < partnerParams.size(); i = i + 2) { std::string key = partnerParams[i]; std::string value = partnerParams[i + 1]; - subscription->addPartnerParameter(key, value); + subscription.addPartnerParameter(key, value); } } - Adjust2dx::trackAppStoreSubscription(*subscription); + Adjust2dx::trackAppStoreSubscription(subscription); #elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) std::string price = command->getFirstParameterValue("revenue"); std::string currency = command->getFirstParameterValue("currency"); @@ -628,7 +628,7 @@ void AdjustCommandExecutor::trackSubscription() { std::string purchaseToken = command->getFirstParameterValue("purchaseToken"); std::string purchaseTime = command->getFirstParameterValue("transactionDate"); - AdjustPlayStoreSubscription2dx *subscription = new AdjustPlayStoreSubscription2dx( + AdjustPlayStoreSubscription2dx subscription = AdjustPlayStoreSubscription2dx( price, currency, sku, @@ -636,14 +636,14 @@ void AdjustCommandExecutor::trackSubscription() { signature, purchaseToken ); - subscription->setPurchaseTime(purchaseTime); + subscription.setPurchaseTime(purchaseTime); if (this->command->containsParameter("callbackParams")) { std::vector callbackParams = command->getParameters("callbackParams"); for (int i = 0; i < callbackParams.size(); i = i + 2) { std::string key = callbackParams[i]; std::string value = callbackParams[i + 1]; - subscription->addCallbackParameter(key, value); + subscription.addCallbackParameter(key, value); } } @@ -652,10 +652,10 @@ void AdjustCommandExecutor::trackSubscription() { for (int i = 0; i < partnerParams.size(); i = i + 2) { std::string key = partnerParams[i]; std::string value = partnerParams[i + 1]; - subscription->addPartnerParameter(key, value); + subscription.addPartnerParameter(key, value); } } - Adjust2dx::trackPlayStoreSubscription(*subscription); + Adjust2dx::trackPlayStoreSubscription(subscription); #endif } diff --git a/test/libs/android/adjust-test.jar b/test/libs/android/adjust-test.jar index 387e2dcc..9d1b79df 100644 Binary files a/test/libs/android/adjust-test.jar and b/test/libs/android/adjust-test.jar differ diff --git a/test/libs/ios/AdjustTestLibrary.framework/Versions/A/AdjustTestLibrary b/test/libs/ios/AdjustTestLibrary.framework/Versions/A/AdjustTestLibrary index 3f284c22..6449499e 100644 Binary files a/test/libs/ios/AdjustTestLibrary.framework/Versions/A/AdjustTestLibrary and b/test/libs/ios/AdjustTestLibrary.framework/Versions/A/AdjustTestLibrary differ