apply plugin: 'com.android.application'
|
|
dependencies {
|
implementation project(':unityLibrary')
|
}
|
|
android {
|
ndkPath "**NDKPATH**"
|
|
compileSdkVersion 34
|
buildToolsVersion '34.0.0'
|
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_11
|
targetCompatibility JavaVersion.VERSION_11
|
}
|
|
packagingOptions {exclude 'META-INF/rxjava.properties'}
|
defaultConfig {
|
minSdkVersion 24
|
targetSdkVersion 34
|
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**
|
|
task copyJsonFile {
|
copy {
|
System.out.println("copy googlejson===============");
|
delete("./google-services.json")
|
from('../../../../../../../Assets/Plugins/Android/')
|
into('./')
|
include("google-services.json")
|
}
|
}
|
|
//apply plugin: 'com.google.gms.google-services'
|
//apply plugin: 'com.google.firebase.crashlytics'
|