You've already forked Commercialization.topon
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a24a3292c | |||
| 9a8096f347 | |||
| 0f760ca1a5 | |||
| 4ec2560f30 | |||
|
|
1d22a3dae0 | ||
|
|
75730fb783 | ||
|
|
38c9cabad2 | ||
| f8a4ac18c1 | |||
| c6bf3ec373 |
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using AnyThinkAds.ThirdParty.LitJson;
|
using AnyThinkAds.ThirdParty.LitJson;
|
||||||
@@ -36,7 +36,7 @@ namespace AnyThinkAds.Api
|
|||||||
public readonly Dictionary<string, object> custom_rule;
|
public readonly Dictionary<string, object> custom_rule;
|
||||||
|
|
||||||
public readonly Dictionary<string, object> ext_info;
|
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 int abtest_id;
|
||||||
|
|
||||||
public readonly string reward_custom_data;
|
public readonly string reward_custom_data;
|
||||||
@@ -79,8 +79,9 @@ namespace AnyThinkAds.Api
|
|||||||
abtest_id = int.Parse(jsonData.ContainsKey("abtest_id") ? jsonData["abtest_id"].ToString() : "0");
|
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");
|
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
|
scenario_id = jsonData.ContainsKey("scenario_id") ? (string)jsonData["scenario_id"] : "";// RewardVideo & Interstitial
|
||||||
|
|
||||||
if (jsonData.ContainsKey("user_load_extra_data")) {
|
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_name = jsonData.ContainsKey("scenario_reward_name") ? (string)jsonData["scenario_reward_name"] : "";
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
NSMutableDictionary *extraDataTemp = [NSMutableDictionary dictionary];
|
NSMutableDictionary *extraDataTemp = [NSMutableDictionary dictionary];
|
||||||
NSMutableDictionary *extraDataDictM = [NSMutableDictionary dictionaryWithDictionary:extra[kATUnityUserExtraDataKey]];
|
NSMutableDictionary *extraDataDictM = [NSMutableDictionary dictionaryWithDictionary:extra[kATUnityUserExtraDataKey]];
|
||||||
for (NSString *key in extraDataDictM.allKeys) {
|
for (NSString *key in extraDataDictM.allKeys) {
|
||||||
if ([extraDataDictM[key] isKindOfClass:[NSString class]] || [extraDataDictM[key] isMemberOfClass:[NSNumber class]]) {
|
if ([extraDataDictM[key] isKindOfClass:[NSString class]] || [extraDataDictM[key] isKindOfClass:[NSNumber class]]) {
|
||||||
[extraDataTemp setValue:extraDataDictM[key] forKey:key];
|
[extraDataTemp setValue:extraDataDictM[key] forKey:key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,8 +59,11 @@ NSString *const kATUnityCheckLoadModelAdInfoKey = @"adInfo";
|
|||||||
[extraDictM removeObjectForKey:kATUnityUserExtraDataKey];
|
[extraDictM removeObjectForKey:kATUnityUserExtraDataKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSMutableDictionary *jsonDictM = [NSMutableDictionary dictionaryWithDictionary:self];
|
||||||
|
[jsonDictM setValue:extraDictM forKey:kATUnityCheckLoadModelAdInfoKey];
|
||||||
|
|
||||||
@try {
|
@try {
|
||||||
jsonData = [NSJSONSerialization dataWithJSONObject:extraDictM
|
jsonData = [NSJSONSerialization dataWithJSONObject:jsonDictM
|
||||||
options:kNilOptions
|
options:kNilOptions
|
||||||
error:&error];
|
error:&error];
|
||||||
} @catch (NSException *exception) {
|
} @catch (NSException *exception) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: de346304da6da453fb4e4028ccfa87d9
|
guid: 8796f84f818a647e487c69b334805515
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<androidPackage spec="com.gromore.cn:gromore-sdk:4.3.0.3"/>
|
<androidPackage spec="com.pangle.cn:mediation-sdk:5.6.1.6"/>
|
||||||
<androidPackage spec="com.gromore.cn:pangle-adapter:5.4.1.6.0"/>
|
|
||||||
|
|
||||||
</androidPackages>
|
</androidPackages>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 33c67038f4c904d05bd0875c937fa880
|
guid: 2d2eadb320c6448a7a4d2f4e2b90b4da
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3af96bb77620145fb9abbd1844f5431f
|
guid: 48ab74722adda4a78a3cbdcaa8194930
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 81345eb1278404c50abd5f44ab66ccec
|
guid: ba760aa6a72eb4d4fa5b45d56a01eb88
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 65e41ebac4da64cdeab7d162d1212cac
|
guid: 3c51c213b59544f83af22c17ddb34baa
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 7ad65e2aacd7a4428b74871d91234e4a
|
guid: 5cf0e27873d8640d58f965370b8e4894
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 80b54a91dd4004c8188635f7563c603c
|
guid: 582c425272e48470eaa96bbc41a19ada
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 0585b7a575916456b90cbbe4efd2b060
|
guid: e1253ef962331451c920d9a9cfec5d64
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: c8aa9f53a23284bf8b454b66a6c95826
|
guid: 69eadc53c9e9c476494b0ec77e3bd34f
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 90dd56ba21d3f46ce8799318c4c697f6
|
guid: 58ce6fc3a28107d4499e97dc10ed1e1d
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f0d79a94646b5be45b4acb42e1336674
|
guid: 5986569148d4f1e49a0df2f34c63efad
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5931f1f57fd9a4414be7508e413219e2
|
guid: 94368ec5422bd4575a0b4ad522567a4d
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
Binary file not shown.
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:
|
|
||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 727c8d0c38d5c45698625e7047fa202f
|
guid: 80a5bbbaf1fad4dd88c90ee3798b404f
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
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.
@@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 705059be7aa1e47198560d85adf4fa3f
|
||||||
|
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,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 2447e3291333c443d98e4082e5478186
|
guid: 4c4732d77f090499fbcd167c6616152a
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 24372970098b1434487fb81880cf5f34
|
||||||
|
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 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||||
<iosPods>
|
<iosPods>
|
||||||
<iosPod name="AnyThinkiOS" version="6.2.51" />
|
<iosPod name="AnyThinkiOS" version="6.2.68" />
|
||||||
</iosPods>
|
</iosPods>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 1ffafae492aad463b9880d1660c1743e
|
guid: 254348f606df14748ad325e21335c624
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
|
||||||
<iosPods>
|
|
||||||
<iosPod name="AnyThinkiOS/AnyThinkTTAdapter" version="6.2.51" />
|
|
||||||
</iosPods>
|
|
||||||
</dependencies>
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||||
<iosPods>
|
<iosPods>
|
||||||
<iosPod name="AnyThinkiOS/AnyThinkGDTAdapter" version="6.2.51" />
|
<iosPod name="AnyThinkiOS/AnyThinkGDTAdapter" version="6.2.68" />
|
||||||
</iosPods>
|
</iosPods>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
<?xml version="1.0" encoding="utf-8"?><dependencies>
|
||||||
<iosPods>
|
<iosPods>
|
||||||
<iosPod name="AnyThinkiOS/AnyThinkKuaiShouAdapter" version="6.2.51" />
|
<iosPod name="AnyThinkiOS/AnyThinkKuaiShouAdapter" version="6.2.68" />
|
||||||
<iosPod name="SDWebImage" />
|
<iosPod name="SDWebImage" />
|
||||||
</iosPods>
|
</iosPods>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -17,16 +17,16 @@ MonoBehaviour:
|
|||||||
coreNetwork:
|
coreNetwork:
|
||||||
Name: Core
|
Name: Core
|
||||||
DisplayName: Core
|
DisplayName: Core
|
||||||
DownloadUrl: https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity/6.2.51-plugin/China/AnyThinkCore.unitypackage
|
DownloadUrl: https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity/6.2.72-plugin/China/AnyThinkCore.unitypackage
|
||||||
DependenciesFilePath:
|
DependenciesFilePath:
|
||||||
PluginFileName: AnyThinkCore.unitypackage
|
PluginFileName: AnyThinkCore.unitypackage
|
||||||
PluginFilePaths: []
|
PluginFilePaths: []
|
||||||
LatestVersions:
|
LatestVersions:
|
||||||
Unity: 2.0.1
|
Unity: 2.0.1
|
||||||
Android: 6.2.51
|
Android: 6.2.72
|
||||||
Ios: 6.2.51
|
Ios: 6.2.68
|
||||||
CurrentVersions:
|
CurrentVersions:
|
||||||
Unity: 2.0.1
|
Unity: 2.0.1
|
||||||
Android: 6.2.51
|
Android: 6.2.72
|
||||||
Ios: 6.2.51
|
Ios: 6.2.68
|
||||||
enableAndroidX: 0
|
enableAndroidX: 1
|
||||||
|
|||||||
29
Plugins/Android/LauncherManifest.xml
Normal file
29
Plugins/Android/LauncherManifest.xml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.unity3d.player"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:installLocation="preferExternal">
|
||||||
|
<supports-screens
|
||||||
|
android:smallScreens="true"
|
||||||
|
android:normalScreens="true"
|
||||||
|
android:largeScreens="true"
|
||||||
|
android:xlargeScreens="true"
|
||||||
|
android:anyDensity="true"/>
|
||||||
|
|
||||||
|
<application android:label="@string/app_name"
|
||||||
|
android:icon="@mipmap/app_icon">
|
||||||
|
|
||||||
|
<provider
|
||||||
|
android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
|
||||||
|
android:authorities="${applicationId}.TTFileProvider"
|
||||||
|
android:exported="false"
|
||||||
|
android:grantUriPermissions="true"
|
||||||
|
tools:replace="android:authorities">
|
||||||
|
<meta-data
|
||||||
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||||
|
android:resource="@xml/alex_tt_file_path" />
|
||||||
|
</provider>
|
||||||
|
|
||||||
|
</application>
|
||||||
|
</manifest>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5d946ae84d7ee45dea6ccc6a9175ea8f
|
guid: 1c49d887d5952a944a51f93410b4c40c
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
33
Plugins/Android/gromoreRes.androidlib.meta
Normal file
33
Plugins/Android/gromoreRes.androidlib.meta
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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:
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.alex.gromore.res">
|
||||||
|
|
||||||
|
</manifest>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5cdaa0a8dde8495782a285555245f421
|
||||||
|
timeCreated: 1695622122
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b533b0baca6984f16a738a8aa8e025e1
|
guid: 88b0cd13e8e208a4bab324fdd90b4067
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 204d1c2a7960e48ceaee45173764f175
|
guid: 3730fc3181b36f54ea5593b0609aa846
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
<paths>
|
||||||
|
<cache-path
|
||||||
|
name="tt_internal_cache_download"
|
||||||
|
path="Download" />
|
||||||
|
<external-files-path
|
||||||
|
name="tt_external_files_download"
|
||||||
|
path="Download" />
|
||||||
|
<external-path
|
||||||
|
name="tt_external_root"
|
||||||
|
path="." />
|
||||||
|
<external-path
|
||||||
|
name="tt_external_download"
|
||||||
|
path="Download" />
|
||||||
|
<files-path
|
||||||
|
name="tt_internal_file_download"
|
||||||
|
path="Download" />
|
||||||
|
</paths>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cf2aafbf181354d4a8c0616ad17df2d4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -8,6 +8,9 @@
|
|||||||
maven {
|
maven {
|
||||||
url "https://artifact.bytedance.com/repository/pangle" // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:6
|
url "https://artifact.bytedance.com/repository/pangle" // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:6
|
||||||
}
|
}
|
||||||
|
maven {
|
||||||
|
url "https://jfrog.anythinktech.com/artifactory/debugger" // Assets/Topon_Adapter/Editor/ToponTestDependencies.xml:6
|
||||||
|
}
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
@@ -20,13 +23,9 @@ dependencies {
|
|||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
// Android Resolver Dependencies Start
|
// Android Resolver Dependencies Start
|
||||||
implementation 'com.android.support:appcompat-v7:28.0.0' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Dependencies.xml:3
|
implementation 'com.android.support:appcompat-v7:28.0.0' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Dependencies.xml:3
|
||||||
implementation 'com.android.support:design:28.0.0' // Assets/AnyThinkAds/Plugins/Android/China/mediation/kuaishou/Editor/Dependencies.xml:3
|
implementation 'com.anythink.sdk:debugger-ui:1.0.0' // Assets/Topon_Adapter/Editor/ToponTestDependencies.xml:8
|
||||||
implementation 'com.github.bumptech.glide:glide:4.9.0' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:6
|
implementation 'com.pangle.cn:mediation-sdk:5.6.1.6' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:8
|
||||||
implementation 'com.gromore.cn:gromore-sdk:4.3.0.3' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:8
|
implementation 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.0' // Assets/Topon_Adapter/Editor/WXDependencies.xml:3
|
||||||
implementation 'com.gromore.cn:pangle-adapter:5.4.1.6.0' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:9
|
|
||||||
implementation 'com.squareup.okhttp3:okhttp:3.12.1' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:5
|
|
||||||
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:4
|
|
||||||
implementation 'io.reactivex.rxjava2:rxjava:2.0.1' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:3
|
|
||||||
// Android Resolver Dependencies End
|
// Android Resolver Dependencies End
|
||||||
**DEPS**}
|
**DEPS**}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 943b13c22974c4fe7ba4c6d1244a21d7
|
guid: ffa17b4d22a08804794a574856906799
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
136
Topon_Adapter/Editor/AD_BuildAndroidProcess.cs
Normal file
136
Topon_Adapter/Editor/AD_BuildAndroidProcess.cs
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
#if UNITY_ANDROID
|
||||||
|
using System.IO;
|
||||||
|
using System.Xml.Linq;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEditor.Android;
|
||||||
|
|
||||||
|
namespace Topon_Adapter.Editor
|
||||||
|
{
|
||||||
|
public class AD_BuildAndroidProcess : IPostGenerateGradleAndroidProject
|
||||||
|
{
|
||||||
|
private static readonly XNamespace AndroidNamespace = "http://schemas.android.com/apk/res/android";
|
||||||
|
private static readonly XNamespace ToolsNamespace = "http://schemas.android.com/tools";
|
||||||
|
|
||||||
|
|
||||||
|
public void OnPostGenerateGradleAndroidProject(string path)
|
||||||
|
{
|
||||||
|
ProcessAndroidManifest(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void ProcessAndroidManifest(string path)
|
||||||
|
{
|
||||||
|
#if UNITY_2019_3_OR_NEWER
|
||||||
|
var manifestPath = Path.Combine(path, "src/main/AndroidManifest.xml");
|
||||||
|
var launcherManifestPath = Path.Combine(path, "../launcher/src/main/AndroidManifest.xml");
|
||||||
|
#else
|
||||||
|
var manifestPath = Path.Combine(path, "unityLibrary/src/main/AndroidManifest.xml");
|
||||||
|
#endif
|
||||||
|
// var manifestPath = Path.Combine(path, "src/main/AndroidManifest.xml");
|
||||||
|
XDocument manifest;
|
||||||
|
XDocument launcherManifest;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
manifest = XDocument.Load(manifestPath);
|
||||||
|
launcherManifest = XDocument.Load (launcherManifestPath);
|
||||||
|
}
|
||||||
|
#pragma warning disable 0168
|
||||||
|
catch (IOException exception)
|
||||||
|
#pragma warning restore 0168
|
||||||
|
{
|
||||||
|
ATLog.log("[BuildAndroidProcess] AndroidManifest.xml is missing.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the `manifest` element.
|
||||||
|
var elementManifest = manifest.Element("manifest");
|
||||||
|
if (elementManifest == null)
|
||||||
|
{
|
||||||
|
ATLog.log("[BuildAndroidProcess] AndroidManifest.xml is invalid.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elementApplication = elementManifest.Element("application");
|
||||||
|
if (elementApplication == null)
|
||||||
|
{
|
||||||
|
ATLog.log("[BuildAndroidProcess] AndroidManifest.xml is invalid.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var queries = CreateQueries();
|
||||||
|
elementManifest.Add(queries);
|
||||||
|
elementApplication.Add(CreateActivityXML());
|
||||||
|
|
||||||
|
|
||||||
|
var elementlauncherManifest = launcherManifest.Element("manifest");
|
||||||
|
var elementlauncherApplication = elementlauncherManifest.Element("application");
|
||||||
|
//增加穿山甲配置
|
||||||
|
elementlauncherApplication.Add (CreateCSJGromore ());
|
||||||
|
|
||||||
|
// Save the updated manifest file.
|
||||||
|
manifest.Save(manifestPath);
|
||||||
|
launcherManifest.Save (launcherManifestPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 增加微信开放平台的适配
|
||||||
|
/// </summary>
|
||||||
|
public static XElement CreateActivityXML()
|
||||||
|
{
|
||||||
|
|
||||||
|
var metaData = new XElement("activity");
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "name", ".wxapi.WXEntryActivity"));
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "label", "@string/app_name"));
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "theme", "@android:style/Theme.Translucent.NoTitleBar"));
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "exported", "true"));
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "taskAffinity", Application.identifier));
|
||||||
|
metaData.Add(new XAttribute(AndroidNamespace + "launchMode", "singleTask"));
|
||||||
|
return metaData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static XElement CreateQueries()
|
||||||
|
{
|
||||||
|
var metaData = new XElement("queries");
|
||||||
|
var packageData = new XElement("package");
|
||||||
|
packageData.Add(new XAttribute(AndroidNamespace + "name", "com.tencent.mm"));
|
||||||
|
metaData.Add(packageData);
|
||||||
|
return metaData;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static XElement CreateCSJGromore ()
|
||||||
|
{
|
||||||
|
// ReSharper disable once InvalidXmlDocComment
|
||||||
|
/**
|
||||||
|
*<provider
|
||||||
|
android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
|
||||||
|
android:authorities="${applicationId}.TTFileProvider"
|
||||||
|
android:exported="false"
|
||||||
|
android:grantUriPermissions="true"
|
||||||
|
tools:replace="android:authorities">
|
||||||
|
<meta-data
|
||||||
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||||
|
android:resource="@xml/alex_tt_file_path" />
|
||||||
|
</provider>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
var providerData = new XElement("provider");
|
||||||
|
|
||||||
|
providerData.Add (new XAttribute (AndroidNamespace + "name" , "com.bytedance.sdk.openadsdk.TTFileProvider"));
|
||||||
|
providerData.Add (new XAttribute (AndroidNamespace + "authorities" , "${applicationId}.TTFileProvider"));
|
||||||
|
providerData.Add (new XAttribute (AndroidNamespace + "exported" , "false"));
|
||||||
|
providerData.Add (new XAttribute (AndroidNamespace + "grantUriPermissions" , "true"));
|
||||||
|
providerData.Add (new XAttribute (ToolsNamespace + "replace" , "android:authorities"));
|
||||||
|
var metaData = new XElement("meta-data");
|
||||||
|
metaData.Add (new XAttribute (AndroidNamespace+"name" , "android.support.FILE_PROVIDER_PATHS"));
|
||||||
|
metaData.Add (new XAttribute (AndroidNamespace+"resource" , "@xml/alex_tt_file_path"));
|
||||||
|
providerData.Add (metaData);
|
||||||
|
return providerData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int callbackOrder { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
3
Topon_Adapter/Editor/AD_BuildAndroidProcess.cs.meta
Normal file
3
Topon_Adapter/Editor/AD_BuildAndroidProcess.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f093a7f66c4f4560a3d06bcf236bc89a
|
||||||
|
timeCreated: 1697048746
|
||||||
11
Topon_Adapter/Editor/ToponTestDependencies.xml
Normal file
11
Topon_Adapter/Editor/ToponTestDependencies.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<dependencies>
|
||||||
|
<androidPackages>
|
||||||
|
<repositories>
|
||||||
|
<repository>https://jfrog.anythinktech.com/artifactory/debugger</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<androidPackage spec="com.anythink.sdk:debugger-ui:1.0.0"/>
|
||||||
|
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
||||||
3
Topon_Adapter/Editor/ToponTestDependencies.xml.meta
Normal file
3
Topon_Adapter/Editor/ToponTestDependencies.xml.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a130901ed98e40898c3917a08e126996
|
||||||
|
timeCreated: 1697702311
|
||||||
19
Topon_Adapter/Editor/Topon_Adapter.Editor.asmdef
Normal file
19
Topon_Adapter/Editor/Topon_Adapter.Editor.asmdef
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "Topon_Adapter.Editor",
|
||||||
|
"rootNamespace": "",
|
||||||
|
"references": [
|
||||||
|
"GUID:8a3d1447e0a3bdf4fa07035516da8b62",
|
||||||
|
"GUID:483a01338fa974b4498cd71261d6e8b9"
|
||||||
|
],
|
||||||
|
"includePlatforms": [
|
||||||
|
"Editor"
|
||||||
|
],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": false,
|
||||||
|
"precompiledReferences": [],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
|
}
|
||||||
7
Topon_Adapter/Editor/Topon_Adapter.Editor.asmdef.meta
Normal file
7
Topon_Adapter/Editor/Topon_Adapter.Editor.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4ea29d77d0952884eac16339c279a985
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
5
Topon_Adapter/Editor/WXDependencies.xml
Normal file
5
Topon_Adapter/Editor/WXDependencies.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<dependencies>
|
||||||
|
<androidPackages>
|
||||||
|
<androidPackage spec="com.tencent.mm.opensdk:wechat-sdk-android:6.8.0"/>
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
||||||
3
Topon_Adapter/Editor/WXDependencies.xml.meta
Normal file
3
Topon_Adapter/Editor/WXDependencies.xml.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ee2de7a1fe734e3599d92016611fc247
|
||||||
|
timeCreated: 1697050926
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using AnyThinkAds.Api;
|
using AnyThinkAds.Api;
|
||||||
using Runtime.ADAggregator;
|
using Runtime.ADAggregator;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
public class ToponAdController : IAdController
|
public class ToponAdController : IAdController
|
||||||
{
|
{
|
||||||
@@ -14,8 +15,13 @@ public class ToponAdController : IAdController
|
|||||||
_adConfig = adConfig;
|
_adConfig = adConfig;
|
||||||
// ATSdkUtil.
|
// ATSdkUtil.
|
||||||
ATSDKAPI.setChannel(args[0].ToString());
|
ATSDKAPI.setChannel(args[0].ToString());
|
||||||
ATSDKAPI.setLogDebug(args.Length > 1 && (bool)args[1]);
|
var isDebug = args.Length > 1 && (bool)args[1];
|
||||||
|
ATSDKAPI.setLogDebug(isDebug);
|
||||||
ATSDKAPI.initSDK(adConfig.Id , adConfig.Key);
|
ATSDKAPI.initSDK(adConfig.Id , adConfig.Key);
|
||||||
|
if (isDebug)
|
||||||
|
{
|
||||||
|
ShowAndroidTest ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetListener(Action<bool> adMaskAction ,Action<string, string> logEventAction)
|
public void SetListener(Action<bool> adMaskAction ,Action<string, string> logEventAction)
|
||||||
@@ -49,4 +55,25 @@ public class ToponAdController : IAdController
|
|||||||
{
|
{
|
||||||
_maskAction?.Invoke(isOpen);
|
_maskAction?.Invoke(isOpen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ShowAndroidTest ()
|
||||||
|
{
|
||||||
|
// com.anythink.debug.api.ATDebuggerUITest.showDebuggerUI(this);
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
return;
|
||||||
|
#elif UNITY_ANDROID
|
||||||
|
//获取Unity的Activity Class
|
||||||
|
using (AndroidJavaClass activityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
|
||||||
|
{
|
||||||
|
//获取对应的实例化对象,这两句都是固定写法
|
||||||
|
using (AndroidJavaObject activityContext = activityClass.GetStatic<AndroidJavaObject>("currentActivity"))
|
||||||
|
{
|
||||||
|
//拿到我自己的工具类并实例化
|
||||||
|
var testUtils = new AndroidJavaClass("com.anythink.debug.api.ATDebuggerUITest");
|
||||||
|
//向工具类里的Init方法传入Unity的activity对象用于初始化工具类
|
||||||
|
testUtils.CallStatic("showDebuggerUI", activityContext);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "com.commercialization.topon",
|
"name": "com.commercialization.topon",
|
||||||
"displayName": "Commercialization.topon",
|
"displayName": "Commercialization.topon",
|
||||||
"description": "基于topon的广告sdk封装,依赖基础商业化模块",
|
"description": "基于topon的广告sdk封装,依赖基础商业化模块",
|
||||||
"version": "1.0.9",
|
"version": "1.0.16",
|
||||||
"unity": "2021.1",
|
"unity": "2021.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user