From 907ed74a96bf3baa14342145cca2c7ceacdcdb57 Mon Sep 17 00:00:00 2001 From: "ivan.obodovskyi" Date: Wed, 6 Nov 2024 15:43:09 +0200 Subject: [PATCH] Update plugin version --- CMakeLists.txt | 2 ++ Classes/AppsFlyer/AppsFlyerXAndroid.cpp | 2 +- Classes/HelloWorldScene.cpp | 4 +-- Classes/InAppPurchaseValidationCallback | 27 ------------------- .../Strict/AppsFlyer/AppsFlyerXAndroid.cpp | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 Classes/InAppPurchaseValidationCallback diff --git a/CMakeLists.txt b/CMakeLists.txt index d463344..609836b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,11 +103,13 @@ elseif(APPLE) proj.ios_mac/ios/AppController.h proj.ios_mac/ios/RootViewController.h ) + set(APP_UI_RES proj.ios_mac/ios/LaunchScreen.storyboard proj.ios_mac/ios/LaunchScreenBackground.png proj.ios_mac/ios/Images.xcassets ) + list(APPEND GAME_SOURCE proj.ios_mac/ios/main.m proj.ios_mac/ios/AppController.mm diff --git a/Classes/AppsFlyer/AppsFlyerXAndroid.cpp b/Classes/AppsFlyer/AppsFlyerXAndroid.cpp index 8bf5de6..7347077 100644 --- a/Classes/AppsFlyer/AppsFlyerXAndroid.cpp +++ b/Classes/AppsFlyer/AppsFlyerXAndroid.cpp @@ -13,7 +13,7 @@ std::string afDevKey; bool isConveriosnListenerInitialized = false; bool isSubscribedForDeepLink = false; -const char *pluginVersion = "6.13.0"; +const char *pluginVersion = "6.15.1"; // Headers void initConvertionCallback(); diff --git a/Classes/HelloWorldScene.cpp b/Classes/HelloWorldScene.cpp index 8481adc..1fd69d0 100644 --- a/Classes/HelloWorldScene.cpp +++ b/Classes/HelloWorldScene.cpp @@ -111,9 +111,7 @@ bool HelloWorld::init() std::cout << "Log event raised" << std::endl; ValueMap params; -// AFXAdRevenueData data = AFXAdRevenueData("someVal", AppsFlyerXAdRevenueMediationNetworkType::ApplovinMax, "USD", 7.99); -// AppsFlyerX::logAdRevenue(data, params); - AFSDKXPurchaseDetails details = AFSDKXPurchaseDetails(AFXPurchaseType::SUBSCRIPTION, "", "customId", "6.99", "USD", "transactionId"); + AFSDKXPurchaseDetails details = AFSDKXPurchaseDetails(AFXPurchaseType::SUBSCRIPTION, "public", "customId", "price", "curr", "transactionId"); AppsFlyerX::validateAndLogInAppPurchase(details, params, [](const AFSDKXValidateAndLogResult& result) { std::cout << "Result Status: " << static_cast(result.getStatus()) << std::endl; diff --git a/Classes/InAppPurchaseValidationCallback b/Classes/InAppPurchaseValidationCallback deleted file mode 100644 index 8406823..0000000 --- a/Classes/InAppPurchaseValidationCallback +++ /dev/null @@ -1,27 +0,0 @@ -import com.appsflyer.AppsFlyerInAppPurchaseValidationCallback - - -public class CocosInAppPurchaseValidationCallback implements AppsFlyerInAppPurchaseValidationCallback { - - private long nativePointer; // Store a pointer to the native (C++) code - - public InAppPurchaseValidationCallback(long nativePointer) { - this.nativePointer = nativePointer; - } - - @Override - public void onInAppPurchaseValidationFinished(Map validationResult) { - // Call native method - nativeOnPurchaseValidationFinished(nativePointer, validationResult); - } - - @Override - public void onInAppPurchaseValidationError(Map validationError) { - // Call native method - nativeOnPurchaseValidationError(nativePointer, validationError); - } - - // Declare native methods to call back into C++ - private native void nativeOnPurchaseValidationFinished(long nativePointer, Map validationResult); - private native void nativeOnPurchaseValidationError(long nativePointer, Map validationError); -} \ No newline at end of file diff --git a/Classes/Strict/AppsFlyer/AppsFlyerXAndroid.cpp b/Classes/Strict/AppsFlyer/AppsFlyerXAndroid.cpp index a02e5ee..94fb753 100644 --- a/Classes/Strict/AppsFlyer/AppsFlyerXAndroid.cpp +++ b/Classes/Strict/AppsFlyer/AppsFlyerXAndroid.cpp @@ -12,7 +12,7 @@ std::string afDevKey; bool isConveriosnListenerInitialized = false; bool isSubscribedForDeepLink = false; -const char *pluginVersion = "6.13.0"; +const char *pluginVersion = "6.15.1"; // Headers void initConvertionCallback(); diff --git a/proj.android-studio/gradle/wrapper/gradle-wrapper.properties b/proj.android-studio/gradle/wrapper/gradle-wrapper.properties index ea3243e..f5b3f9e 100644 --- a/proj.android-studio/gradle/wrapper/gradle-wrapper.properties +++ b/proj.android-studio/gradle/wrapper/gradle-wrapper.properties @@ -1,4 +1,4 @@ -#Wed Oct 09 16:29:30 EEST 2024 +#Wed Oct 09 17:38:59 EEST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip