You've already forked Commercialization.topon
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8a4ac18c1 | |||
| c6bf3ec373 | |||
| 39014e1de3 |
@@ -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.0.8"/>
|
||||||
<androidPackage spec="com.gromore.cn:pangle-adapter:5.4.1.6.0"/>
|
|
||||||
|
|
||||||
</androidPackages>
|
</androidPackages>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f0d79a94646b5be45b4acb42e1336674
|
guid: 78fc81d88459b95429b1b1c2d4c95aea
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8d1f8a77e8a050949b1e0f6b05261c29
|
||||||
|
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:
|
||||||
@@ -230,8 +230,9 @@ namespace AnyThink.Scripts.Editor
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(resXmlPath);
|
Directory.CreateDirectory(resXmlPath);
|
||||||
}
|
}
|
||||||
|
// var fromScriptableObject = MonoScript.FromScriptableObject(this);
|
||||||
saveFile("Assets/AnyThinkPlugin/Script/Editor/anythink_network_security_config.xml", resXmlPath);
|
var xmlPath = GetScriptsPath("ATPostProcessBuildAndroid");
|
||||||
|
saveFile($"{xmlPath}/anythink_network_security_config.xml", resXmlPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void saveFile(string filePathName , string toFilesPath)
|
public static void saveFile(string filePathName , string toFilesPath)
|
||||||
@@ -241,6 +242,19 @@ namespace AnyThink.Scripts.Editor
|
|||||||
file.CopyTo(toFilesPath + "/" + newFileName, true);
|
file.CopyTo(toFilesPath + "/" + newFileName, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetScriptsPath (string scriptName)
|
||||||
|
{
|
||||||
|
string[] path = UnityEditor.AssetDatabase.FindAssets(scriptName);
|
||||||
|
if(path.Length>1)
|
||||||
|
{
|
||||||
|
// Debug.LogError("有同名文件"+_scriptName+"获取路径失败");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
//将字符串中得脚本名字和后缀统统去除掉
|
||||||
|
string _path = AssetDatabase.GUIDToAssetPath(path[0]).Replace((@"/" +scriptName +".cs"),"");
|
||||||
|
return _path;
|
||||||
|
}
|
||||||
|
|
||||||
private static void addNetworkSecurityConfigInApplication(string path, bool isChina)
|
private static void addNetworkSecurityConfigInApplication(string path, bool isChina)
|
||||||
{
|
{
|
||||||
#if UNITY_2019_3_OR_NEWER
|
#if UNITY_2019_3_OR_NEWER
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 0ab81a6ad546c03418e309bb694407a8
|
guid: 7d3a96d567bfd7149b3d2882c2331f28
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
30
Plugins/Android/LauncherManifest.xml
Normal file
30
Plugins/Android/LauncherManifest.xml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?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>
|
||||||
7
Plugins/Android/LauncherManifest.xml.meta
Normal file
7
Plugins/Android/LauncherManifest.xml.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1c49d887d5952a944a51f93410b4c40c
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
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
|
||||||
8
Plugins/Android/gromoreRes.androidlib/res.meta
Normal file
8
Plugins/Android/gromoreRes.androidlib/res.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 88b0cd13e8e208a4bab324fdd90b4067
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Plugins/Android/gromoreRes.androidlib/res/xml.meta
Normal file
8
Plugins/Android/gromoreRes.androidlib/res/xml.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3730fc3181b36f54ea5593b0609aa846
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -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:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 447f769e7e33b6b4b8c6bf167ff64d51
|
guid: dbbfc9e2efadb8c43b6c710eeff4abd9
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ dependencies {
|
|||||||
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.android.support:design:28.0.0' // Assets/AnyThinkAds/Plugins/Android/China/mediation/kuaishou/Editor/Dependencies.xml:3
|
||||||
implementation 'com.github.bumptech.glide:glide:4.9.0' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:6
|
implementation 'com.github.bumptech.glide:glide:4.9.0' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:6
|
||||||
implementation 'com.gromore.cn:gromore-sdk:4.3.0.3' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:8
|
implementation 'com.pangle.cn:mediation-sdk:5.6.0.8' // Assets/AnyThinkAds/Plugins/Android/China/Editor/Gromore/Dependencies.xml:8
|
||||||
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 '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: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
|
implementation 'io.reactivex.rxjava2:rxjava:2.0.1' // Assets/AnyThinkAds/Plugins/Android/China/mediation/tap/Editor/Dependencies.xml:3
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f78a8058118e9824db89e5c1b18d3e47
|
guid: 47364f35dc20c164fab7f26e8a03dd67
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
16
Topon_Adapter.asmdef
Normal file
16
Topon_Adapter.asmdef
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "Topon_Adapter",
|
||||||
|
"rootNamespace": "",
|
||||||
|
"references": [
|
||||||
|
"GUID:3198a86b02613024e960e3d04a9638cd"
|
||||||
|
],
|
||||||
|
"includePlatforms": [],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": false,
|
||||||
|
"precompiledReferences": [],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
|
}
|
||||||
7
Topon_Adapter.asmdef.meta
Normal file
7
Topon_Adapter.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8a3d1447e0a3bdf4fa07035516da8b62
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -29,7 +29,8 @@ public class AwardVideoPlayer : ADPlayer , ATRewardedVideoListener
|
|||||||
this._onVideoComplete = onVideoComplete;
|
this._onVideoComplete = onVideoComplete;
|
||||||
this.adListener.onClose = onClose;
|
this.adListener.onClose = onClose;
|
||||||
this.adListener.onVideoComplete = this.OnVideoComplete;
|
this.adListener.onVideoComplete = this.OnVideoComplete;
|
||||||
this._atRewardedVideo.showAd(this.Key);
|
var json = new Dictionary<string, string> { { AnyThinkAds.Api.ATConst.SCENARIO, this.AdScene } };
|
||||||
|
this._atRewardedVideo.showAd(this.Key , json);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.8",
|
"version": "1.0.10",
|
||||||
"unity": "2021.1",
|
"unity": "2021.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies":
|
"dependencies":
|
||||||
{
|
{
|
||||||
"com.foldcc.cc-framework.commercialization" : "http://private.lightyears.ltd:18640/foldcc/CC-Framework.Commercialization.git#1.0.5"
|
"com.foldcc.cc-framework.commercialization" : "http://private.lightyears.ltd:18640/foldcc/CC-Framework.Commercialization.git#1.0.9"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Framework"
|
"Framework"
|
||||||
|
|||||||
Reference in New Issue
Block a user