您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
84 行
2.1 KiB
84 行
2.1 KiB
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
// Must be Android Gradle Plugin 3.6.0 or later. For a list of
|
|
// compatible Gradle versions refer to:
|
|
// https://developer.android.com/studio/releases/gradle-plugin
|
|
classpath 'com.android.tools.build:gradle:3.6.0'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
dependencies {
|
|
implementation project(':unityLibrary')
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion **APIVERSION**
|
|
buildToolsVersion '**BUILDTOOLS**'
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion **MINSDKVERSION**
|
|
targetSdkVersion **TARGETSDKVERSION**
|
|
applicationId '**APPLICATIONID**'
|
|
ndk {
|
|
abiFilters **ABIFILTERS**
|
|
}
|
|
versionCode **VERSIONCODE**
|
|
versionName '**VERSIONNAME**'
|
|
}
|
|
|
|
aaptOptions {
|
|
noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
|
|
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
|
|
}**SIGN**
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled **MINIFY_DEBUG**
|
|
useProguard **PROGUARD_DEBUG**
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
|
|
jniDebuggable true
|
|
}
|
|
release {
|
|
minifyEnabled **MINIFY_RELEASE**
|
|
useProguard **PROGUARD_RELEASE**
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
|
|
}
|
|
}**PACKAGING_OPTIONS****SPLITS**
|
|
**BUILT_APK_LOCATION**
|
|
bundle {
|
|
language {
|
|
enableSplit = false
|
|
}
|
|
density {
|
|
enableSplit = false
|
|
}
|
|
abi {
|
|
enableSplit = true
|
|
}
|
|
}
|
|
}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
|