Skip to content

Commit

Permalink
demoapp/bump_applovin_plugin_7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLovin-Mobile-Engineering committed Sep 15, 2024
1 parent d34fe52 commit 7c0efd5
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 134 deletions.
2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/AppLovin.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/AppLovin/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions DemoApp/Assets/MaxSdk/AppLovin/Editor/Dependencies.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<androidPackage spec="com.applovin:applovin-sdk:12.6.1" />
<androidPackage spec="com.applovin:applovin-sdk:13.0.0" />
</androidPackages>
<iosPods>
<iosPod name="AppLovinSDK" version="12.6.1" />
<iosPod name="AppLovinSDK" version="13.0.0" />
</iosPods>
</dependencies>
2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/AppLovin/Plugins.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/AppLovin/Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/AppLovin/Plugins/iOS.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 1 addition & 16 deletions DemoApp/Assets/MaxSdk/AppLovin/Plugins/iOS/MAUnityPlugin.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "MAUnityAdManager.h"

#define VERSION @"6.6.3"
#define VERSION @"7.0.0"
#define NSSTRING(_X) ( (_X != NULL) ? [NSString stringWithCString: _X encoding: NSStringEncodingConversionAllowLossy].al_stringByTrimmingWhitespace : nil)

@interface NSString (ALUtils)
Expand Down Expand Up @@ -281,21 +281,6 @@ bool _MaxIsUserConsentSet()
return [ALPrivacySettings isUserConsentSet];
}

void _MaxSetIsAgeRestrictedUser(bool isAgeRestrictedUser)
{
[ALPrivacySettings setIsAgeRestrictedUser: isAgeRestrictedUser];
}

bool _MaxIsAgeRestrictedUser()
{
return [ALPrivacySettings isAgeRestrictedUser];
}

bool _MaxIsAgeRestrictedUserSet()
{
return [ALPrivacySettings isAgeRestrictedUserSet];
}

void _MaxSetDoNotSell(bool doNotSell)
{
[ALPrivacySettings setDoNotSell: doNotSell];
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/Prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/Resources.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/Resources/Images.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,27 @@ public class AppLovinAutoUpdater
// TODO: Make this list dynamic.
public static readonly Dictionary<string, string> MinAdapterVersions = new Dictionary<string, string>()
{
{"ADMOB_NETWORK", "android_19.3.0.3_ios_7.65.0.0"},
{"CHARTBOOST_NETWORK", "android_8.1.0.7_ios_8.2.1.3"},
{"FACEBOOK_MEDIATE", "android_6.0.0.1_ios_6.0.0.3"},
{"FYBER_NETWORK", "android_7.7.0.1_ios_7.6.4.1"},
{"GOOGLE_AD_MANAGER_NETWORK", "android_19.3.0.3_ios_7.65.0.0"},
{"INMOBI_NETWORK", "android_9.0.9.2_ios_9.0.7.9"},
{"IRONSOURCE_NETWORK", "android_7.0.1.1.1_ios_7.0.1.0.1"},
{"MYTARGET_NETWORK", "android_5.9.1.2_ios_5.7.5.1"},
{"SMAATO_NETWORK", "android_21.5.2.5_ios_21.5.2.3"},
{"TIKTOK_NETWORK", "android_3.1.0.1.6_ios_3.2.5.1.1"},
{"UNITY_NETWORK", "android_3.4.8.2_ios_3.4.8.2"},
{"VUNGLE_NETWORK", "android_6.7.1.2_ios_6.7.1.3"},
{"YANDEX_NETWORK", "android_2.170.2_ios_2.18.0.1"}
{"ADMOB_NETWORK", "android_23.3.0.1_ios_11.9.0.1"},
{"BIDMACHINE_NETWORK", "android_3.0.1.1_ios_3.0.0.0.1"},
{"CHARTBOOST_NETWORK", "android_9.7.0.3_ios_9.7.0.2"},
{"FACEBOOK_MEDIATE", "android_6.17.0.1_ios_6.15.2.1"},
{"FYBER_NETWORK", "android_8.3.1.1_ios_8.3.2.1"},
{"GOOGLE_AD_MANAGER_NETWORK", "android_23.3.0.1_ios_11.9.0.1"},
{"HYPRMX_NETWORK", "android_6.4.2.1_ios_6.4.1.0.1"},
{"INMOBI_NETWORK", "android_10.7.7.1_ios_10.7.5.1"},
{"IRONSOURCE_NETWORK", "android_8.3.0.0.2_ios_8.3.0.0.1"},
{"LINE_NETWORK", "android_2024.8.27.1_ios_2.8.20240827.1"},
{"MINTEGRAL_NETWORK", "android_16.8.51.1_ios_7.7.2.0.1"},
{"MOBILEFUSE_NETWORK", "android_1.7.6.1_ios_1.7.6.1"},
{"MOLOCO_NETWORK", "android_3.1.0.1_ios_3.1.3.1"},
{"MYTARGET_NETWORK", "android_5.22.1.1_ios_5.21.7.1"},
{"PUBMATIC_NETWORK", "android_3.9.0.2_ios_3.9.0.2"},
{"SMAATO_NETWORK", "android_22.7.0.1_ios_22.8.4.1"},
{"TIKTOK_NETWORK", "android_6.2.0.5.2_ios_6.2.0.7.2"},
{"UNITY_NETWORK", "android_4.12.2.1_ios_4.12.2.1"},
{"VERVE_NETWORK", "android_3.0.4.1_ios_3.0.4.1"},
{"VUNGLE_NETWORK", "android_7.4.1.1_ios_7.4.1.1"},
{"YANDEX_NETWORK", "android_7.4.0.1_ios_2.18.0.1"},
};

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/Assets/MaxSdk/Scripts/MaxSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MaxSdk :
MaxSdkUnityEditor
#endif
{
private const string _version = "6.6.3";
private const string _version = "7.0.0";

/// <summary>
/// Returns the current plugin version.
Expand Down
27 changes: 0 additions & 27 deletions DemoApp/Assets/MaxSdk/Scripts/MaxSdkAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,33 +171,6 @@ public static bool IsUserConsentSet()
return MaxUnityPluginClass.CallStatic<bool>("isUserConsentSet");
}

/// <summary>
/// Mark user as age restricted (i.e. under 16).
/// </summary>
/// <param name="isAgeRestrictedUser"><c>true</c> if the user is age restricted (i.e. under 16).</param>
public static void SetIsAgeRestrictedUser(bool isAgeRestrictedUser)
{
MaxUnityPluginClass.CallStatic("setIsAgeRestrictedUser", isAgeRestrictedUser);
}

/// <summary>
/// Check if user is age restricted.
/// </summary>
/// <returns><c>true</c> if the user is age-restricted. <c>false</c> if the user is not age-restricted or the age-restriction has not been set<see cref="IsAgeRestrictedUserSet">.</returns>
public static bool IsAgeRestrictedUser()
{
return MaxUnityPluginClass.CallStatic<bool>("isAgeRestrictedUser");
}

/// <summary>
/// Check if the user has set its age restricted settings.
/// </summary>
/// <returns><c>true</c> if the user has set its age restricted settings.</returns>
public static bool IsAgeRestrictedUserSet()
{
return MaxUnityPluginClass.CallStatic<bool>("isAgeRestrictedUserSet");
}

/// <summary>
/// Set whether or not user has opted out of the sale of their personal information.
/// </summary>
Expand Down
30 changes: 0 additions & 30 deletions DemoApp/Assets/MaxSdk/Scripts/MaxSdkUnityEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public class MaxSdkUnityEditor : MaxSdkBase
private static bool _isInitialized;
private static bool _hasUserConsent = false;
private static bool _isUserConsentSet = false;
private static bool _isAgeRestrictedUser = false;
private static bool _isAgeRestrictedUserSet = false;
private static bool _doNotSell = false;
private static bool _isDoNotSellSet = false;
private static bool _showStubAds = true;
Expand Down Expand Up @@ -222,34 +220,6 @@ public static bool IsUserConsentSet()
return _isUserConsentSet;
}

/// <summary>
/// Mark user as age restricted (i.e. under 16).
/// </summary>
/// <param name="isAgeRestrictedUser"><c>true</c> if the user is age restricted (i.e. under 16).</param>
public static void SetIsAgeRestrictedUser(bool isAgeRestrictedUser)
{
_isAgeRestrictedUser = isAgeRestrictedUser;
_isAgeRestrictedUserSet = true;
}

/// <summary>
/// Check if user is age restricted.
/// </summary>
/// <returns><c>true</c> if the user is age-restricted. <c>false</c> if the user is not age-restricted or the age-restriction has not been set<see cref="IsAgeRestrictedUserSet"/>.</returns>
public static bool IsAgeRestrictedUser()
{
return _isAgeRestrictedUser;
}

/// <summary>
/// Check if user set its age restricted settings.
/// </summary>
/// <returns><c>true</c> if user has set its age restricted settings.</returns>
public static bool IsAgeRestrictedUserSet()
{
return _isAgeRestrictedUserSet;
}

/// <summary>
/// Set whether or not user has opted out of the sale of their personal information.
/// </summary>
Expand Down
36 changes: 0 additions & 36 deletions DemoApp/Assets/MaxSdk/Scripts/MaxSdkiOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,42 +214,6 @@ public static bool IsUserConsentSet()
return _MaxIsUserConsentSet();
}

[DllImport("__Internal")]
private static extern void _MaxSetIsAgeRestrictedUser(bool isAgeRestrictedUser);

/// <summary>
/// Mark user as age restricted (i.e. under 16).
/// </summary>
/// <param name="isAgeRestrictedUser"><c>true</c> if the user is age restricted (i.e. under 16).</param>
public static void SetIsAgeRestrictedUser(bool isAgeRestrictedUser)
{
_MaxSetIsAgeRestrictedUser(isAgeRestrictedUser);
}

[DllImport("__Internal")]
private static extern bool _MaxIsAgeRestrictedUser();

/// <summary>
/// Check if user is age restricted.
/// </summary>
/// <returns><c>true</c> if the user is age-restricted. <c>false</c> if the user is not age-restricted or the age-restriction has not been set<see cref="IsAgeRestrictedUserSet">.</returns>
public static bool IsAgeRestrictedUser()
{
return _MaxIsAgeRestrictedUser();
}

[DllImport("__Internal")]
private static extern bool _MaxIsAgeRestrictedUserSet();

/// <summary>
/// Check if user set its age restricted settings.
/// </summary>
/// <returns><c>true</c> if user has set its age restricted settings.</returns>
public static bool IsAgeRestrictedUserSet()
{
return _MaxIsAgeRestrictedUserSet();
}

[DllImport("__Internal")]
private static extern void _MaxSetDoNotSell(bool doNotSell);

Expand Down

0 comments on commit 7c0efd5

Please sign in to comment.