Skip to content

Commit d77ad2b

Browse files
author
AppLovin-Mobile-Engineering
committed
demoapp/bump_applovin_plugin_8.0.0
1 parent 7c0efd5 commit d77ad2b

32 files changed

+1302
-470
lines changed

DemoApp/Assets/MaxSdk/AppLovin.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/AppLovin/Editor.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/AppLovin/Plugins.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/AppLovin/Plugins/Android.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

DemoApp/Assets/MaxSdk/AppLovin/Plugins/iOS.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/AppLovin/Plugins/iOS/MAUnityPlugin.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "MAUnityAdManager.h"
1010

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

1414
@interface NSString (ALUtils)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# AppLovin MAX Unity Plugin
22

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

DemoApp/Assets/MaxSdk/Version.md.meta renamed to DemoApp/Assets/MaxSdk/CHANGELOG.md.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/Prefabs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/Resources.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/Resources/Images.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/Scripts.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DemoApp/Assets/MaxSdk/Scripts/IntegrationManager/Editor/AppLovinAutoUpdater.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static void ShowPluginUpdateDialogIfNeeded(PluginData data)
8484

8585
// 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.
8686
var comparison = data.AppLovinMax.CurrentToLatestVersionComparisonResult;
87-
if (comparison == MaxSdkUtils.VersionComparisonResult.Equal || comparison == MaxSdkUtils.VersionComparisonResult.Greater) return;
87+
if (comparison == Versions.VersionComparisonResult.Equal || comparison == Versions.VersionComparisonResult.Greater) return;
8888

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

157157
private static bool GoogleNetworkAdaptersCompatible(string googleVersion, string googleAdManagerVersion, string breakingVersion)
158158
{
159-
var googleResult = MaxSdkUtils.CompareVersions(googleVersion, breakingVersion);
160-
var googleAdManagerResult = MaxSdkUtils.CompareVersions(googleAdManagerVersion, breakingVersion);
159+
var googleResult = AppLovinIntegrationManagerUtils.CompareVersions(googleVersion, breakingVersion);
160+
var googleAdManagerResult = AppLovinIntegrationManagerUtils.CompareVersions(googleAdManagerVersion, breakingVersion);
161161

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

166-
if (googleAdManagerResult == MaxSdkUtils.VersionComparisonResult.Lesser &&
167-
googleResult != MaxSdkUtils.VersionComparisonResult.Lesser) return false;
166+
if (googleAdManagerResult == Versions.VersionComparisonResult.Lesser &&
167+
googleResult != Versions.VersionComparisonResult.Lesser) return false;
168168

169169
return true;
170170
}

DemoApp/Assets/MaxSdk/Scripts/IntegrationManager/Editor/AppLovinInitialize.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public class AppLovinInitialize
7070
"MaxSdk/Scripts/MaxVariableServiceUnityEditor.cs",
7171
"MaxSdk/Scripts/MaxVariableServiceUnityEditor.cs.meta",
7272

73+
// The `MaxSdk/Scripts/Editor` folder contents have been moved into `MaxSdk/Scripts/IntegrationManager/Editor`.
74+
"MaxSdk/Version.md",
75+
"MaxSdk/Version.md.meta",
76+
7377
// TODO: Add MaxTargetingData and MaxUserSegment when the plugin has enough traction.
7478
};
7579

@@ -84,9 +88,9 @@ static AppLovinInitialize()
8488
#endif
8589

8690
var pluginParentDir = AppLovinIntegrationManager.PluginParentDirectory;
87-
var isPluginOutsideAssetsDir = AppLovinIntegrationManager.IsPluginOutsideAssetsDirectory;
88-
var changesMade = AppLovinIntegrationManager.MovePluginFilesIfNeeded(pluginParentDir, isPluginOutsideAssetsDir);
89-
if (isPluginOutsideAssetsDir)
91+
var isPluginInPackageManager = AppLovinIntegrationManager.IsPluginInPackageManager;
92+
var changesMade = AppLovinIntegrationManager.MovePluginFilesIfNeeded(pluginParentDir, isPluginInPackageManager);
93+
if (isPluginInPackageManager)
9094
{
9195
// 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.
9296
var mediationDir = Path.Combine(pluginParentDir, "MaxSdk/Mediation");

0 commit comments

Comments
 (0)