Channel/Android/tqxbqy/LauncherManifest.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/tqxbqy/baseProjectTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/tqxbqy/gradleTemplate.properties | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/tqxbqy/launcherTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/tqxbqy/mainTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/tqxbqy/settingsTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Channel/Android/tqxbqy/LauncherManifest.xml
New file @@ -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> Channel/Android/tqxbqy/baseProjectTemplate.gradle
New file @@ -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 } Channel/Android/tqxbqy/gradleTemplate.properties
New file @@ -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** Channel/Android/tqxbqy/launcherTemplate.gradle
New file @@ -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** Channel/Android/tqxbqy/mainTemplate.gradle
New file @@ -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** Channel/Android/tqxbqy/settingsTemplate.gradle
New file @@ -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" } } }