This commit is contained in:
juncong lee 2025-09-02 21:42:18 +08:00
commit cb063b71b1
83 changed files with 138 additions and 68 deletions

View File

@ -155,6 +155,9 @@ namespace WZ
}else if (_configs[i].Key.ToLower() == KEY_THINKDATA_ID.ToLower())
{
StaticValue.TDAppID = valueTemp;
}else if (_configs[i].Key.ToLower() == KEY_THINKDATA_SS_URL.ToLower())
{
StaticValue.TDServerURL = valueTemp;
}else if (_configs[i].Key.ToLower() == KEY_Max_Inter.ToLower())
{
StaticValue.InterAdUnitID = valueTemp;
@ -306,6 +309,7 @@ namespace WZ
public const string KEY_Admob_InterId = "Admob_IV_ID";
public const string KEY_PRIVACY_URL = "tka_url_privacy";
public const string KEY_THINKDATA_ID = "ss_app_id";
public const string KEY_THINKDATA_SS_URL = "ss_url";
public const string KEY_ADJUST_ID = "adjust_id";
public const string KEY_TopOn_AppId = "ad_appid";
public const string KEY_TopOn_Reward = "AD_Reward";

View File

@ -12,8 +12,6 @@ using WZ;
public class AppSDKManager : D_MonoSingleton<AppSDKManager>
{
//包名
public const string PackageName = "com.rush.cash.earn.fast.real.money.game";
public void Init(Action action, bool showLog)
{
LoggerUtils.Enabled = showLog;
@ -24,10 +22,8 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
AdmobAdsManager.Instance.Initialize();
AdjustManager.Instance.Init();
ShuShuMangage.Instance.Init();
AdsSDKManager.Instance.InitSDK(null);
AdsSDKManager.Instance.InitSDK(action);
EFSdkManager.Instance.Init();
action?.Invoke();
}

View File

@ -11,6 +11,12 @@ namespace WZ
public bool IsInitialized { get; private set; } = false;
public void FetchRemoteConfig()
{
if (Application.isEditor)
{
return;
}
// Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
// {
// if (task.Result == Firebase.DependencyStatus.Available)
@ -205,29 +211,29 @@ namespace WZ
private string GetKey(string key, bool isEncrypt)
{
//ccb开头 忽略大小写
return isEncrypt ? $"ccb{EncryptionUtils.AesEncrypt(AppSDKManager.PackageName, key)}" : key;
return isEncrypt ? $"ccb{EncryptionUtils.AesEncrypt(Application.identifier, key)}" : key;
}
private string GetValueStr(string key, ConfigValue configValue)
{
return IsEncrypt(key) ? EncryptionUtils.AesDecrypt(AppSDKManager.PackageName, configValue.StringValue) : configValue.StringValue;
return IsEncrypt(key) ? EncryptionUtils.AesDecrypt(Application.identifier, configValue.StringValue) : configValue.StringValue;
}
private long GetValueLong(string key, ConfigValue configValue)
{
return IsEncrypt(key) ? long.Parse(EncryptionUtils.AesDecrypt(AppSDKManager.PackageName, configValue.StringValue)) : configValue.LongValue;
return IsEncrypt(key) ? long.Parse(EncryptionUtils.AesDecrypt(Application.identifier, configValue.StringValue)) : configValue.LongValue;
}
private bool GetValueBool(string key, ConfigValue configValue)
{
return IsEncrypt(key) ? bool.Parse(EncryptionUtils.AesDecrypt(AppSDKManager.PackageName, configValue.StringValue)) : configValue.BooleanValue;
return IsEncrypt(key) ? bool.Parse(EncryptionUtils.AesDecrypt(Application.identifier, configValue.StringValue)) : configValue.BooleanValue;
}
private double GetValueDouble(string key, ConfigValue configValue)
{
if (IsEncrypt(key))
{
string valueStr = EncryptionUtils.AesDecrypt(AppSDKManager.PackageName, configValue.StringValue);
string valueStr = EncryptionUtils.AesDecrypt(Application.identifier, configValue.StringValue);
if (float.TryParse(valueStr, NumberStyles.Float, CultureInfo.InvariantCulture, out float result))
{
return result;

View File

@ -13,7 +13,7 @@ namespace WZ
//开启自动采集事件
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
//如果用户已登录可以设置用户的账号ID作为身份唯一标识
TDAnalytics.Login("TA");
// TDAnalytics.Login("TA");
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 66097a453f18a4d4f9422a1e379663cc
guid: 0745324834ef74999906226c100301ff
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3591a824713e74aabbb3ea1f68ac3b07
guid: bab8c0ea0bf4246e5a560eaa731436ab
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:24.0.0"/>
<androidPackage spec="com.google.android.gms:play-services-ads:24.4.0"/>
</androidPackages>
</dependencies>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 79c5470cec67a429296a07d110c789a9
guid: 287f554339eb64b75bdaef39c5652777
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"admob","version":"24.0.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/admob"}
{"name":"admob","version":"24.4.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/admob"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 87eed065245e24d09ac8315a2fc3cb32
guid: 6733375e1d6454dd2b9d2ea31a2e1084
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 53028d5c65eca485b9edb03c21b569b6
guid: 472d65a99aea24a0296e2ef17095bb90
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 893510a029a7f45e78411f3a749c5e00
guid: 4cb4e8f5e70da4130a307ce611e43fde
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.applovin:applovin-sdk:13.2.0"/>
<androidPackage spec="com.applovin:applovin-sdk:13.3.1"/>
</androidPackages>
</dependencies>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 32c54dd52715946139ef2b39931bf626
guid: 18d7490362bd34840b60845af7d773e4
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"applovin","version":"13.2.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/applovin"}
{"name":"applovin","version":"13.3.1","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/applovin"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0fa57bcec0c9d4e439af8d41883a53c1
guid: f2cc7c0e3e24b4f8e898439b1a6379a8
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 275f01831dd044bbeb805ed2dedcc3e5
guid: bdeeb641c3e6b4f3eaf66af3bd2fff57
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 29b214ce717a3413cb2b73c0d0447df7
guid: 494cf89d9b0e94c37b6153a7f203ea70
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c6c0e2a69542742e8a66baaf227ccd15
guid: 3552b3e4be4964f7aa63617836c657e9
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"bigo","version":"5.3.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/bigo"}
{"name":"bigo","version":"5.3.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/bigo"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 30c4aacd557334bf78589301e250a019
guid: c5e19ae6e75e441958b7de993d1c9b5c
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c50ff5b5553d84ff2836e64015babae6
guid: 82358ac85d9aa4d089c6a1300e70bb90
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dbabbfd0df04b413c9a0ca7edb27caf3
guid: 20b68da3df3c547cbbc5d556648c9468
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,6 +1,6 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.fyber:marketplace-sdk:8.3.5"/>
<androidPackage spec="com.fyber:marketplace-sdk:8.3.7"/>
<androidPackage spec="com.google.android.gms:play-services-ads-identifier:18.0.1"/>
</androidPackages>
</dependencies>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d88f8a1aa1fe643479ac0243a1b2e680
guid: 24f028fb3ab0647858309b1854e32ef5
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"fyber","version":"8.3.5","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/fyber"}
{"name":"fyber","version":"8.3.7","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/fyber"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 94a73f22b25c94acd90b5853845a923d
guid: 754e82b655e244587aeb766030fd27fc
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b09bfd714a0a94df2a20ba0d19e1496a
guid: 456ec4ac0e9904676897069f4ac4ea31
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: acc91d7e396804fe082c143b14779785
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
<dependencies>
<androidPackages>
<repositories>
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea</repository>
</repositories>
<androidPackage spec="com.mbridge.msdk.oversea:mbridge_android_sdk:16.9.71"/>
<androidPackage spec="androidx.recyclerview:recyclerview:1.1.0"/>
</androidPackages>
</dependencies>

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 381932fee1da94646a0fbf163cc33e60
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
{"name":"gtm","version":"16.9.71","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/gtm"}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c2406e3d901104c4eaf00ce95e8bdf8a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c597407a834f34d9c878719d7fbb5ad7
guid: 8a85f725b8b2b463c8f6c7b3a70b984a
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 321bde00fb33c4b819258480bc2f48e1
guid: 0aa9de8fa54354469b89d5338124bc61
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dceadcda9d597450bb61a892342a4f97
guid: b5996bc48601b45b4964c6ed78cb272c
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,7 +1,7 @@
<dependencies>
<androidPackages>
<androidPackage spec="io.github.kwainetwork:adApi:1.2.15"/>
<androidPackage spec="io.github.kwainetwork:adImpl:1.2.15"/>
<androidPackage spec="io.github.kwainetwork:adApi:1.2.19"/>
<androidPackage spec="io.github.kwainetwork:adImpl:1.2.19"/>
<androidPackage spec="androidx.media3:media3-exoplayer:1.0.0-alpha01"/>
<androidPackage spec="androidx.appcompat:appcompat:1.6.1"/>
<androidPackage spec="com.google.android.material:material:1.2.1"/>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4b30520c6c55240b3984335af320b9aa
guid: 7ea041b02ff2e476ead5903391256535
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"kwai","version":"1.2.15","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/kwai"}
{"name":"kwai","version":"1.2.19","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/kwai"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e7f7e3012bc014eb4aa4a3519de40577
guid: 8d9c32167e3e842e28b11442b024ab6a
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3c54b29615ff248edb295b679253f357
guid: 4110210b5d4384bb384f5c4e8dd7ca25
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e866535958a0e4b44b7ba31cc536afaa
guid: ac3cfe182a04a4f539865ae2b5aec834
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -4,6 +4,6 @@
<repository>https://artifact.bytedance.com/repository/pangle</repository>
</repositories>
<androidPackage spec="com.pangle.global:pag-sdk:7.2.0.6"/>
<androidPackage spec="com.google.android.gms:play-services-ads-identifier:18.0.1"/>
<androidPackage spec="com.google.android.gms:play-services-ads-identifier:18.2.0"/>
</androidPackages>
</dependencies>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d3f073adbe334410189f838cbfc38c8e
guid: 1c4445cc40d5b42b4a49aeb0dd41f234
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"pangle","version":"7.2.0.6","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/pangle"}
{"name":"pangle","version":"7.2.0.6","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/pangle"}

View File

@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 9ed17739cd6a24cb1b02e66ce61fba4c
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 63ebe0f2bf8c34ea5b248dd30bdea03a
guid: b8acbc1e6c9564c9aa04d3f4a51c86f5
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4b1eb38090e1f4195a81017758386a2b
guid: df2d49591f0a148ae82fc6417ff18c65
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cfbced8dc12ae4f77a0ed24039d567b9
guid: 2254079cdcbfc436ba6ea625098fdba3
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"unityads","version":"4.14.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/unityads"}
{"name":"unityads","version":"4.14.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/unityads"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c0f9e49caa7984511ac57598ffc1891f
guid: d860a1b670b954b618e003a22b7e4c35
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ba24f7bb09b4e460199f32817c523917
guid: 6b35ca880144a423f86dda82b24ba096
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b9c7418676dd940b1a5757e45e63f786
guid: 28448138581984488be85cbe43d5a324
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,6 +1,6 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.vungle:vungle-ads:7.4.3"/>
<androidPackage spec="com.vungle:vungle-ads:7.5.0"/>
<androidPackage spec="com.google.android.gms:play-services-basement:18.1.0"/>
<androidPackage spec="com.google.android.gms:play-services-ads-identifier:18.0.1"/>
</androidPackages>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 11ea8af5e284444888e3cb6fdf1b5117
guid: f74ba6e8e1a154c04a80c3ddab9a2452
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1 +1 @@
{"name":"vungle","version":"7.4.3","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds\\Plugins/Android/NonChina/mediation/vungle"}
{"name":"vungle","version":"7.5.0","country":2,"path":"Assets/ThinkupTpnPlugin/AnyThinkAds/Plugins/Android/NonChina/mediation/vungle"}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8c6689988629847a6b34c87c2fb7119a
guid: cec2c2fd88b454308aeef09ec1ca3953
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f8c60e664efa14fda9020e69da03b115
guid: 836d3bd9e55354ddeaeb360a18262620
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7ddd6cb9304b142cc8e9679d12a8024e
guid: d790c9269059649d2b368f450fd8e70a
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3556624dfc7a54954979285957b6c14c
guid: ec8c173033c8d4313a75111bbc635b70
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dec2bd67467ac44c592fa81eec6a7158
guid: 068817dcb5b18423db934292efdcb9e0
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e459c6865703d4e49b0c30a6cd2f211d
guid: aec03e74b29eb4c9a88ab36740940900
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d8bc8cb5aa270499c906961742a7c939
guid: 29bcab24584934c8080d29b55829a9af
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 688a61d0f916b4af4841d0ca98410af5
guid: c6b1e16df9b914c1e89525b07263d1c5
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8b33788ccd8ad4452a97cd0bcb29383f
guid: 88037e4fda18044d6b8414aa576b6be9
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1 +1 @@
{"curCountry":2,"china":{"android_version":"","ios_version":"","androidXSetting":0,"country":1,"android_admob_app_id":"","ios_admob_app_id":""},"nonchina":{"android_version":"6.4.87","ios_version":"","androidXSetting":1,"country":2,"android_admob_app_id":"ca-app-pub-4412893362169872~3251970323","ios_admob_app_id":""}}
{"curCountry":2,"china":{"android_version":"","ios_version":"","androidXSetting":0,"country":1,"android_admob_app_id":"","ios_admob_app_id":""},"nonchina":{"android_version":"6.5.10","ios_version":"","androidXSetting":1,"country":2,"android_admob_app_id":"ca-app-pub-4412893362169872~3251970323","ios_admob_app_id":""}}