4 Commits

Author SHA1 Message Date
Foldcc_Book
75730fb783 1.0.11 2023-10-12 05:20:31 +08:00
Foldcc_Book
38c9cabad2 1.0.10 2023-10-12 04:08:33 +08:00
f8a4ac18c1 版本号更新 1.0.10 2023-09-25 14:14:20 +08:00
c6bf3ec373 更新sdk Gromore 4.3.0.3 => 5.6.0.8 2023-09-25 14:13:13 +08:00
21 changed files with 325 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 78fc81d88459b95429b1b1c2d4c95aea
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:

View File

@@ -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:

View 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>

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1c49d887d5952a944a51f93410b4c40c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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:

View File

@@ -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>

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5cdaa0a8dde8495782a285555245f421
timeCreated: 1695622122

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 88b0cd13e8e208a4bab324fdd90b4067
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3730fc3181b36f54ea5593b0609aa846
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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>

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cf2aafbf181354d4a8c0616ad17df2d4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ffa17b4d22a08804794a574856906799
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,94 @@
#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");
#else
var manifestPath = Path.Combine(path, "unityLibrary/src/main/AndroidManifest.xml");
#endif
// var manifestPath = Path.Combine(path, "src/main/AndroidManifest.xml");
XDocument manifest;
try
{
manifest = XDocument.Load(manifestPath);
}
#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;
}
elementManifest.Add(CreateQueries());
elementApplication.Add(CreateActivityXML());
// Save the updated manifest file.
manifest.Save(manifestPath);
}
/// <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 int callbackOrder { get; }
}
}
#endif

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f093a7f66c4f4560a3d06bcf236bc89a
timeCreated: 1697048746

View 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
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4ea29d77d0952884eac16339c279a985
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,5 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.tencent.mm.opensdk:wechat-sdk-android:6.8.0"/>
</androidPackages>
</dependencies>

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ee2de7a1fe734e3599d92016611fc247
timeCreated: 1697050926

View File

@@ -2,7 +2,7 @@
"name": "com.commercialization.topon",
"displayName": "Commercialization.topon",
"description": "基于topon的广告sdk封装依赖基础商业化模块",
"version": "1.0.9",
"version": "1.0.11",
"unity": "2021.1",
"license": "MIT",
"repository": {