Skip to content

Commit

Permalink
demoapp/bump_applovin_plugin_8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLovin-Mobile-Engineering committed Oct 21, 2024
1 parent 7c0efd5 commit d77ad2b
Show file tree
Hide file tree
Showing 32 changed files with 1,302 additions and 470 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.

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.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "MAUnityAdManager.h"

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

@interface NSString (ALUtils)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# AppLovin MAX Unity Plugin

To get the latest changes, see the [AppLovin MAX Unity Changelog](https://developers.applovin.com/en/unity/changelog).
To get the latest changes, see the [AppLovin MAX Unity Changelog](https://developers.applovin.com/en/max/unity/changelog).

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/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 @@ -84,7 +84,7 @@ private static void ShowPluginUpdateDialogIfNeeded(PluginData data)

// Check if the current and latest version are the same or if the publisher is on a newer version (on beta). If so, skip update.
var comparison = data.AppLovinMax.CurrentToLatestVersionComparisonResult;
if (comparison == MaxSdkUtils.VersionComparisonResult.Equal || comparison == MaxSdkUtils.VersionComparisonResult.Greater) return;
if (comparison == Versions.VersionComparisonResult.Equal || comparison == Versions.VersionComparisonResult.Greater) return;

// A new version of the plugin is available. Show a dialog to the publisher.
var option = EditorUtility.DisplayDialogComplex(
Expand Down Expand Up @@ -156,15 +156,15 @@ private static void ShowGoogleNetworkAdaptersUpdateDialogIfNeeded(Network[] netw

private static bool GoogleNetworkAdaptersCompatible(string googleVersion, string googleAdManagerVersion, string breakingVersion)
{
var googleResult = MaxSdkUtils.CompareVersions(googleVersion, breakingVersion);
var googleAdManagerResult = MaxSdkUtils.CompareVersions(googleAdManagerVersion, breakingVersion);
var googleResult = AppLovinIntegrationManagerUtils.CompareVersions(googleVersion, breakingVersion);
var googleAdManagerResult = AppLovinIntegrationManagerUtils.CompareVersions(googleAdManagerVersion, breakingVersion);

// If one is less than the breaking version and the other is not, they are not compatible.
if (googleResult == MaxSdkUtils.VersionComparisonResult.Lesser &&
googleAdManagerResult != MaxSdkUtils.VersionComparisonResult.Lesser) return false;
if (googleResult == Versions.VersionComparisonResult.Lesser &&
googleAdManagerResult != Versions.VersionComparisonResult.Lesser) return false;

if (googleAdManagerResult == MaxSdkUtils.VersionComparisonResult.Lesser &&
googleResult != MaxSdkUtils.VersionComparisonResult.Lesser) return false;
if (googleAdManagerResult == Versions.VersionComparisonResult.Lesser &&
googleResult != Versions.VersionComparisonResult.Lesser) return false;

return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public class AppLovinInitialize
"MaxSdk/Scripts/MaxVariableServiceUnityEditor.cs",
"MaxSdk/Scripts/MaxVariableServiceUnityEditor.cs.meta",

// The `MaxSdk/Scripts/Editor` folder contents have been moved into `MaxSdk/Scripts/IntegrationManager/Editor`.
"MaxSdk/Version.md",
"MaxSdk/Version.md.meta",

// TODO: Add MaxTargetingData and MaxUserSegment when the plugin has enough traction.
};

Expand All @@ -84,9 +88,9 @@ static AppLovinInitialize()
#endif

var pluginParentDir = AppLovinIntegrationManager.PluginParentDirectory;
var isPluginOutsideAssetsDir = AppLovinIntegrationManager.IsPluginOutsideAssetsDirectory;
var changesMade = AppLovinIntegrationManager.MovePluginFilesIfNeeded(pluginParentDir, isPluginOutsideAssetsDir);
if (isPluginOutsideAssetsDir)
var isPluginInPackageManager = AppLovinIntegrationManager.IsPluginInPackageManager;
var changesMade = AppLovinIntegrationManager.MovePluginFilesIfNeeded(pluginParentDir, isPluginInPackageManager);
if (isPluginInPackageManager)
{
// If the plugin is not under the assets folder, delete the MaxSdk/Mediation folder in the plugin, so that the adapters are not imported at that location and imported to the default location.
var mediationDir = Path.Combine(pluginParentDir, "MaxSdk/Mediation");
Expand Down
Loading

0 comments on commit d77ad2b

Please sign in to comment.