From d4cf9833014a9c0ee88084528d475c8d88924e8f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 27 十月 2024 01:31:57 +0800
Subject: [PATCH] 0312 quicksdk

---
 Channel/Android/tqxbqy/gradleTemplate.properties  |    7 ++
 Channel/Android/tqxbqy/settingsTemplate.gradle    |   25 ++++++++
 Channel/Android/tqxbqy/mainTemplate.gradle        |   44 ++++++++++++++
 Channel/Android/tqxbqy/LauncherManifest.xml       |   16 +++++
 Channel/Android/tqxbqy/baseProjectTemplate.gradle |   13 ++++
 Channel/Android/tqxbqy/launcherTemplate.gradle    |   64 +++++++++++++++++++++
 6 files changed, 169 insertions(+), 0 deletions(-)

diff --git a/Channel/Android/tqxbqy/LauncherManifest.xml b/Channel/Android/tqxbqy/LauncherManifest.xml
new file mode 100644
index 0000000..b498c9f
--- /dev/null
+++ b/Channel/Android/tqxbqy/LauncherManifest.xml
@@ -0,0 +1,16 @@
+<?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"/>
+</manifest>
diff --git a/Channel/Android/tqxbqy/baseProjectTemplate.gradle b/Channel/Android/tqxbqy/baseProjectTemplate.gradle
new file mode 100644
index 0000000..cb1e102
--- /dev/null
+++ b/Channel/Android/tqxbqy/baseProjectTemplate.gradle
@@ -0,0 +1,13 @@
+plugins {
+    // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
+    // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
+    // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
+    // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
+    id 'com.android.application' version '7.1.2' apply false
+    id 'com.android.library' version '7.1.2' apply false
+    **BUILD_SCRIPT_DEPS**
+}
+
+task clean(type: Delete) {
+    delete rootProject.buildDir
+}
diff --git a/Channel/Android/tqxbqy/gradleTemplate.properties b/Channel/Android/tqxbqy/gradleTemplate.properties
new file mode 100644
index 0000000..c8b3570
--- /dev/null
+++ b/Channel/Android/tqxbqy/gradleTemplate.properties
@@ -0,0 +1,7 @@
+org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
+org.gradle.parallel=true
+android.useAndroidX=false
+## Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=false
+unityStreamingAssets=.unity3d
+**ADDITIONAL_PROPERTIES**
diff --git a/Channel/Android/tqxbqy/launcherTemplate.gradle b/Channel/Android/tqxbqy/launcherTemplate.gradle
new file mode 100644
index 0000000..28b4ac1
--- /dev/null
+++ b/Channel/Android/tqxbqy/launcherTemplate.gradle
@@ -0,0 +1,64 @@
+apply plugin: 'com.android.application'
+
+dependencies {
+    implementation project(':unityLibrary')
+    }
+
+android {
+    ndkPath "**NDKPATH**"
+
+    compileSdkVersion 30
+    buildToolsVersion '30.0.0'
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_11
+        targetCompatibility JavaVersion.VERSION_11
+    }
+
+    packagingOptions {exclude 'META-INF/rxjava.properties'}
+    defaultConfig {
+        minSdkVersion 21
+        targetSdkVersion 30
+        applicationId '**APPLICATIONID**'
+        ndk {
+            abiFilters **ABIFILTERS**
+        }
+        versionCode **VERSIONCODE**
+        versionName '**VERSIONNAME**'
+    }
+
+    aaptOptions {
+        noCompress = ['.unity3d', '.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')
+		ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
+    }**SIGN**
+
+    lintOptions {
+        abortOnError false
+        checkReleaseBuilds false
+    }
+
+    buildTypes {
+        debug {
+            minifyEnabled **MINIFY_DEBUG**
+            proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
+            jniDebuggable true
+        }
+        release {
+            minifyEnabled **MINIFY_RELEASE**
+            proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
+        }
+    }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**
+**BUILT_APK_LOCATION**
+    bundle {
+        language {
+            enableSplit = false
+        }
+        density {
+            enableSplit = false
+        }
+        abi {
+            enableSplit = true
+        }
+    }
+}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
+
diff --git a/Channel/Android/tqxbqy/mainTemplate.gradle b/Channel/Android/tqxbqy/mainTemplate.gradle
new file mode 100644
index 0000000..b57165f
--- /dev/null
+++ b/Channel/Android/tqxbqy/mainTemplate.gradle
@@ -0,0 +1,44 @@
+apply plugin: 'com.android.library'
+**APPLY_PLUGINS**
+
+dependencies {
+	implementation fileTree(dir: 'libs', include: ['*.jar'])
+
+**DEPS**}
+
+android {
+    ndkPath "**NDKPATH**"
+
+    compileSdkVersion 30
+    buildToolsVersion '30.0.0'
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_11
+        targetCompatibility JavaVersion.VERSION_11
+    }
+
+    packagingOptions {exclude 'META-INF/rxjava.properties'}
+    defaultConfig {
+        minSdkVersion 21
+        targetSdkVersion 30
+        ndk {
+            abiFilters **ABIFILTERS**
+        }
+        versionCode **VERSIONCODE**
+        versionName '**VERSIONNAME**'
+        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
+    }
+
+    lintOptions {
+        abortOnError false
+        checkReleaseBuilds false
+    }
+
+    aaptOptions {
+        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
+        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
+    }**PACKAGING_OPTIONS**
+}
+**IL_CPP_BUILD_SETUP**
+**SOURCE_BUILD_SETUP**
+**EXTERNAL_SOURCES**
diff --git a/Channel/Android/tqxbqy/settingsTemplate.gradle b/Channel/Android/tqxbqy/settingsTemplate.gradle
new file mode 100644
index 0000000..c23b5a7
--- /dev/null
+++ b/Channel/Android/tqxbqy/settingsTemplate.gradle
@@ -0,0 +1,25 @@
+pluginManagement {
+    repositories {
+        **ARTIFACTORYREPOSITORY**
+		maven { url "https://jitpack.io" }
+        gradlePluginPortal()
+        google()
+        mavenCentral()
+    }
+}
+
+include ':launcher', ':unityLibrary'
+**INCLUDES**
+
+dependencyResolutionManagement {
+    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
+    repositories {
+        **ARTIFACTORYREPOSITORY**
+		maven { url "https://jitpack.io" }
+        google()
+        mavenCentral()
+        flatDir {
+            dirs "${project(':unityLibrary').projectDir}/libs"
+        }
+    }
+}

--
Gitblit v1.8.0