5 Commits
master ... 203

Author SHA1 Message Date
0b26f0f418 update core 2024-04-01 11:34:03 +08:00
b050430d92 update 203 2024-03-13 18:17:53 +08:00
48130ad432 update 1.1.25 2024-03-13 16:25:29 +08:00
6d45d90190 update 1.1.25 2024-03-13 02:26:45 +08:00
a59eef7cc7 update 1.1.25 2024-03-13 01:54:23 +08:00
439 changed files with 5945 additions and 7102 deletions

4
.gitignore vendored
View File

@@ -54,6 +54,4 @@ sysinfo.txt
# Crashlytics generated file
crashlytics-build.properties
.DS_Store
.vscode/
.DS_Store

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6cfab85a96ec246bdb411450b546b791
guid: 0b1601c425ae3b24e9764462dbbe5359
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 39b8ca55bc9e749d1ab7d1ea31d40661
guid: ae70ff20f73a04e91b4e6bb12d7adc69
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b85e8925fa22644f1803fbdc727149ba
guid: c75a10c31aaa348b4a030c4caabc60bd
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 303b96d7e38d241d895947db76a77868
guid: 002e19684018e4c0287914f3970da311
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e25052682a99b4f11b9ccda0a98ec1ce
guid: b9db3427a8881406f9b7da625247c0e4
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -40,16 +40,6 @@ 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;
@@ -104,16 +94,6 @@ 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);
@@ -170,16 +150,6 @@ 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

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ebf4bf9c5f1a54007a31d4a19a30835c
guid: 70dd039af17f84740841c936f5021082
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: fc541fdcbb9254973a14d8aa4f305201
guid: 357112570f17745ec8287700969b5857
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e06efbc55c798478a941850f6726fdbb
guid: f397e1571653b4f909de35ecd27e25a6
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9b7e6ef35d34e47d79856f3e737b5a04
guid: baba4e8729e3d4e99bb742620b957127
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5417f30bdb0e84db696652694de24b55
guid: 401f3f72eaa384ecebf7fb06d380c9f3
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1e59697f061674b95b6fc11bf3eb570a
guid: 987cbef3a8a42464e9fe32624f08ec82
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6f74e005d6e184ccdbd0582232cfb896
guid: f5a6614e3827f44edb1c7a5412cf6863
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 63ff9b48e554f481b84df35718d2082c
guid: 9dddccc0f4402419eba44458d9075782
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ea594e5e65c2b44d581e5bbf6e46d2df
guid: 52d5dd611a7ba4e8ca6c688ad4987bb5
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c7e39d0f92be94036b0c3361002bdb6d
guid: 6f645156118af4f77934a7b79743cb00
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e02adf55e190948ba8238cbbb8e649d6
guid: eaad21e4abd854be3a34341ea0118fa7
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e977ada5558a4440ab4096ec189d66c3
guid: 884e06e3cad554df0af477f0211fd97e
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2ff7b39d30d2f48c7886af12676d5dca
guid: 3f2571c1daafd47a4a9b39d148e67184
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -46,14 +46,10 @@ 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

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 33288477361ec4906b2f2b90af9afe74
guid: dae05acc2ea674329944023bb798f046
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -21,18 +21,15 @@ 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;
#if UNITY_ANDROID
public bool usesPixel = true;
#else
public bool usesPixel = false;
#endif
public bool usesPixel = false;
}
public class ATSize
@@ -48,15 +45,11 @@ namespace AnyThinkAds.Api
{
this.width = width;
this.height = height;
this.usesPixel = false;
}
public int width = 0;
public int height = 0;
#if UNITY_ANDROID
public bool usesPixel = true;
#else
public bool usesPixel = false;
#endif
public bool usesPixel = false;
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2f4d9eae1b90142ca8004116a3e4c869
guid: 911d845f67e694a038cc2d85c86329d6
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6d40b4678e713487ab21c87b284165e9
guid: 07584f2ac39714cafbf91dc3f7199f37
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8e666f918e4a54255ae6d45c5ed483c0
guid: 88a35eb670a0e4da2978eda939b8d14d
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c2a8b39939a6e4561b49ec08c9648efa
guid: 167fb755fd59444ef864ebabd898ff7b
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -93,11 +93,6 @@ namespace AnyThinkAds.Api
client.showDebuggerUI();
}
public static void showDebuggerUI(string debugKey)
{
client.showDebuggerUI(debugKey);
}
public static void setGDPRLevel(int level)
{
client.setGDPRLevel(level);
@@ -229,20 +224,6 @@ namespace AnyThinkAds.Api
client.setLocation(longitude, latitude);
}
public static void start()
{
client.start();
}
public static bool isCnSDK()
{
return client.isCnSDK();
}
public static void setLocalStrategyAssetPath(string assetPath)
{
client.setLocalStrategyAssetPath(assetPath);
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2668d385cd9ef4bc385b0c1487756d84
guid: 01222258a75e14c76a2b7803c24cd0ee
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 92bd41ae21ada4f13ba4f646fe8d8e87
guid: 8c85ccef2c75348d2a824173f5c6641c
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6599afb4d52b14fa098f43f1d01be850
guid: c5196f0fee3834f3f9a1728ed2f57b13
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e99f46e9ff2ba49338673e9655a6b494
guid: d16e9791f346240b58344d4d6372b4fc
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5e27cbd650c5b4fd280cfda2125e9f1f
guid: 9ded34532e9f04a199738e82a8f7ca89
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4a56939c11661429c8c335f2d2bff40b
guid: cb4b69d48493d4554a5c5fa5c5339f39
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 14b00b8f6583c413eae808eee303e12e
guid: b50fc48df837a46fe8cbe86f4eae7ffd
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9411630d83c58412abdd159e43d90142
guid: cee7c1bbb0ef941d188379c77d780457
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 617b2801ea6ff4304bb9e0ad2e6d0f0f
guid: c27b85cb143584d0ba8801179cbaea43
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 272c430785265455c8a91a9749aea93f
guid: a30e2e904b2b74a0eb28f19bd328f5b7
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 123218759ab054ce0acc3258035c84ee
guid: 9be0d831a3fc3460b8f295348f4d5a1c
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d3d80e1d74a35402785ed9c96737d6e1
guid: 9eb74e818b581419b867c18f564accfa
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -10,7 +10,6 @@ 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();
@@ -31,8 +30,5 @@ namespace AnyThinkAds.Common
void getArea(ATGetAreaListener listener);
void setWXStatus(bool install);
void setLocation(double longitude, double latitude);
void start();
bool isCnSDK();
void setLocalStrategyAssetPath(string assetPath);
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f6241adafd0a04ea3932a1031dfa3af3
guid: 43b209adee5c64bce84d3188ebc0f0b1
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 987fa99d67af444b2996aec1b7561846
guid: 4f7a8598d743e4ba882400e6f205c5dc
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 04d37d787c52c483da357d5bc278a207
guid: bbfb513f68b154b0ebfa36897c6e4401
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -10,9 +10,6 @@ namespace AnyThinkAds
{
public class ATAdsClientFactory
{
private static IATInterstitialAdClient _sharedInterstitialAdClient;
private static IATRewardedVideoAdClient _sharedRewardedVideoAdClient;
public static IATBannerAdClient BuildBannerAdClient()
{
#if UNITY_EDITOR
@@ -30,25 +27,17 @@ namespace AnyThinkAds
public static IATInterstitialAdClient BuildInterstitialAdClient()
{
if (_sharedInterstitialAdClient != null)
{
return _sharedInterstitialAdClient;
}
#if UNITY_EDITOR
// Testing UNITY_EDITOR first because the editor also responds to the currently
// selected platform.
#elif UNITY_ANDROID
_sharedInterstitialAdClient = new AnyThinkAds.Android.ATInterstitialAdClient();
return _sharedInterstitialAdClient;
return new AnyThinkAds.Android.ATInterstitialAdClient();
#elif (UNITY_5 && UNITY_IOS) || UNITY_IPHONE
_sharedInterstitialAdClient = new AnyThinkAds.iOS.ATInterstitialAdClient();
return _sharedInterstitialAdClient;
return new AnyThinkAds.iOS.ATInterstitialAdClient();
#else
#endif
_sharedInterstitialAdClient = new UnityInterstitialClient();
return _sharedInterstitialAdClient;
return new UnityInterstitialClient();
}
public static IATNativeAdClient BuildNativeAdClient()
@@ -83,26 +72,18 @@ namespace AnyThinkAds
public static IATRewardedVideoAdClient BuildRewardedVideoAdClient()
{
if (_sharedRewardedVideoAdClient != null)
{
return _sharedRewardedVideoAdClient;
}
#if UNITY_EDITOR
// Testing UNITY_EDITOR first because the editor also responds to the currently
// selected platform.
#elif UNITY_ANDROID
_sharedRewardedVideoAdClient = new AnyThinkAds.Android.ATRewardedVideoAdClient();
return _sharedRewardedVideoAdClient;
return new AnyThinkAds.Android.ATRewardedVideoAdClient();
#elif (UNITY_5 && UNITY_IOS) || UNITY_IPHONE
_sharedRewardedVideoAdClient = new AnyThinkAds.iOS.ATRewardedVideoAdClient();
return _sharedRewardedVideoAdClient;
return new AnyThinkAds.iOS.ATRewardedVideoAdClient();
#else
#endif
_sharedRewardedVideoAdClient = new UnityRewardedVideoAdClient();
return _sharedRewardedVideoAdClient;
return new UnityRewardedVideoAdClient();
}
public static IATSDKAPIClient BuildSDKAPIClient()
@@ -181,11 +162,7 @@ namespace AnyThinkAds
public void getArea(ATGetAreaListener listener) { }
public void setWXStatus(bool install) { }
public void setLocation(double longitude, double latitude) { }
public void start() { }
public bool isCnSDK() { return false; }
public void setLocalStrategyAssetPath(string assetPath) { }
public void showDebuggerUI() {}
public void showDebuggerUI(string debugKey) {}
}
class UnityBannerClient:IATBannerAdClient
@@ -512,4 +489,4 @@ namespace AnyThinkAds
public void entryScenarioWithPlacementID(string placementId, string scenarioID) {}
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2a0c5a43af73c4beb81622fa5559fac3
guid: cbcf690f571ee45478aae3f6ef73b46d
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

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

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: fff5148ee5b5148b1b875749d5f2639e
guid: 80e0331161ce748b684c7b3465890805
MonoImporter:
externalObjects: {}
serializedVersion: 2

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, rect.usesPixel);
this.bannerHelperMap[placementId].Call ("showBannerAd", rect.x, rect.y, rect.width, rect.height, mapJson);
}
}catch(System.Exception e){
System.Console.WriteLine("Exception caught: {0}", e);

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6305825c684f14cef9d9283c59881206
guid: 8e468840b1c864035bf7429b6f79c60f
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5a6098e9d114f4f3584530c7a5361c42
guid: 09704d4a9a249454ca28515f8dfd3a07
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2853fd494219b478ba619568a7691609
guid: 6e5096ebc4e1742698452ec60f74b58b
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -156,7 +156,7 @@ namespace AnyThinkAds.Android
}catch(System.Exception e){
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log ("ATInterstitialAdClient : error."+e.Message);
throw;
}
}
@@ -403,7 +403,6 @@ namespace AnyThinkAds.Android
{
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log("Unity: ATInterstitialAdClient:showAutoAd() : error." + e.Message);
throw;
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 69c99a926c22841f8a85edf146afee38
guid: c6f71db9f63744a59be5df53303a706b
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f34d69c411401435c839f09004815591
guid: ddf8d9d3b1ebb4f21b2c2c3e02b5845e
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 41e3b7583470c40659c82050279f5635
guid: f0ac44483a8564e5d9428ed8267d913b
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e50f3f714bcb5482c87ea778887b210b
guid: dd1ce5cf512924c57846d8f3f379fcf8
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f25fcf4e04d1f43b287d19ad456699b8
guid: cd0149348eca7449f8cbc48ab9e2498c
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -160,7 +160,7 @@ namespace AnyThinkAds.Android
}catch(System.Exception e){
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log ("ATRewardedVideoAdClient : error."+e.Message);
throw;
}
}
@@ -390,7 +390,6 @@ namespace AnyThinkAds.Android
{
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log("Unity: ATRewardedVideoAdClient:showAutoAd() : error." + e.Message);
throw;
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b0c4f48c3056641138671590135acb04
guid: 7c61d4a12a1bc4447a211961cc6867ac
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -9,13 +9,11 @@ namespace AnyThinkAds.Android
public class ATSDKAPIClient : AndroidJavaProxy, IATSDKAPIClient
{
private AndroidJavaObject sdkInitHelper;
private AndroidJavaClass sdkClass;
private ATSDKInitListener sdkInitListener;
public ATSDKAPIClient () : base("com.anythink.unitybridge.sdkinit.SDKInitListener")
{
this.sdkInitHelper = new AndroidJavaObject(
"com.anythink.unitybridge.sdkinit.SDKInitHelper", this);
this.sdkClass = new AndroidJavaClass("com.anythink.core.api.ATSDK");
}
public void initSDK(string appId, string appKey)
@@ -375,15 +373,11 @@ namespace AnyThinkAds.Android
}
public void showDebuggerUI() {
showDebuggerUI("");
}
public void showDebuggerUI(string debugKey) {
try
{
if (this.sdkInitHelper != null)
{
this.sdkInitHelper.Call("showDebuggerUI", debugKey);
this.sdkInitHelper.Call("showDebuggerUI");
}
}
catch (System.Exception e)
@@ -392,59 +386,5 @@ namespace AnyThinkAds.Android
Debug.Log("ATSDKAPIClient : error." + e.Message);
}
}
public void start()
{
try
{
if (this.sdkClass != null)
{
this.sdkClass.CallStatic("start");
}
}
catch (System.Exception e)
{
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log("ATSDKAPIClient : start error." + e.Message);
}
}
public bool isCnSDK()
{
try
{
if (this.sdkClass != null)
{
return this.sdkClass.CallStatic<bool>("isCnSDK");
}
}
catch (System.Exception e)
{
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log("ATSDKAPIClient : isCnSDK error." + e.Message);
}
return false;
}
public void setLocalStrategyAssetPath(string assetPath)
{
try
{
if (this.sdkClass != null)
{
using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
using (AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
{
this.sdkClass.CallStatic("setLocalStrategyAssetPath", currentActivity, assetPath);
}
}
}
catch (System.Exception e)
{
System.Console.WriteLine("Exception caught: {0}", e);
Debug.Log("ATSDKAPIClient : setLocalStrategyAssetPath error." + e.Message);
}
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dc261ca3c0936463c9d358ab5ade132d
guid: 574bd4316cdbf4b118c89ffa1e5f086d
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -179,7 +179,7 @@ namespace AnyThinkAds.Android
public void onSplashAdDismiss(String unitId, String callbackJson)
{
onAdCloseEvent?.Invoke(this, new ATAdEventArgs(unitId, callbackJson));
onAdClickEvent?.Invoke(this, new ATAdEventArgs(unitId, callbackJson));
}
public void onSplashAdDeeplinkCallback(String unitId, String callbackJson, bool isSuccess)

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8dc4b2769444b40628c5504cccdcfae5
guid: 078be7445a3c3461a811882dd62c1602
MonoImporter:
externalObjects: {}
serializedVersion: 2

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