diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30ee764a..95e97add 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: targetPlatform: iOS - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: Build path: build @@ -76,7 +76,7 @@ jobs: # After echo "Disk space after:" df -h - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: Test results for ${{ matrix.testMode }} diff --git a/Assets/AppsFlyer/AppsFlyer.cs b/Assets/AppsFlyer/AppsFlyer.cs index 3759c9e4..1d97967d 100644 --- a/Assets/AppsFlyer/AppsFlyer.cs +++ b/Assets/AppsFlyer/AppsFlyer.cs @@ -6,7 +6,7 @@ namespace AppsFlyerSDK { public class AppsFlyer : MonoBehaviour { - public static readonly string kAppsFlyerPluginVersion = "6.15.2"; + public static readonly string kAppsFlyerPluginVersion = "6.15.3"; public static string CallBackObjectName = null; private static EventHandler onRequestResponse; private static EventHandler onInAppResponse; diff --git a/Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml b/Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml index 70624d15..04188cc3 100644 --- a/Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml +++ b/Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml @@ -4,7 +4,7 @@ - + diff --git a/Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm b/Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm index ba5ca7a1..8d91cc56 100644 --- a/Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm +++ b/Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm @@ -18,7 +18,7 @@ static void unityCallBack(NSString* objectName, const char* method, const char* const void _startSDK(bool shouldCallback, const char* objectName) { [[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity - pluginVersion:@"6.15.2" + pluginVersion:@"6.15.3" additionalParams:nil]; startRequestObjectName = stringFromChar(objectName); AppsFlyeriOSWarpper.didCallStart = YES; @@ -99,9 +99,8 @@ const void _setConsentData(bool isUserSubjectToGDPR, bool hasConsentForDataUsage const void _logAdRevenue(const char* monetizationNetwork, int mediationNetworkInt, const char* currencyIso4217Code, double eventRevenue, const char* additionalParameters) { AppsFlyerAdRevenueMediationNetworkType mediationNetwork = mediationNetworkTypeFromInt(mediationNetworkInt); - NSString *formattedString = [NSString localizedStringWithFormat:@"%.2f", eventRevenue]; - NSNumber *revenue = [NSDecimalNumber decimalNumberWithString:formattedString]; - AFAdRevenueData *adRevenue = [[AFAdRevenueData alloc] initWithMonetizationNetwork:stringFromChar(monetizationNetwork) mediationNetwork:mediationNetwork currencyIso4217Code:stringFromChar(currencyIso4217Code) eventRevenue:revenue]; + NSNumber *number = [NSNumber numberWithDouble:eventRevenue]; + AFAdRevenueData *adRevenue = [[AFAdRevenueData alloc] initWithMonetizationNetwork:stringFromChar(monetizationNetwork) mediationNetwork:mediationNetwork currencyIso4217Code:stringFromChar(currencyIso4217Code) eventRevenue:number]; [[AppsFlyerLib shared] logAdRevenue: adRevenue additionalParameters:dictionaryFromJson(additionalParameters)]; } diff --git a/Assets/AppsFlyer/package.json b/Assets/AppsFlyer/package.json index b1292ede..70853e47 100644 --- a/Assets/AppsFlyer/package.json +++ b/Assets/AppsFlyer/package.json @@ -2,7 +2,7 @@ "name": "appsflyer-unity-plugin", "displayName": "AppsFlyer", "description": "AppsFlyer Unity plugin", - "version": "6.15.2", + "version": "6.15.3", "unity": "2019.4", "license": "MIT" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b2973816..d51a50df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Versions +## v6.15.3 +* Fix logAdRevenue - revenue value will not be rounded + ## v6.15.2 * Update iOS SDK version - 6.15.2 diff --git a/android-unity-wrapper/gradle.properties b/android-unity-wrapper/gradle.properties index 598ac27c..97edcc6e 100644 --- a/android-unity-wrapper/gradle.properties +++ b/android-unity-wrapper/gradle.properties @@ -20,8 +20,8 @@ android.enableJetifier=true GROUP=com.appsflyer -VERSION_CODE=44 -VERSION_NAME=6.15.2 +VERSION_CODE=45 +VERSION_NAME=6.15.3 POM_ARTIFACT_ID=unity-wrapper POM_PACKAGING=aar diff --git a/android-unity-wrapper/unitywrapper/src/main/java/com/appsflyer/unity/AppsFlyerAndroidWrapper.java b/android-unity-wrapper/unitywrapper/src/main/java/com/appsflyer/unity/AppsFlyerAndroidWrapper.java index 07c7d432..c55437e4 100644 --- a/android-unity-wrapper/unitywrapper/src/main/java/com/appsflyer/unity/AppsFlyerAndroidWrapper.java +++ b/android-unity-wrapper/unitywrapper/src/main/java/com/appsflyer/unity/AppsFlyerAndroidWrapper.java @@ -45,7 +45,7 @@ public class AppsFlyerAndroidWrapper { private static final String ON_DEEPLINKING = "onDeepLinking"; private static final String START_REQUEST_CALLBACK = "requestResponseReceived"; private static final String IN_APP_RESPONSE_CALLBACK = "inAppResponseReceived"; - private static final String PLUGIN_VERSION = "6.15.2"; + private static final String PLUGIN_VERSION = "6.15.3"; private static final long DDL_TIMEOUT_DEFAULT = 3000; private static AppsFlyerConversionListener conversionListener; private static String devkey = ""; diff --git a/appsflyer-unity-plugin-6.15.2.unitypackage b/appsflyer-unity-plugin-6.15.2.unitypackage deleted file mode 100644 index cf7430ad..00000000 Binary files a/appsflyer-unity-plugin-6.15.2.unitypackage and /dev/null differ diff --git a/appsflyer-unity-plugin-6.15.3.unitypackage b/appsflyer-unity-plugin-6.15.3.unitypackage new file mode 100644 index 00000000..df7648c8 Binary files /dev/null and b/appsflyer-unity-plugin-6.15.3.unitypackage differ diff --git a/deploy/build_unity_package.sh b/deploy/build_unity_package.sh index b5dd2006..f99d99d6 100644 --- a/deploy/build_unity_package.sh +++ b/deploy/build_unity_package.sh @@ -4,7 +4,7 @@ echo "Start Build for appsflyer-unity-plugin.unitypackage" DEPLOY_PATH=outputs UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" -PACKAGE_NAME="appsflyer-unity-plugin-6.15.2.unitypackage" +PACKAGE_NAME="appsflyer-unity-plugin-6.15.3.unitypackage" mkdir -p $DEPLOY_PATH #move external dependency manager @@ -23,7 +23,7 @@ mv external-dependency-manager-1.2.177.unitypackage .. Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ -&& echo "package exported successfully to outputs/appsflyer-unity-plugin-6.15.2.unitypackage" \ +&& echo "package exported successfully to outputs/appsflyer-unity-plugin-6.15.3.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info." diff --git a/deploy/strict_mode_build_package.sh b/deploy/strict_mode_build_package.sh index ae276e90..2b24e7e0 100644 --- a/deploy/strict_mode_build_package.sh +++ b/deploy/strict_mode_build_package.sh @@ -5,7 +5,7 @@ echo "Start Build for appsflyer-unity-plugin.unitypackage. Strict Mode." DEPLOY_PATH=outputs UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" - PACKAGE_NAME="appsflyer-unity-plugin-strict-mode-6.15.2.unitypackage" + PACKAGE_NAME="appsflyer-unity-plugin-strict-mode-6.15.3.unitypackage" mkdir -p $DEPLOY_PATH #move external dependency manager @@ -37,7 +37,7 @@ echo "Commenting out functions. Done." Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ - && echo "package exported successfully to outputs/appsflyer-unity-plugin-strict-mode-6.15.2.unitypackage" \ + && echo "package exported successfully to outputs/appsflyer-unity-plugin-strict-mode-6.15.3.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info." diff --git a/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.2.unitypackage b/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.2.unitypackage deleted file mode 100644 index ffc543fd..00000000 Binary files a/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.2.unitypackage and /dev/null differ diff --git a/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.3.unitypackage b/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.3.unitypackage new file mode 100644 index 00000000..288329bb Binary files /dev/null and b/strict-mode-sdk/appsflyer-unity-plugin-strict-mode-6.15.3.unitypackage differ