Skip to content

Commit

Permalink
Merge pull request #3 from AppsFlyerSDK/releases/6.x.x/6.9.x/6.9.4
Browse files Browse the repository at this point in the history
6.9.4 update
  • Loading branch information
af-do authored Jan 12, 2023
2 parents 3d7c211 + 1beacd4 commit 215abee
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 14 deletions.
11 changes: 8 additions & 3 deletions Assets/AppsFlyer/AppsFlyerAdRevenue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -164,8 +168,9 @@ public enum AppsFlyerAdRevenueMediationNetworkType
AppsFlyerAdRevenueMediationNetworkTypeTradplus = 8,
AppsFlyerAdRevenueMediationNetworkTypeYandex = 9,
AppsFlyerAdRevenueMediationNetworkTypeChartBoost = 10,
AppsFlyerAdRevenueMediationNetworkTypeUnity = 11

AppsFlyerAdRevenueMediationNetworkTypeUnity = 11,
AppsFlyerAdRevenueMediationNetworkTypeCustomMediation = 12,
AppsFlyerAdRevenueMediationNetworkTypedirectMonetization = 13
}


Expand Down
6 changes: 3 additions & 3 deletions Assets/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dependencies>
<androidPackages>
<androidPackage spec="com.appsflyer:adrevenue:6.5.4"></androidPackage>
<androidPackage spec="com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4"></androidPackage>
<androidPackage spec="com.appsflyer:adrevenue:6.9.1"></androidPackage>
<androidPackage spec="com.appsflyer:unity-adrevenue-generic-wrapper:6.9.1"></androidPackage>
</androidPackages>

<iosPods>
<iosPod name="AppsFlyer-AdRevenue" version="6.5.4" minTargetSdk="10.0">
<iosPod name="AppsFlyer-AdRevenue" version="6.9.1" minTargetSdk="10.0">
</iosPod>
</iosPods>

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

## <a id="installation"> 📲 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
4 changes: 2 additions & 2 deletions af-unity-adrevenue-generic-android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file not shown.
Binary file not shown.
10 changes: 7 additions & 3 deletions deploy/build_appsflyer_unity_adrevenue_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"
Expand Down

0 comments on commit 215abee

Please sign in to comment.