17 Commits

Author SHA1 Message Date
4d26ebf941 升级sdk 版本 2025-03-13 15:28:56 +08:00
97f5d4bf90 update 2024-11-01 11:42:40 +08:00
f682534bc3 剔出gromore 2024-10-12 14:45:14 +08:00
edaa47d69a update core 2024-10-09 15:57:12 +08:00
c6e610f440 update core 1.3.2 2024-10-09 15:56:50 +08:00
73fa02eb95 update core 2024-10-09 10:28:05 +08:00
4919b650de fixed 1.3.1 add baidu sdk 2024-10-09 10:25:02 +08:00
b671923241 fixed 1.3.1 2024-09-30 21:56:17 +08:00
09ce6160e0 更新版本 2024-09-30 00:49:46 +08:00
8c66da0599 1.2.9 2024-09-28 20:01:50 +08:00
d0b0c77247 update core 2024-09-09 17:06:08 +08:00
3a916cc037 update core 2024-09-09 16:35:41 +08:00
e2128fbc79 升级sdk平台版本 2024-09-09 16:35:06 +08:00
81283ef60a update 2.1.3 2024-09-09 15:59:47 +08:00
038c7d149f update core 2024-06-14 15:25:09 +08:00
603b813d24 update core 2024-06-14 15:18:59 +08:00
35bb8dfd28 update core 2024-06-14 15:02:10 +08:00
115 changed files with 620 additions and 306 deletions

4
.gitignore vendored
View File

@@ -9,6 +9,7 @@ Build/
AssetBundle/
UserSettings/
# Uncomment this line if you wish to ignore the asset store tools plugin
# [Aa]ssets/AssetStoreTools*
@@ -54,4 +55,5 @@ sysinfo.txt
# Crashlytics generated file
crashlytics-build.properties
.DS_Store
.DS_Store
.vscode/

View File

@@ -40,6 +40,16 @@ namespace AnyThinkAds.Api
public readonly int abtest_id;
public readonly string reward_custom_data;
public readonly int placement_type;
public readonly string shared_placement_id;
public readonly string bid_floor;
public readonly int dismiss_type;
public readonly int ad_source_type;
public readonly string ad_source_custom_ext;
public readonly string network_name;
public readonly string show_custom_ext;
public readonly string e_c;
public readonly int s_id;
private string callbackJson;
@@ -94,6 +104,16 @@ namespace AnyThinkAds.Api
reward_custom_data = jsonData.ContainsKey("reward_custom_data") ? (string)jsonData["reward_custom_data"] : "";
placement_type = int.Parse(jsonData.ContainsKey("placement_type") ? jsonData["placement_type"].ToString() : "0");
shared_placement_id = jsonData.ContainsKey("shared_placement_id") ? jsonData["shared_placement_id"].ToString() : "";
bid_floor = jsonData.ContainsKey("bid_floor") ? jsonData["bid_floor"].ToString() : "";
dismiss_type = int.Parse(jsonData.ContainsKey("dismiss_type") ? jsonData["dismiss_type"].ToString() : "0");
ad_source_type = int.Parse(jsonData.ContainsKey("ad_source_type") ? jsonData["ad_source_type"].ToString() : "0");
ad_source_custom_ext = jsonData.ContainsKey("ad_source_custom_ext") ? jsonData["ad_source_custom_ext"].ToString() : "";
network_name = jsonData.ContainsKey("network_name") ? jsonData["network_name"].ToString() : "";
show_custom_ext = jsonData.ContainsKey("show_custom_ext") ? jsonData["show_custom_ext"].ToString() : "";
e_c = jsonData.ContainsKey("e_c") ? jsonData["e_c"].ToString() : "";
s_id = int.Parse(jsonData.ContainsKey("s_id") ? jsonData["s_id"].ToString() : "0");
}
catch (System.Exception e) {
System.Console.WriteLine("Exception caught: {0}", e);
@@ -150,6 +170,16 @@ namespace AnyThinkAds.Api
dataDictionary.Add("custom_rule", custom_rule);
dataDictionary.Add("ext_info", ext_info);
dataDictionary.Add("reward_custom_data", reward_custom_data);
dataDictionary.Add("placement_type", placement_type);
dataDictionary.Add("shared_placement_id", shared_placement_id);
dataDictionary.Add("bid_floor", bid_floor);
dataDictionary.Add("dismiss_type", dismiss_type);
dataDictionary.Add("ad_source_type", ad_source_type);
dataDictionary.Add("ad_source_custom_ext", ad_source_custom_ext);
dataDictionary.Add("network_name", network_name);
dataDictionary.Add("show_custom_ext", show_custom_ext);
dataDictionary.Add("e_c", e_c);
dataDictionary.Add("s_id", s_id);
return dataDictionary;
}

View File

@@ -46,10 +46,14 @@ namespace AnyThinkAds.Api{
this.y = y;
this.width = width;
this.height = height;
this.usesPixel = false;
this.backgroundColor = backgroundColor;
this.textColor = textColor;
this.textSize = textSize;
#if UNITY_ANDROID
this.usesPixel = true;
#else
this.usesPixel = false;
#endif
}
}
}

View File

@@ -21,15 +21,18 @@ namespace AnyThinkAds.Api
this.y = y;
this.width = width;
this.height = height;
this.usesPixel = false;
}
public int x = 0;
public int y = 0;
public int width = 0;
public int height = 0;
public bool usesPixel = false;
// public bool usesPixel = false;
#if UNITY_ANDROID
public bool usesPixel = true;
#else
public bool usesPixel = false;
#endif
}
public class ATSize
@@ -45,11 +48,15 @@ namespace AnyThinkAds.Api
{
this.width = width;
this.height = height;
this.usesPixel = false;
}
public int width = 0;
public int height = 0;
public bool usesPixel = false;
#if UNITY_ANDROID
public bool usesPixel = true;
#else
public bool usesPixel = false;
#endif
}
}

View File

@@ -93,6 +93,11 @@ namespace AnyThinkAds.Api
client.showDebuggerUI();
}
public static void showDebuggerUI(string debugKey)
{
client.showDebuggerUI(debugKey);
}
public static void setGDPRLevel(int level)
{
client.setGDPRLevel(level);

View File

@@ -10,6 +10,7 @@ namespace AnyThinkAds.Common
void initSDK(string appId, string appKey);
void initSDK(string appId, string appKey, ATSDKInitListener listener);
void showDebuggerUI();
void showDebuggerUI(string debugKey);
void getUserLocation(ATGetUserLocationListener listener);
void setGDPRLevel(int level);
void showGDPRAuth();

View File

@@ -163,6 +163,7 @@ namespace AnyThinkAds
public void setWXStatus(bool install) { }
public void setLocation(double longitude, double latitude) { }
public void showDebuggerUI() {}
public void showDebuggerUI(string debugKey) {}
}
class UnityBannerClient:IATBannerAdClient

View File

@@ -153,7 +153,7 @@ namespace AnyThinkAds.Android
try{
if (bannerHelperMap.ContainsKey(placementId)) {
this.bannerHelperMap[placementId].Call ("showBannerAd", rect.x, rect.y, rect.width, rect.height, mapJson);
this.bannerHelperMap[placementId].Call ("showBannerAd", rect.x, rect.y, rect.width, rect.height, mapJson, rect.usesPixel);
}
}catch(System.Exception e){
System.Console.WriteLine("Exception caught: {0}", e);

View File

@@ -373,11 +373,15 @@ namespace AnyThinkAds.Android
}
public void showDebuggerUI() {
showDebuggerUI("");
}
public void showDebuggerUI(string debugKey) {
try
{
if (this.sdkInitHelper != null)
{
this.sdkInitHelper.Call("showDebuggerUI");
this.sdkInitHelper.Call("showDebuggerUI", debugKey);
}
}
catch (System.Exception e)

View File

@@ -200,5 +200,10 @@ namespace AnyThinkAds.iOS {
Debug.Log("Unity:ATSDKAPIClient::showDebuggerUI()");
ATManager.showDebuggerUI();
}
public void showDebuggerUI(string debugKey)
{
//TODO 待iOS支持线上测试的SDK版本上线
}
}
}

View File

@@ -69,11 +69,7 @@
}
NSString *defaultAdSourceConfig = extra[@"default_adSource_config"];
NSLog(@"ATSplashAdWrapper::extra = %@", extra);
[[ATAdManager sharedManager] loadADWithPlacementID:placementID
extra:extra
delegate:self
containerView:nil
defaultAdSourceConfig:defaultAdSourceConfig];
[[ATAdManager sharedManager] loadADWithPlacementID:placementID extra:extra delegate:self containerView:nil];
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1488d178aaa4f482ea8c309372694069
guid: 26285ca98a78f457881762235082f07a
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 51a89bd698bd46358af7ea78f5245d04
timeCreated: 1693816810

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<repositories>
<repository>https://artifact.bytedance.com/repository/pangle</repository>
</repositories>
<androidPackage spec="com.pangle.cn:mediation-sdk:5.9.2.8"/>
</androidPackages>
</dependencies>

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: aed17cf9003947689bdd0e379dc9c087
timeCreated: 1693815837

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 254398fdf021c4a779725a49d41f0e61
guid: 72481ce8801cd4eb29bf2a4853ebe5b0
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

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

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 31b5cf97768a140e298ddc29fc51435b
guid: 76ac3b69f465f4b7d946b3f0df2a3d8d
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 86c7ce492ac2f1f40ba39a585d683a73
guid: 5253fa9c3d29b454aadad0d01d335504
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -0,0 +1 @@
{"name":"baidu","version":"9.37","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/Android/China/mediation/baidu"}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: da8d95d91da49a246a7075e6b8f74cd4
guid: c8cc45ac0f487bd48a3f5dedce04bf4e
TextScriptImporter:
externalObjects: {}
userData:

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e9c9c9037adb147c6a23506e8d09da1d
guid: 0193284827ad2400c815083bfdb59425
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5feb6ef12c786cd40a262c2aba17ef13
guid: 84e928ce9a03c451382a9bbadf2de1b5
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 461ee595b165344e1902e1be3a8a7e6a
guid: b69ea18f5f800432fb1be4c20db6c464
PluginImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -0,0 +1 @@
{"name":"csj","version":"6.4.1.1","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/Android/China/mediation/csj"}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ca8c6fc3d53407b4599570a7a8328abd
guid: f9e3eb9a77788a54a83ca1ca1f9c2e06
TextScriptImporter:
externalObjects: {}
userData:

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 965a603742b554c449c14c9323811037
guid: abdda48f44fed4d0596ebb3564af537c
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 23e424a0879774c0d9be59057061c712
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 +1 @@
{"name":"gdt","version":"4.575.1445","country":1,"path":"Assets/AnyThinkPlugin/AnyThinkAds\\Plugins/Android/China/mediation/gdt"}
{"name":"gdt","version":"4.603.1473","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/Android/China/mediation/gdt"}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b0d5b178b07f1469cbe2d743ca7cb28e
guid: 53423f4eaebf4476da5a08f0e7d84997
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

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

View File

@@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 43adb02535ce84058bace9a4bf525ee6
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

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 9efd0b28f0b6145b999c511961746e94
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 +1 @@
{"name":"kuaishou","version":"3.3.63","country":1,"path":"Assets/AnyThinkPlugin/AnyThinkAds\\Plugins/Android/China/mediation/kuaishou"}
{"name":"kuaishou","version":"3.3.69.4","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/Android/China/mediation/kuaishou"}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 406f629690d694824a25e1e02b281714
guid: bbb9d30c0227c4221b08a0a19f76417d
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a76fc36f21b114871a69b84e5326a37a
guid: 3a8ebcafcd2464659b3edd75235ccb3e
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 4fec1677b8a864b0d97f8ed05561da6b
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

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: be4b35e05f4464a3a9d47e5a421f2c46
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 +1 @@
{"name":"tap","version":"3.16.3.29","country":1,"path":"Assets/AnyThinkPlugin/AnyThinkAds\\Plugins/Android/China/mediation/tap"}
{"name":"tap","version":"3.16.3.34","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/Android/China/mediation/tap"}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c72490b4c19e04d59a5e5e27879e699f
guid: 9634f6b8602634017a969648cadeb629
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 968bcc6a91a6a5543bc7e455ada1b7ef
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

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: d1114d7069dbda64c88d1e55a8139d2a
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: 668ce08287b77354d9d17d91dc8e7399
guid: 79e7d078a28b97e4aa88261277efdc65
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 76dff0eaddf7c9e4db54ac483d4bd10c
guid: f4a837cf60e40c84690ece85b75c748e
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><dependencies>
<iosPods>
<iosPod name="AnyThinkiOS" version="6.2.98" />
</iosPods>
</dependencies>
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<iosPods>
<iosPod name="AnyThinkiOS" version="" />
</iosPods>
</dependencies>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><dependencies>
<iosPods>
<iosPod name="AnyThinkiOS/AnyThinkGDTAdapter" version="6.2.98" />
</iosPods>
</dependencies>

View File

@@ -1 +0,0 @@
{"name":"gdt","version":"4.14.70","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/iOS/China/gdt"}

View File

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

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><dependencies>
<iosPods>
<iosPod name="AnyThinkiOS" version="6.3.53" />
<iosPod name="AnyThinkGromoreSDKAdapter" version="6.3.53" />
<iosPod name="AnyThinkTTSDKAdapter_Mix" version="6.3.53" />
</iosPods>
</dependencies>

View File

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

View File

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

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><dependencies>
<iosPods>
<iosPod name="AnyThinkKuaiShouSDKAdapter" version="6.2.98.1" />
</iosPods>
</dependencies>

View File

@@ -1 +0,0 @@
{"name":"kuaishou","version":"3.3.63","country":1,"path":"Assets/AnyThinkPlugin/Script/IntegrationManager/Editor/../../..//AnyThinkAds\\Plugins/iOS/China/kuaishou"}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: ed74793b5ea74ddbaac678b7e6abd7cc
timeCreated: 1718347275

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 6d1c76be99144a4881eca8fa4c07d306
timeCreated: 1718347284

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<iosPods>
<iosPod name="AnyThinkDebugUISDK" version="1.0.1" />
</iosPods>
</dependencies>

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 2a9fff2a9fb744b396d01b8e5468f041
timeCreated: 1718347303

View File

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

View File

@@ -0,0 +1,7 @@
{
"status": 1,
"file_name": "AnyThinkHotFixPlugin_1.0.2.unitypackage",
"hot_fix_version": "1.0.2",
"download_url": "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release/plugin/2.1.3/hotfix/1.0.2/AnyThinkHotFixPlugin_1.0.2.unitypackage",
"plugin_version": "2.1.3"
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f92f62f89eb2b0f449717c9fabe037ca
guid: 6a38c5fcfcbe25f4fb2422e21dc89694
TextScriptImporter:
externalObjects: {}
userData:

View File

@@ -0,0 +1 @@
{"curCountry":1,"china":{"android_version":"6.4.17","ios_version":"6.3.68","androidXSetting":1,"country":1,"android_admob_app_id":"","ios_admob_app_id":""},"nonchina":{"android_version":"","ios_version":"","androidXSetting":0,"country":2,"android_admob_app_id":"","ios_admob_app_id":""}}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3d70d9e3e50ca41cf8ed11587a469d3c
guid: acde8a78fae894f42b9f709a56aab361
TextScriptImporter:
externalObjects: {}
userData:

View File

@@ -24,6 +24,7 @@ namespace AnyThink.Scripts.Editor
public class TopOnPostProcessBuildiOS
{
private static string mBuildPath;
private static readonly List<string> AtsRequiringNetworks = new List<string>
{
@@ -47,14 +48,53 @@ namespace AnyThink.Scripts.Editor
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "StartAppSDK/StartApp.xcframework"));
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "BigoADS/BigoADS/BigoADS.xcframework"));
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "BigoADS/BigoADS/OMSDK_Bigosg.xcframework"));
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "HyBid/PubnativeLite/PubnativeLite/OMSDK-1.3.29/OMSDK_Pubnativenet.xcframework"));
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "Fyber_Marketplace_SDK/IASDKCore/IASDKCore.xcframework"));
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "InMobiSDK/InMobiSDK.xcframework"));
//pubnative
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "ATOM-Standalone/ATOM.xcframework"));
string pubNativePath = Path.Combine(mBuildPath, "Pods/HyBid/PubnativeLite/PubnativeLite");
if (Directory.Exists(pubNativePath)) {
// 获取所有以"OMSDK-"开头的子目录
string[] subDirectories = Directory.GetDirectories(pubNativePath, "OMSDK-*");
if (subDirectories.Length > 0) {
string versionDirectory= subDirectories[0];
string versionDirectoryName = Path.GetFileName(versionDirectory);
// ATLog.logError("DynamicLibraryPathsToEmbed() >>> pubNative versionDirectoryName: " + versionDirectoryName);
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "HyBid/PubnativeLite/PubnativeLite/" + versionDirectoryName + "/OMSDK_Pubnativenet.xcframework"));
}
}
//applovin
string applovinPath = Path.Combine(mBuildPath, "Pods/AppLovinSDK");
if (Directory.Exists(applovinPath)) {
// 获取所有以"applovin-ios-sdk-"开头的子目录
string[] applovinSubDirectories = Directory.GetDirectories(applovinPath, "applovin-ios-sdk-*");
if (applovinSubDirectories.Length > 0) {
string applovinVersionDirectory = applovinSubDirectories[0];
string applovinVersionDirectoryName = Path.GetFileName(applovinVersionDirectory);
// ATLog.logError("DynamicLibraryPathsToEmbed() >>> applovinVersionDirectoryName: " + applovinVersionDirectoryName);
dynamicLibraryPathsToEmbed.Add(Path.Combine("Pods/", "AppLovinSDK/" + applovinVersionDirectoryName + "/AppLovinSDK.xcframework"));
}
}
return dynamicLibraryPathsToEmbed;
}
}
//读取本地已安装network的版本号:network_data.json
// private static string getNetworkVersion(string networkDataJsonFilePath)
// {
// if (!File.Exists(networkDataJsonFilePath)) {
// return "";
// }
// string jsonData = File.ReadAllText(networkDataJsonFilePath);
// var networkLocalData = JsonUtility.FromJson<NetworkLocalData>(a_json);
// if (networkLocalData != null) {
// return networkLocalData.version;
// }
// retrun "";
// }
private static List<string> BunldePathsToAdd {
get {
@@ -134,6 +174,8 @@ namespace AnyThink.Scripts.Editor
private static void EmbedDynamicLibrariesIfNeeded(string buildPath, PBXProject project, string targetGuid)
{
mBuildPath = buildPath;
ATLog.log("EmbedDynamicLibrariesIfNeeded() >>> buildPath: " + buildPath);
var dynamicLibraryPathsPresentInProject = DynamicLibraryPathsToEmbed.Where(dynamicLibraryPath => Directory.Exists(Path.Combine(buildPath, dynamicLibraryPath))).ToList();
if (dynamicLibraryPathsPresentInProject.Count <= 0) return;

View File

@@ -13,7 +13,9 @@ public static class IOSBuildPostprocess
[PostProcessBuild(999)]
public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
{
#if (UNITY_5 && UNITY_IOS) || UNITY_IPHONE
Debug.Log ("Ios Build PostProcess");
if (buildTarget == BuildTarget.iOS)
{
string projectPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 549434ffe9f948029231e62fa4941258
timeCreated: 1718347468

View File

@@ -16,9 +16,10 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
public class ATConfig
{
public static string PLUGIN_VERSION = "2.1.1";
public static string PLUGIN_VERSION = "2.1.3";
public static bool isDebug = false;
public static int PLUGIN_TYPE = 1;
public static int OS_ANDROID = 1;
public static int OS_IOS = 2;
public static int CHINA_COUNTRY = 1;
@@ -328,48 +329,63 @@ public static bool isDebug = false;
//获取admob app id
public static string getAdmobAppIdByOs(int os) {
var pluginSettingData = getPluginSettingData();
if (pluginSettingData == null) {
return "";
}
var settingData = pluginSettingData.getCountrySettingData();
return settingData.getAdmobAppId(os);
}
public static bool enableAndroidX() {
var pluginSettingData = getPluginSettingData();
if (pluginSettingData == null) {
return false;
}
return pluginSettingData.getCountrySettingData().androidXSetting == 1;
}
public static bool isDefaultAndroidX() {
var pluginSettingData = getPluginSettingData();
if (pluginSettingData == null) {
return false;
}
return pluginSettingData.getCountrySettingData().androidXSetting == 0;
}
//获取默认选中的地区
public static int getDefCountry() {
string version = PLUGIN_VERSION;
int lastIndex = version.LastIndexOf('.');
// string version = PLUGIN_VERSION;
// int lastIndex = version.LastIndexOf('.');
if (lastIndex != -1)
{
//2.1.0是区分国内海外的插件2.1.01:后缀多了1是只有海外的插件
string lastPart = version.Substring(lastIndex + 1);
if (lastPart.Length == 2) {
return NONCHINA_COUNTRY;
}
// if (lastIndex != -1)
// {
// //2.1.0是区分国内海外的插件2.1.01:后缀多了1是只有海外的插件
// string lastPart = version.Substring(lastIndex + 1);
// if (lastPart.Length == 2) {
// return NONCHINA_COUNTRY;
// }
// }
if(PLUGIN_TYPE == 2) {
return NONCHINA_COUNTRY;
}
return CHINA_COUNTRY;
}
public static string[] getCountryArray() {
// new string[] { "ChinaMainland", "Overseas" }
string version = PLUGIN_VERSION;
int lastIndex = version.LastIndexOf('.');
// string version = PLUGIN_VERSION;
// int lastIndex = version.LastIndexOf('.');
if (lastIndex != -1)
{
//2.1.0是区分国内海外的插件2.1.01:后缀多了1是只有海外的插件
string lastPart = version.Substring(lastIndex + 1);
if (lastPart.Length == 2) {
return new string[] { "Overseas" };
}
// if (lastIndex != -1)
// {
// //2.1.0是区分国内海外的插件2.1.01:后缀多了1是只有海外的插件
// string lastPart = version.Substring(lastIndex + 1);
// if (lastPart.Length == 2) {
// return new string[] { "Overseas" };
// }
// }
if(PLUGIN_TYPE == 2) {
return new string[] { "Overseas" };
}
return new string[] { "ChinaMainland", "Overseas" };
}

View File

@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: f8ba47e7e6684db4fbba23e147b0e34f
folderAsset: yes
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 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.alex.gromore.res">
</manifest>

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 5cdaa0a8dde8495782a285555245f421
timeCreated: 1695622122

View File

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

Some files were not shown because too many files have changed in this diff Show More