You've already forked Commercialization.topon
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c7873052f2 | |||
| 77cdb14ea5 | |||
| 3eaf8bc789 |
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5ead3a09ebb934593902ce26dd4f174c
|
guid: 4e527773949304897adb1e66604eba04
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<androidPackage spec="com.pangle.cn:mediation-sdk:5.7.0.9"/>
|
<androidPackage spec="com.pangle.cn:mediation-sdk:5.8.0.7"/>
|
||||||
|
|
||||||
</androidPackages>
|
</androidPackages>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 61738693bca9c429ebf5fdf1e92254e0
|
guid: dc7e166a22fcf47c9984655146dc8c15
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 9ce0c2932009e407c8160e51308ae67d
|
guid: 72a7df54c56fb42fea1b838d62430446
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3bc169408bfc4491ebdee4f1996e9573
|
guid: c89de3d5ad9704fed8fc0b039db7725e
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: cb3cf1f707a544303a84d6cbb91cc693
|
guid: e8b72f2f7598f4371bbeae09132c545c
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b626e346eb8b644eda74ed37c7ab5ce0
|
guid: 4b709c4d99a32468683821ff0802b7b2
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: d11f7b7beda6d41539de0b96e7794231
|
guid: a5eeae632f8484cf09f8f67870f342dc
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: e2e2bc0ec24f54ab1a17e75051dff023
|
guid: 7c304d6270b0a497f8e1e8368cef1dde
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 6656a9472297b4798a63aec4f136cbe0
|
guid: c20b00af944be47e280e7b8230a15645
|
||||||
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: 94368ec5422bd4575a0b4ad522567a4d
|
guid: 72c5f7ab43ab2534f91498d7b13d3c3c
|
||||||
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: 7cda93ff2df8de942adb752656e6b745
|
guid: 033810c6a077710419e0d7062c0d2390
|
||||||
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: 80a5bbbaf1fad4dd88c90ee3798b404f
|
guid: 1ee21f42a1a7a43a39dbb25be2ab2cc3
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 1d6e34705bb8344e292c72f7a32d2796
|
guid: 453dd31576b994c3492c54fcf7750eb1
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: be1a8542733774fb4bc899ec1d68a3f8
|
guid: e86cd321b94404f92b07b2426514b866
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d61add573d8aa474cab36dd1b6e7d32a
|
|
||||||
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: 65ef937ebdb96e646892dcb76439a910
|
guid: c197c43ada2e54fc4a670a522dc93842
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
|||||||
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.
@@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9df4c961fa9384cc8aea7952d253d8ea
|
||||||
|
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: 949dcfb68ee29431ca6004f86ebdf3ea
|
guid: 15a205b4147ae4f1ba7c361a0657d039
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3b2a145d7f6114b37a85eacddedceea9
|
guid: bf7f798237a0a437e964d8d3b83d18f2
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
@@ -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.78" />
|
<iosPod name="AnyThinkiOS" version="6.2.81" />
|
||||||
</iosPods>
|
</iosPods>
|
||||||
</dependencies>
|
</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.68" />
|
<iosPod name="AnyThinkGDTSDKAdapter" version="6.2.88.1" />
|
||||||
</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.78" />
|
<iosPod name="AnyThinkiOS/AnyThinkKuaiShouAdapter" version="6.2.88" />
|
||||||
<iosPod name="SDWebImage" />
|
<iosPod name="SDWebImage" />
|
||||||
</iosPods>
|
</iosPods>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3c86d3e828bcb4d349eb7327b0761c41
|
guid: cd72f2a8b68a442f9a784999739ff3fe
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -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.78-plugin/China/AnyThinkCore.unitypackage
|
DownloadUrl: https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity/6.2.93-plugin/China/AnyThinkCore.unitypackage
|
||||||
DependenciesFilePath:
|
DependenciesFilePath:
|
||||||
PluginFileName: AnyThinkCore.unitypackage
|
PluginFileName: AnyThinkCore.unitypackage
|
||||||
PluginFilePaths: []
|
PluginFilePaths: []
|
||||||
LatestVersions:
|
LatestVersions:
|
||||||
Unity: 2.0.2
|
Unity: 2.0.3
|
||||||
Android: 6.2.78
|
Android: 6.2.93
|
||||||
Ios: 6.2.78
|
Ios: 6.2.88
|
||||||
CurrentVersions:
|
CurrentVersions:
|
||||||
Unity: 2.0.1
|
Unity: 2.0.1
|
||||||
Android: 6.2.72
|
Android: 6.2.81
|
||||||
Ios: 6.2.68
|
Ios: 6.2.81
|
||||||
enableAndroidX: 1
|
enableAndroidX: 1
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ namespace Topon_Adapter.Editor
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Get the `manifest` element.
|
// Get the `manifest` element.
|
||||||
var elementManifest = manifest.Element ("manifest");
|
var elementManifest = manifest.Element ("manifest");
|
||||||
if (elementManifest == null)
|
if (elementManifest == null)
|
||||||
@@ -59,13 +61,15 @@ namespace Topon_Adapter.Editor
|
|||||||
ATLog.log ("[BuildAndroidProcess] AndroidManifest.xml is invalid.");
|
ATLog.log ("[BuildAndroidProcess] AndroidManifest.xml is invalid.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ToSingleTop (elementManifest);
|
||||||
|
|
||||||
var queries = CreateQueries ();
|
var queries = CreateQueries ();
|
||||||
|
|
||||||
var xManifestElements = elementManifest.Descendants ();
|
var xManifestElements = elementManifest.Descendants ();
|
||||||
var xApplicationElements = elementApplication.Descendants ();
|
var xApplicationElements = elementApplication.Descendants ();
|
||||||
var useQueries = xManifestElements.Where (element => element.Name.LocalName.Equals ("package"));
|
var useQueries = xManifestElements.Where (element => element.Name.LocalName.Equals ("package"));
|
||||||
XElement tencentElement = GetElementByName (useQueries, "com.tencent.mm");
|
XElement tencentElement = GetElementByName (useQueries, "com.tencent.mm");
|
||||||
if (tencentElement == null)
|
if (tencentElement == null)
|
||||||
{
|
{
|
||||||
elementManifest.Add (queries);
|
elementManifest.Add (queries);
|
||||||
@@ -108,7 +112,7 @@ namespace Topon_Adapter.Editor
|
|||||||
metaData.Add (new XAttribute (AndroidNamespace + "theme", "@android:style/Theme.Translucent.NoTitleBar"));
|
metaData.Add (new XAttribute (AndroidNamespace + "theme", "@android:style/Theme.Translucent.NoTitleBar"));
|
||||||
metaData.Add (new XAttribute (AndroidNamespace + "exported", "true"));
|
metaData.Add (new XAttribute (AndroidNamespace + "exported", "true"));
|
||||||
metaData.Add (new XAttribute (AndroidNamespace + "taskAffinity", Application.identifier));
|
metaData.Add (new XAttribute (AndroidNamespace + "taskAffinity", Application.identifier));
|
||||||
metaData.Add (new XAttribute (AndroidNamespace + "launchMode", "singleTask"));
|
metaData.Add (new XAttribute (AndroidNamespace + "launchMode", "singleTop"));
|
||||||
return metaData;
|
return metaData;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,6 +172,17 @@ namespace Topon_Adapter.Editor
|
|||||||
return providerData;
|
return providerData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void ToSingleTop (XElement manifest)
|
||||||
|
{
|
||||||
|
|
||||||
|
var elements = manifest.Descendants ().Where (element => element.Name.LocalName.Equals ("activity"));
|
||||||
|
// 如果这个activity已经有了 android:launchMode="singleTask",则不再添加
|
||||||
|
XElement elementByName = GetElementByName (elements , "com.unity3d.player.UnityPlayerActivity");
|
||||||
|
//此处将 android:launchMode="singleTask" 改为 android:launchMode="singleTop"
|
||||||
|
// elementByName.Add (new XAttribute (AndroidNamespace + "launchMode", "singleTop"));
|
||||||
|
elementByName.Attribute ( AndroidNamespace + "launchMode")?.SetValue ("singleTop");
|
||||||
|
}
|
||||||
|
|
||||||
public int callbackOrder { get; }
|
public int callbackOrder { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.20",
|
"version": "1.0.22",
|
||||||
"unity": "2021.1",
|
"unity": "2021.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user