This commit is contained in:
edy
2026-07-14 11:18:32 +08:00
parent 57709d109d
commit 9c61327439
179 changed files with 5983 additions and 3517 deletions
-1
View File
@@ -19,7 +19,6 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
{
"AdColony",
"Criteo",
"LinkedIn",
"Nend",
"Snap",
"Tapjoy",
+1 -1
View File
@@ -373,7 +373,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
{
if (!webResponse.IsSuccess)
{
MaxSdkLogger.UserError("Failed to load plugin data. Please check your internet connection.");
MaxSdkLogger.E("Failed to load plugin data. Please check your internet connection.");
return null;
}
+13 -5
View File
@@ -27,6 +27,8 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
private const string PropertyAndroidX = "android.useAndroidX";
private const string PropertyJetifier = "android.enableJetifier";
private const string EnableProperty = "=true";
private const string PropertyDexingArtifactTransform = "android.enableDexingArtifactTransform";
private const string DisableProperty = "=false";
private const string KeyMetaDataAppLovinVerboseLoggingOn = "applovin.sdk.verbose_logging";
private const string KeyMetaDataGoogleApplicationId = "com.google.android.gms.ads.APPLICATION_ID";
@@ -80,13 +82,19 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
var lines = File.ReadAllLines(gradlePropertiesPath);
// Add all properties except AndroidX, Jetifier, and DexingArtifactTransform since they may already exist. We will re-add them below.
gradlePropertiesUpdated.AddRange(lines.Where(line => !line.Contains(PropertyAndroidX) && !line.Contains(PropertyJetifier)));
gradlePropertiesUpdated.AddRange(lines.Where(line => !line.Contains(PropertyAndroidX) && !line.Contains(PropertyJetifier) && !line.Contains(PropertyDexingArtifactTransform)));
}
// Enable AndroidX and Jetifier properties
gradlePropertiesUpdated.Add(PropertyAndroidX + EnableProperty);
gradlePropertiesUpdated.Add(PropertyJetifier + EnableProperty);
// `DexingArtifactTransform` has been removed in Gradle 8+ which is the default Gradle version for Unity 6.
#if !UNITY_6000_0_OR_NEWER
// Disable dexing using artifact transform (it causes issues for ExoPlayer with Gradle plugin 3.5.0+)
gradlePropertiesUpdated.Add(PropertyDexingArtifactTransform + DisableProperty);
#endif
try
{
File.WriteAllText(gradlePropertiesPath, string.Join("\n", gradlePropertiesUpdated.ToArray()) + "\n");
@@ -274,7 +282,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
}
else
{
MaxSdkLogger.UserError("Failed to set distribution URL");
MaxSdkLogger.E("Failed to set distribution URL");
}
}
@@ -284,7 +292,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
// Unity 2022.3+ requires Gradle Plugin version 7.1.2+.
if (MaxSdkUtils.CompareVersions(customGradleToolsVersion, "7.1.2") == MaxSdkUtils.VersionComparisonResult.Lesser)
{
MaxSdkLogger.UserError("Failed to set gradle plugin version. Unity 2022.3+ requires gradle plugin version 7.1.2+");
MaxSdkLogger.E("Failed to set gradle plugin version. Unity 2022.3+ requires gradle plugin version 7.1.2+");
return;
}
@@ -295,7 +303,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
}
else
{
MaxSdkLogger.UserError("Failed to set gradle library version");
MaxSdkLogger.E("Failed to set gradle library version");
}
var newGradleVersionLine = AppLovinProcessGradleBuildFile.GetFormattedBuildScriptLine(string.Format("id 'com.android.application' version '{0}' apply false", customGradleToolsVersion));
@@ -308,7 +316,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
}
else
{
MaxSdkLogger.UserError("Failed to set gradle plugin version");
MaxSdkLogger.E("Failed to set gradle plugin version");
}
}
}
+1 -1
View File
@@ -224,7 +224,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
var pluginData = AppLovinIntegrationManager.LoadPluginDataSync();
if (pluginData == null)
{
MaxSdkLogger.UserError("Failed to load plugin data. Dynamic libraries will not be embedded.");
MaxSdkLogger.E("Failed to load plugin data. Dynamic libraries will not be embedded.");
return null;
}
+2 -2
View File
@@ -57,7 +57,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
}
catch (Exception exception)
{
MaxSdkLogger.UserError("Unable to load Dependencies file due to exception: " + exception.Message);
MaxSdkLogger.E("Unable to load Dependencies file due to exception: " + exception.Message);
}
return null;
@@ -173,7 +173,7 @@ namespace AppLovinMax.Scripts.IntegrationManager.Editor
}
catch (Exception exception)
{
MaxSdkLogger.UserError("Unable to save Dependencies file due to exception: " + exception.Message);
MaxSdkLogger.E("Unable to save Dependencies file due to exception: " + exception.Message);
}
return false;
Regular → Executable
+1 -1
View File
@@ -14,7 +14,7 @@ public class MaxSdk :
MaxSdkUnityEditor
#endif
{
private const string _version = "8.6.4";
private const string _version = "8.6.2";
/// <summary>
/// Returns the current plugin version.
View File