mirror of
https://github.com/blanking003/cx-cocos.git
synced 2025-04-23 15:29:00 +00:00
70 lines
2.0 KiB
Groovy
Executable File
70 lines
2.0 KiB
Groovy
Executable File
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
|
|
buildToolsVersion PROP_BUILD_TOOLS_VERSION
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "cx3.blank.demo"
|
|
minSdkVersion PROP_MIN_SDK_VERSION
|
|
targetSdkVersion PROP_TARGET_SDK_VERSION
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE'
|
|
}
|
|
|
|
sourceSets.main {
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
java.srcDirs "src"
|
|
res.srcDirs "res"
|
|
jniLibs.srcDirs = ["libs", "../../../../cx-framework3.1/cocos3-libs/cocos3-libso/build/app/intermediates/cmake/release/obj"]
|
|
assets.srcDirs = ['../../assets', '../../boot', '../../statics']
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
|
storeFile file(RELEASE_STORE_FILE)
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
debuggable false
|
|
jniDebuggable false
|
|
renderscriptDebuggable false
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
debug {
|
|
debuggable true
|
|
jniDebuggable true
|
|
renderscriptDebuggable true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
|
|
implementation project(':libcc')
|
|
implementation 'com.amap.api:location:latest.integration'
|
|
// implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
}
|