feat(integration): 添加 AppLovin SDK 集成管理功能

- 实现 AppLovinIntegrationManagerUtils 版本比较工具类
- 添加 AppLovinPackageManager 处理 UPM 和 Assets 包管理
- 实现 AppLovinPluginMigrationHelper 插件迁移辅助功能
- 添加 AppLovinUpmManifest 管理 UPM 清单文件操作
- 支持 mediation adapter 的版本检测和安装管理
- 实现重复适配器检测和删除功能
This commit is contained in:
2026-01-20 19:01:21 +08:00
parent 4da1b3290e
commit 5b3dfd98c2
76 changed files with 3768 additions and 3668 deletions

View File

@@ -1,18 +1,21 @@
using System;
using UnityEngine;
public class MaxSdkLogger
{
private const string SdkTag = "AppLovin MAX";
public const string KeyVerboseLoggingEnabled = "com.applovin.verbose_logging_enabled";
/// <summary>
/// Log debug messages.
/// </summary>
public static void UserDebug(string message)
{
if (MaxSdk.DisableAllLogs) return;
Debug.Log("Debug [" + SdkTag + "] " + message);
}
/// <summary>
/// Log debug messages when verbose logging is enabled.
///
@@ -20,20 +23,21 @@ public class MaxSdkLogger
/// </summary>
public static void D(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.Log("Debug [" + SdkTag + "] " + message);
}
if (MaxSdk.DisableAllLogs || !MaxSdk.IsVerboseLoggingEnabled()) return;
Debug.Log("Debug [" + SdkTag + "] " + message);
}
/// <summary>
/// Log warning messages.
/// </summary>
public static void UserWarning(string message)
{
if (MaxSdk.DisableAllLogs) return;
Debug.LogWarning("Warning [" + SdkTag + "] " + message);
}
/// <summary>
/// Log warning messages when verbose logging is enabled.
///
@@ -41,20 +45,21 @@ public class MaxSdkLogger
/// </summary>
public static void W(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.LogWarning("Warning [" + SdkTag + "] " + message);
}
if (MaxSdk.DisableAllLogs || !MaxSdk.IsVerboseLoggingEnabled()) return;
Debug.LogWarning("Warning [" + SdkTag + "] " + message);
}
/// <summary>
/// Log error messages.
/// </summary>
public static void UserError(string message)
{
if (MaxSdk.DisableAllLogs) return;
Debug.LogError("Error [" + SdkTag + "] " + message);
}
/// <summary>
/// Log error messages when verbose logging is enabled.
///
@@ -62,9 +67,18 @@ public class MaxSdkLogger
/// </summary>
public static void E(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.LogError("Error [" + SdkTag + "] " + message);
}
if (MaxSdk.DisableAllLogs || !MaxSdk.IsVerboseLoggingEnabled()) return;
Debug.LogError("Error [" + SdkTag + "] " + message);
}
/// <summary>
/// Log exceptions.
/// </summary>
public static void LogException(Exception exception)
{
if (MaxSdk.DisableAllLogs) return;
Debug.LogException(exception);
}
}