mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
dfdc8c2d9a
Fix #15603 Fix #15513
86 lines
1.7 KiB
Plaintext
86 lines
1.7 KiB
Plaintext
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
$$GRADLE_REPOSITORY_URLS$$
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.3.3'
|
|
$$GRADLE_CLASSPATH$$
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
allprojects {
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
google()
|
|
$$GRADLE_REPOSITORY_URLS$$
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.android.support:support-v4:27.+' // can be removed if minSdkVersion 16 and modify DownloadNotification.java & V14CustomNotification.java
|
|
$$GRADLE_DEPENDENCIES$$
|
|
}
|
|
|
|
android {
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
disable 'MissingTranslation'
|
|
}
|
|
|
|
compileSdkVersion 27
|
|
buildToolsVersion "27.0.3"
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/NOTICE'
|
|
}
|
|
defaultConfig {
|
|
$$GRADLE_DEFAULT_CONFIG$$
|
|
}
|
|
// Both signing and zip-aligning will be done at export time
|
|
buildTypes.all { buildType ->
|
|
buildType.zipAlignEnabled false
|
|
buildType.signingConfig null
|
|
}
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src'
|
|
$$GRADLE_JAVA_DIRS$$
|
|
]
|
|
res.srcDirs = [
|
|
'res'
|
|
$$GRADLE_RES_DIRS$$
|
|
]
|
|
aidl.srcDirs = [
|
|
'aidl'
|
|
$$GRADLE_AIDL_DIRS$$
|
|
]
|
|
assets.srcDirs = [
|
|
'assets'
|
|
$$GRADLE_ASSET_DIRS$$
|
|
]
|
|
}
|
|
debug.jniLibs.srcDirs = [
|
|
'libs/debug'
|
|
$$GRADLE_JNI_DIRS$$
|
|
]
|
|
release.jniLibs.srcDirs = [
|
|
'libs/release'
|
|
$$GRADLE_JNI_DIRS$$
|
|
]
|
|
}
|
|
applicationVariants.all { variant ->
|
|
// ApplicationVariant is undocumented, but this method is widely used; may break with another version of the Android Gradle plugin
|
|
variant.outputs.get(0).setOutputFile(new File("${projectDir}/../../../bin", "android_${variant.name}.apk"))
|
|
}
|
|
}
|
|
|
|
$$GRADLE_PLUGINS$$
|