diff --git a/Assets/AppsFlyer/AppsFlyerAdRevenue.cs b/Assets/AppsFlyer/AppsFlyerAdRevenue.cs index 09a7528..a1aa78e 100644 --- a/Assets/AppsFlyer/AppsFlyerAdRevenue.cs +++ b/Assets/AppsFlyer/AppsFlyerAdRevenue.cs @@ -8,7 +8,7 @@ namespace AppsFlyerSDK public class AppsFlyerAdRevenue : MonoBehaviour { - public static readonly string kAppsFlyerAdRevenueVersion = "6.5.3"; + public static readonly string kAppsFlyerAdRevenueVersion = "6.5.4"; #if UNITY_ANDROID && !UNITY_EDITOR private static AndroidJavaClass appsFlyerAndroid = new AndroidJavaClass("com.appsflyer.unity.afunityadrevenuegenericplugin.AdRevenueUnityWrapper"); @@ -110,24 +110,22 @@ private static int setMediationNetworkTypeAndroid(AppsFlyerAdRevenueMediationNet return 1; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob: return 2; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeMoPub: - return 3; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeFyber: - return 4; + return 3; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeAppodeal: - return 5; + return 4; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeAdmost: - return 6; + return 5; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeTopon: - return 7; + return 6; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeTradplus: - return 8; + return 7; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeYandex: - return 9; + return 8; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeChartBoost: - return 10; + return 9; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeUnity: - return 11; + return 10; default: return -1; } @@ -157,17 +155,16 @@ private static AndroidJavaObject convertDictionaryToJavaMap(Dictionary - - - + + - + diff --git a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle index 30576e2..3d630f3 100644 --- a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle +++ b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle @@ -25,8 +25,7 @@ android { repositories { maven { url "https://s3.amazonaws.com/moat-sdk-builds" } } dependencies { - compileOnly 'com.appsflyer:adrevenue:6.5.3' - compileOnly 'com.mopub:mopub-sdk:5.18.0' + compileOnly 'com.appsflyer:adrevenue:6.5.4' } apply from: file('publish.gradle') \ No newline at end of file diff --git a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/src/main/java/com/appsflyer/unity/afunityadrevenuegenericplugin/AdRevenueUnityWrapper.java b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/src/main/java/com/appsflyer/unity/afunityadrevenuegenericplugin/AdRevenueUnityWrapper.java index 9ef8afb..aaebe68 100644 --- a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/src/main/java/com/appsflyer/unity/afunityadrevenuegenericplugin/AdRevenueUnityWrapper.java +++ b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/src/main/java/com/appsflyer/unity/afunityadrevenuegenericplugin/AdRevenueUnityWrapper.java @@ -10,15 +10,23 @@ public class AdRevenueUnityWrapper { /** - * Start - currently we only support MoPub - * In the future we will support more AppsFlyerAdRevenueWrapperTypes - * + * start * @param application */ public static void start(Application application) { AppsFlyerAdRevenue.initialize(new AppsFlyerAdRevenue.Builder(application) .build()); } + + /** + * logAdRevenue + * + * @param monetizationNetwork + * @param mediationNetwork + * @param eventRevenueCurrency + * @param eventRevenue + * @param nonMandatory + */ public static void logAdRevenue(String monetizationNetwork, int mediationNetwork, String eventRevenueCurrency, diff --git a/af-unity-adrevenue-generic-android/gradle.properties b/af-unity-adrevenue-generic-android/gradle.properties index ca705d4..3510dbf 100644 --- a/af-unity-adrevenue-generic-android/gradle.properties +++ b/af-unity-adrevenue-generic-android/gradle.properties @@ -20,8 +20,8 @@ android.enableJetifier=true GROUP=com.appsflyer -VERSION_CODE=4 -VERSION_NAME=6.5.33 +VERSION_CODE=5 +VERSION_NAME=6.5.4 POM_ARTIFACT_ID=unity-adrevenue-generic-wrapper POM_PACKAGING=aar diff --git a/appsflyer-unity-adrevenue-generic-connector-6.5.3.unitypackage b/appsflyer-unity-adrevenue-generic-connector-6.5.3.unitypackage deleted file mode 100644 index 720257e..0000000 Binary files a/appsflyer-unity-adrevenue-generic-connector-6.5.3.unitypackage and /dev/null differ diff --git a/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage b/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage new file mode 100644 index 0000000..06fbaaf Binary files /dev/null and b/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage differ diff --git a/deploy/build_appsflyer_unity_adrevenue_plugin.sh b/deploy/build_appsflyer_unity_adrevenue_plugin.sh index 2acc986..7fa3c23 100644 --- a/deploy/build_appsflyer_unity_adrevenue_plugin.sh +++ b/deploy/build_appsflyer_unity_adrevenue_plugin.sh @@ -4,7 +4,7 @@ echo "Start Build for appsflyer-unity-adrevenue-generic-connector.unitypackage" DEPLOY_PATH=outputs UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" -PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.5.3.unitypackage" +PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage" mkdir -p $DEPLOY_PATH @@ -20,7 +20,7 @@ mkdir -p $DEPLOY_PATH Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ -&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.5.3.unitypackage" \ +&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info."