diff --git a/Assets/AppsFlyer/AppsFlyerAdRevenue.cs b/Assets/AppsFlyer/AppsFlyerAdRevenue.cs index a1aa78e..7169b3c 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.4"; + public static readonly string kAppsFlyerAdRevenueVersion = "6.9.4"; #if UNITY_ANDROID && !UNITY_EDITOR private static AndroidJavaClass appsFlyerAndroid = new AndroidJavaClass("com.appsflyer.unity.afunityadrevenuegenericplugin.AdRevenueUnityWrapper"); @@ -126,6 +126,10 @@ private static int setMediationNetworkTypeAndroid(AppsFlyerAdRevenueMediationNet return 9; case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeUnity: return 10; + case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeCustomMediation: + return 11; + case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypedirectMonetization: + return 12; default: return -1; } @@ -164,8 +168,9 @@ public enum AppsFlyerAdRevenueMediationNetworkType AppsFlyerAdRevenueMediationNetworkTypeTradplus = 8, AppsFlyerAdRevenueMediationNetworkTypeYandex = 9, AppsFlyerAdRevenueMediationNetworkTypeChartBoost = 10, - AppsFlyerAdRevenueMediationNetworkTypeUnity = 11 - + AppsFlyerAdRevenueMediationNetworkTypeUnity = 11, + AppsFlyerAdRevenueMediationNetworkTypeCustomMediation = 12, + AppsFlyerAdRevenueMediationNetworkTypedirectMonetization = 13 } diff --git a/Assets/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml b/Assets/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml index 080359d..b7c664c 100644 --- a/Assets/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml +++ b/Assets/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml @@ -1,12 +1,12 @@ - - + + - + diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bb3d71..042b8bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 6.9.4 +- Updated native connector versions to 6.9.1 +- Additional mediation networks available: customMediation and directMonetization + ### 6.5.4 - deprecated Mopub diff --git a/README.md b/README.md index 333a921..07f9d95 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ ## 📲 Installation - This plugin requires the AppsFlyer Unity plugin version >= 4.22.x. + Versions below 6.9.4 require the AppsFlyer Unity plugin version >= 4.22.x. + Version 6.9.4 and above requires the AppsFlyer Unity plugin version >= 6.9.4. 1. Clone / download this repository. diff --git a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle index 3d630f3..cf992f2 100644 --- a/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle +++ b/af-unity-adrevenue-generic-android/afunityadrevenuegenericplugin/build.gradle @@ -25,7 +25,7 @@ android { repositories { maven { url "https://s3.amazonaws.com/moat-sdk-builds" } } dependencies { - compileOnly 'com.appsflyer:adrevenue:6.5.4' -} + compileOnly 'com.appsflyer:adrevenue:6.9.1' +} apply from: file('publish.gradle') \ No newline at end of file diff --git a/af-unity-adrevenue-generic-android/gradle.properties b/af-unity-adrevenue-generic-android/gradle.properties index 3510dbf..2235e81 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=5 -VERSION_NAME=6.5.4 +VERSION_CODE=6 +VERSION_NAME=6.9.1 POM_ARTIFACT_ID=unity-adrevenue-generic-wrapper POM_PACKAGING=aar diff --git a/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage b/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage deleted file mode 100644 index 06fbaaf..0000000 Binary files a/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage and /dev/null differ diff --git a/appsflyer-unity-adrevenue-generic-connector-6.9.4.unitypackage b/appsflyer-unity-adrevenue-generic-connector-6.9.4.unitypackage new file mode 100644 index 0000000..70183f3 Binary files /dev/null and b/appsflyer-unity-adrevenue-generic-connector-6.9.4.unitypackage differ diff --git a/deploy/build_appsflyer_unity_adrevenue_plugin.sh b/deploy/build_appsflyer_unity_adrevenue_plugin.sh index 7fa3c23..da8cf42 100644 --- a/deploy/build_appsflyer_unity_adrevenue_plugin.sh +++ b/deploy/build_appsflyer_unity_adrevenue_plugin.sh @@ -4,12 +4,14 @@ 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.4.unitypackage" +PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.9.4.unitypackage" mkdir -p $DEPLOY_PATH +echo "move dependency manager to root" +mv external-dependency-manager-1.2.144.unitypackage .. # Build the .unitypackage -/Applications/Unity/Hub/Editor/2019.4.26f1/Unity.app/Contents/MacOS/Unity \ +/Applications/Unity/Hub/Editor/2021.3.11f1/Unity.app/Contents/MacOS/Unity \ -gvh_disable \ -batchmode \ -importPackage external-dependency-manager-1.2.144.unitypackage \ @@ -20,9 +22,11 @@ mkdir -p $DEPLOY_PATH Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ -&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.5.4.unitypackage" \ +&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.9.4.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info." +echo "moving dependency manager back to deploy" +mv ../external-dependency-manager-1.2.144.unitypackage . if [ "$1" == "-p" ]; then echo "removing ./Library"