You've already forked Commercialization.topon
Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10a50a6f8b | |||
| 40604ebe19 | |||
| 5981631076 | |||
| 52bd0d8e48 | |||
| cefb29f596 | |||
| a7bf415c8d | |||
| dacf2e3e3f | |||
| 421c0b96e3 | |||
| 4421d7c2e8 | |||
| 936cc138e0 | |||
| f9097e1e8c | |||
| 81d55a534f | |||
| 3d31d2023b | |||
| e5e397e520 | |||
| 6d7cb4d65e | |||
| 3d2c777a38 | |||
| d12c65d17f | |||
| b2e5ef291d | |||
| 2e21c47442 | |||
| 0034f802c9 | |||
| 292cc58792 | |||
| 2d2f297ebc | |||
| 0f2acf4508 | |||
| 9a6c006139 | |||
| db8cfaf5f0 | |||
| 8ef3040443 | |||
| b87dd858be | |||
| 58676681d8 | |||
| 383f02a19d | |||
| abeafaffc8 | |||
| d09e25b3fb | |||
| 829038ff46 | |||
| 1418be4295 | |||
| d20f1ce60c | |||
| 1a9e55a8a3 | |||
| 5a00a4438a | |||
| 73f4004e79 | |||
| 25869c7e6a | |||
| aa9954b91a | |||
| c7873052f2 | |||
| 77cdb14ea5 | |||
| 3eaf8bc789 | |||
| 950569ee05 | |||
| 1da26e1d74 | |||
| caf057bb97 | |||
| 41f75ad3d0 | |||
| c07a7e5f4a | |||
| 120d3315fc | |||
| 5a24a3292c | |||
| 9a8096f347 | |||
| 0f760ca1a5 | |||
| 4ec2560f30 | |||
|
|
1d22a3dae0 | ||
|
|
75730fb783 | ||
|
|
38c9cabad2 | ||
| f8a4ac18c1 | |||
| c6bf3ec373 |
@@ -1,150 +0,0 @@
|
||||
//
|
||||
// ATBaseUnityWrapper.m
|
||||
// UnityContainer
|
||||
//
|
||||
// Created by Martin Lau on 08/08/2018.
|
||||
// Copyright © 2018 Martin Lau. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ATBaseUnityWrapper.h"
|
||||
#import "ATUnityUtilities.h"
|
||||
@interface ATBaseUnityWrapper()
|
||||
@property(nonatomic, readonly) NSMutableDictionary<NSString*, NSValue*> *callbacks;
|
||||
@property(nonatomic, readonly) dispatch_queue_t callbackAccessQueue;
|
||||
@end
|
||||
@implementation ATBaseUnityWrapper
|
||||
+(instancetype) sharedInstance {
|
||||
return nil;
|
||||
}
|
||||
|
||||
-(instancetype) init {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_callbacks = [NSMutableDictionary<NSString*, NSValue*> dictionary];
|
||||
_callbackAccessQueue = dispatch_queue_create("com.anythink.UnityPackage", DISPATCH_QUEUE_CONCURRENT);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void) setCallBack:(void (*)(const char *, const char *))callback forKey:(NSString *)key {
|
||||
__weak ATBaseUnityWrapper* weakSelf = self;
|
||||
if (callback != NULL && [key length] > 0)
|
||||
dispatch_barrier_async(_callbackAccessQueue, ^{
|
||||
weakSelf.callbacks[key] = [NSValue valueWithPointer:(void*)callback];
|
||||
});
|
||||
}
|
||||
|
||||
-(void) removeCallbackForKey:(NSString *)key {
|
||||
__weak ATBaseUnityWrapper* weakSelf = self;
|
||||
if ([key length] > 0)
|
||||
dispatch_barrier_async(_callbackAccessQueue, ^{
|
||||
[weakSelf.callbacks removeObjectForKey:key];
|
||||
});
|
||||
}
|
||||
|
||||
-(void(*)(const char*, const char *)) callbackForKey:(NSString*)key {
|
||||
__block void(*callback)(const char*, const char *) = NULL;
|
||||
if ([key length] > 0) {
|
||||
__weak ATBaseUnityWrapper* weakSelf = self;
|
||||
dispatch_barrier_sync(_callbackAccessQueue, ^{
|
||||
callback = (void(*)(const char*, const char *))[weakSelf.callbacks[key] pointerValue];
|
||||
});
|
||||
}
|
||||
return callback;
|
||||
}
|
||||
|
||||
-(NSString*)scriptWrapperClass {
|
||||
return @"";
|
||||
}
|
||||
|
||||
- (id)selWrapperClassWithDict:(NSDictionary *)dict callback:(void(*)(const char*, const char*))callback {
|
||||
return nil;
|
||||
}
|
||||
|
||||
-(void) invokeCallback:(NSString*)callback placementID:(NSString*)placementID error:(NSError*)error extra:(NSDictionary*)extra {
|
||||
if ([self callbackForKey:placementID] != NULL) {
|
||||
if ([callback isKindOfClass:[NSString class]] && [callback length] > 0) {
|
||||
|
||||
NSMutableDictionary *paraDict = [NSMutableDictionary dictionaryWithObject:callback forKey:@"callback"];
|
||||
|
||||
NSMutableDictionary *msgDict = [NSMutableDictionary dictionary];
|
||||
|
||||
if (![ATUnityUtilities isEmpty:extra]) {
|
||||
|
||||
// 过滤SDK返回参数的 user_load_extra_data 中不支持的类型
|
||||
if (extra[kATUnityUserExtraDataKey] != nil) {
|
||||
NSMutableDictionary *extraDictM = [NSMutableDictionary dictionaryWithDictionary:extra];
|
||||
NSMutableDictionary *extraDataTemp = [NSMutableDictionary dictionary];
|
||||
NSMutableDictionary *extraDataDictM = [NSMutableDictionary dictionaryWithDictionary:extra[kATUnityUserExtraDataKey]];
|
||||
for (NSString *key in extraDataDictM.allKeys) {
|
||||
if ([extraDataDictM[key] isKindOfClass:[NSString class]] || [extraDataDictM[key] isMemberOfClass:[NSNumber class]]) {
|
||||
[extraDataTemp setValue:extraDataDictM[key] forKey:key];
|
||||
}
|
||||
}
|
||||
if ([extraDataTemp count]) {
|
||||
[extraDictM setValue:extraDataTemp forKey:kATUnityUserExtraDataKey];
|
||||
} else {
|
||||
[extraDictM removeObjectForKey:kATUnityUserExtraDataKey];
|
||||
}
|
||||
extra = extraDictM;
|
||||
}
|
||||
|
||||
if (extra[@"extra"] != nil) {
|
||||
msgDict[@"extra"] = extra[@"extra"];
|
||||
msgDict[@"rewarded"] = extra[@"rewarded"];
|
||||
} else {
|
||||
msgDict[@"extra"] = extra;
|
||||
}
|
||||
}
|
||||
|
||||
paraDict[@"msg"] = msgDict;
|
||||
|
||||
if ([placementID isKindOfClass:[NSString class]] && ![ATUnityUtilities isEmpty:placementID]) {
|
||||
msgDict[@"placement_id"] = placementID;
|
||||
};
|
||||
|
||||
if ([error isKindOfClass:[NSError class]]) {
|
||||
|
||||
NSMutableDictionary *errorDict = [NSMutableDictionary dictionaryWithObject:[NSString stringWithFormat:@"%ld", error.code] forKey:@"code"];
|
||||
|
||||
if (![ATUnityUtilities isEmpty:error.userInfo[NSLocalizedDescriptionKey]]) {
|
||||
errorDict[@"desc"] = [NSString stringWithFormat:@"%@",error.userInfo[NSLocalizedDescriptionKey]];
|
||||
} else {
|
||||
errorDict[@"desc"] = @"";
|
||||
}
|
||||
if (![ATUnityUtilities isEmpty:error.userInfo[NSLocalizedFailureReasonErrorKey]]) {
|
||||
errorDict[@"reason"] = [NSString stringWithFormat:@"%@",error.userInfo[NSLocalizedFailureReasonErrorKey]];
|
||||
} else {
|
||||
errorDict[@"reason"] = @"";
|
||||
}
|
||||
msgDict[@"error"] = errorDict;
|
||||
}
|
||||
|
||||
[self callbackForKey:placementID]([self scriptWrapperClass].UTF8String, paraDict.jsonString.UTF8String);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (NSArray *)jsonStrToArray:(NSString *)jsonString{
|
||||
|
||||
|
||||
NSError *error;
|
||||
NSArray *array = [NSArray array];
|
||||
|
||||
@try {
|
||||
NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
|
||||
|
||||
array = [NSJSONSerialization JSONObjectWithData:jsonData
|
||||
options:NSJSONReadingMutableContainers
|
||||
error:&error];
|
||||
if(error){
|
||||
return [NSArray array];
|
||||
}
|
||||
} @catch (NSException *exception) {
|
||||
NSLog(@"jsonStrToArray --- exception:%@",exception);
|
||||
} @finally {}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -1,5 +0,0 @@
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.android.support:appcompat-v7:28.0.0"/>
|
||||
</androidPackages>
|
||||
</dependencies>
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51a89bd698bd46358af7ea78f5245d04
|
||||
timeCreated: 1693816810
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<repositories>
|
||||
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
||||
</repositories>
|
||||
|
||||
<androidPackage spec="com.gromore.cn:gromore-sdk:4.3.0.3"/>
|
||||
<androidPackage spec="com.gromore.cn:pangle-adapter:5.4.1.6.0"/>
|
||||
|
||||
</androidPackages>
|
||||
</dependencies>
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aed17cf9003947689bdd0e379dc9c087
|
||||
timeCreated: 1693815837
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 727c8d0c38d5c45698625e7047fa202f
|
||||
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:
|
||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e1455b7aa64746c8b9f3e6054db6dfb
|
||||
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:
|
||||
@@ -1,5 +0,0 @@
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.android.support:design:28.0.0"/>
|
||||
</androidPackages>
|
||||
</dependencies>
|
||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e86cd321b94404f92b07b2426514b866
|
||||
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:
|
||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: edd3f0c5204174a9c90fe7fd5df5a017
|
||||
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:
|
||||
@@ -1,8 +0,0 @@
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<androidPackage spec="io.reactivex.rxjava2:rxjava:2.0.1"/>
|
||||
<androidPackage spec="io.reactivex.rxjava2:rxandroid:2.0.1"/>
|
||||
<androidPackage spec="com.squareup.okhttp3:okhttp:3.12.1"/>
|
||||
<androidPackage spec="com.github.bumptech.glide:glide:4.9.0"/>
|
||||
</androidPackages>
|
||||
</dependencies>
|
||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c811f47b950b4838a64832d816e897d
|
||||
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:
|
||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1cd2c80f8f7fa46fc8c053600e333fd4
|
||||
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:
|
||||
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 152120babfc0c47eda2ca1811b8fdba6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||
<iosPods>
|
||||
<iosPod name="AnyThinkiOS" version="6.2.51" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b533b0baca6984f16a738a8aa8e025e1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 943b13c22974c4fe7ba4c6d1244a21d7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||
<iosPods>
|
||||
<iosPod name="AnyThinkiOS/AnyThinkTTAdapter" version="6.2.51" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5d946ae84d7ee45dea6ccc6a9175ea8f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e6c11a31d760484e807c56acbfdeae2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||
<iosPods>
|
||||
<iosPod name="AnyThinkiOS/AnyThinkGDTAdapter" version="6.2.51" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f21806e689b064f65aa0fd683db0d968
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90aec42e9f3124004a0b4508d571866e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||
<iosPods>
|
||||
<iosPod name="AnyThinkiOS/AnyThinkKuaiShouAdapter" version="6.2.51" />
|
||||
<iosPod name="SDWebImage" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd72f2a8b68a442f9a784999739ff3fe
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0b1601c425ae3b24e9764462dbbe5359
|
||||
guid: 6cfab85a96ec246bdb411450b546b791
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae70ff20f73a04e91b4e6bb12d7adc69
|
||||
guid: 39b8ca55bc9e749d1ab7d1ea31d40661
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 219a4269ecae84c4e9d5b84de8b992de
|
||||
guid: b85e8925fa22644f1803fbdc727149ba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c8137f9ecda484f4f82280927f6cc6d3
|
||||
guid: 303b96d7e38d241d895947db76a77868
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82a2859cc834c4a2f92c6497ca4ffa5f
|
||||
guid: e25052682a99b4f11b9ccda0a98ec1ce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AnyThinkAds.ThirdParty.LitJson;
|
||||
@@ -36,10 +36,20 @@ namespace AnyThinkAds.Api
|
||||
public readonly Dictionary<string, object> custom_rule;
|
||||
|
||||
public readonly Dictionary<string, object> ext_info;
|
||||
public readonly string user_load_extra_data;
|
||||
public readonly Dictionary<string, object> user_load_extra_data;
|
||||
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;
|
||||
|
||||
@@ -79,10 +89,11 @@ namespace AnyThinkAds.Api
|
||||
abtest_id = int.Parse(jsonData.ContainsKey("abtest_id") ? jsonData["abtest_id"].ToString() : "0");
|
||||
segment_id = int.Parse(jsonData.ContainsKey("segment_id") ? jsonData["segment_id"].ToString() : "0");
|
||||
scenario_id = jsonData.ContainsKey("scenario_id") ? (string)jsonData["scenario_id"] : "";// RewardVideo & Interstitial
|
||||
|
||||
if (jsonData.ContainsKey("user_load_extra_data")) {
|
||||
user_load_extra_data = jsonData.ContainsKey("user_load_extra_data") ? (string)jsonData["user_load_extra_data"] : "";
|
||||
user_load_extra_data = JsonMapper.ToObject<Dictionary<string, object>>(jsonData["user_load_extra_data"].ToJson());
|
||||
}
|
||||
|
||||
|
||||
scenario_reward_name = jsonData.ContainsKey("scenario_reward_name") ? (string)jsonData["scenario_reward_name"] : "";
|
||||
scenario_reward_number = int.Parse(jsonData.ContainsKey("scenario_reward_number") ? jsonData["scenario_reward_number"].ToString() : "0");
|
||||
|
||||
@@ -93,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);
|
||||
@@ -149,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;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d71af2c579e014d268a0dfa493b7b42a
|
||||
guid: ebf4bf9c5f1a54007a31d4a19a30835c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 96cb1512452b44892ab41a110737bc6f
|
||||
guid: fc541fdcbb9254973a14d8aa4f305201
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c23fcd22e05664d73ba39e69a58fdfdb
|
||||
guid: e06efbc55c798478a941850f6726fdbb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 88edb880a748a4df7be4481415e44907
|
||||
guid: 9b7e6ef35d34e47d79856f3e737b5a04
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b93dd6d343c0473193c776c1ba89ec8
|
||||
guid: 5417f30bdb0e84db696652694de24b55
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2b539b7c0e104683ad9789e63c426c1
|
||||
guid: 1e59697f061674b95b6fc11bf3eb570a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5ec858a9445e344c6ae02b731012d297
|
||||
guid: 6f74e005d6e184ccdbd0582232cfb896
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 220e014333c6840fc89f951639f5deba
|
||||
guid: 63ff9b48e554f481b84df35718d2082c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a2c5ed4e8516545f0838dddae9200f2f
|
||||
guid: ea594e5e65c2b44d581e5bbf6e46d2df
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 863e49baa0bfb4c899f6d1591f126aeb
|
||||
guid: c7e39d0f92be94036b0c3361002bdb6d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c4cf0c99e1e574b3aa6d4a1a46daf9da
|
||||
guid: e02adf55e190948ba8238cbbb8e649d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f89a8b127b7346a7a27be7bf6cdc2a1
|
||||
guid: e977ada5558a4440ab4096ec189d66c3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7472931a01bd34107842d9baa5edf262
|
||||
guid: 2ff7b39d30d2f48c7886af12676d5dca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4ce4b4690b764fcd9a5bdba6c7a48b8
|
||||
guid: 33288477361ec4906b2f2b90af9afe74
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ce958c2c0a294f85981fc0d7efd277e
|
||||
guid: 2f4d9eae1b90142ca8004116a3e4c869
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5feccd0a003ab4defba25cd4e3f9e870
|
||||
guid: 6d40b4678e713487ab21c87b284165e9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1e0f021a24cc491eb4f054d576982f7
|
||||
guid: 8e666f918e4a54255ae6d45c5ed483c0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c71cf6d83ff4406db7ed141066a54d3
|
||||
guid: c2a8b39939a6e4561b49ec08c9648efa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -17,6 +17,12 @@ namespace AnyThinkAds.Api
|
||||
void didGetUserLocation(int location);
|
||||
}
|
||||
|
||||
public interface ATConsentDismissListener
|
||||
{
|
||||
void onConsentDismiss();
|
||||
}
|
||||
|
||||
|
||||
public interface ATGetAreaListener
|
||||
{
|
||||
void onArea(string area);
|
||||
@@ -82,6 +88,16 @@ namespace AnyThinkAds.Api
|
||||
client.initSDK(appId, appKey, listener);
|
||||
}
|
||||
|
||||
public static void showDebuggerUI()
|
||||
{
|
||||
client.showDebuggerUI();
|
||||
}
|
||||
|
||||
public static void showDebuggerUI(string debugKey)
|
||||
{
|
||||
client.showDebuggerUI(debugKey);
|
||||
}
|
||||
|
||||
public static void setGDPRLevel(int level)
|
||||
{
|
||||
client.setGDPRLevel(level);
|
||||
@@ -125,6 +141,11 @@ namespace AnyThinkAds.Api
|
||||
client.showGDPRAuth();
|
||||
}
|
||||
|
||||
public static void showGDPRConsentDialog(ATConsentDismissListener listener)
|
||||
{
|
||||
client.showGDPRConsentDialog(listener);
|
||||
}
|
||||
|
||||
public static void setLogDebug(bool isDebug)
|
||||
{
|
||||
client.setLogDebug(isDebug);
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17ae30f8263a149fc8eba30dad68d0f0
|
||||
guid: 2668d385cd9ef4bc385b0c1487756d84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57b3ce41b10cf46cbb2e5a082691be6d
|
||||
guid: 92bd41ae21ada4f13ba4f646fe8d8e87
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5989e268b2acc4d0dafdbe2ddbf0dd4b
|
||||
guid: 6599afb4d52b14fa098f43f1d01be850
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10be2707423e74e678bcee7dff04f3d7
|
||||
guid: e99f46e9ff2ba49338673e9655a6b494
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
8
AnyThinkPlugin/AnyThinkAds/Bridge.meta
Normal file
8
AnyThinkPlugin/AnyThinkAds/Bridge.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9068fed3449f4957a31b2704d38d9c4
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
AnyThinkPlugin/AnyThinkAds/Bridge/anythink_bridge.aar
Normal file
BIN
AnyThinkPlugin/AnyThinkAds/Bridge/anythink_bridge.aar
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19407568a6ed74bcc83f3f2850b9ea1e
|
||||
guid: 03106b07c17e248179d51e195b5ea505
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ded34532e9f04a199738e82a8f7ca89
|
||||
guid: 5e27cbd650c5b4fd280cfda2125e9f1f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user