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,35 +1 @@
using UnityEngine;
/// <summary>
/// This class has been deprecated and will be removed in a future release
/// </summary>
public class MaxUserServiceAndroid
{
private static readonly AndroidJavaClass _maxUnityPluginClass = new AndroidJavaClass("com.applovin.mediation.unity.MaxUnityPlugin");
private static readonly MaxUserServiceAndroid _instance = new MaxUserServiceAndroid();
public static MaxUserServiceAndroid Instance
{
get { return _instance; }
}
/// <summary>
/// Preload the user consent dialog. You have the option to call this so the consent dialog appears
/// more quickly when you call <see cref="MaxUserServiceAndroid.ShowConsentDialog"/>.
/// </summary>
public void PreloadConsentDialog()
{
_maxUnityPluginClass.CallStatic("preloadConsentDialog");
}
/// <summary>
/// Show the user consent dialog to the user using one from AppLovin's SDK. You should check that you actually need to show the consent dialog
/// by checking <see cref="MaxSdkBase.ConsentDialogState"/> in the completion block of <see cref="MaxSdkCallbacks.OnSdkInitializedEvent"/>.
/// Please make sure to implement the callback <see cref="MaxSdkCallbacks.OnSdkConsentDialogDismissedEvent"/>.
/// </summary>
public void ShowConsentDialog()
{
_maxUnityPluginClass.CallStatic("showConsentDialog");
}
}
// This file has been deprecated and will be removed in a future plugin release.