mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
CB-7512 Make gradle build only a single config for sub-libraries (release vs debug)
This commit is contained in:
parent
879da03438
commit
2b128b85f7
@ -34,15 +34,12 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
ext.multiarch=false
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: '*.jar')
|
||||
for (subproject in getProjectList()) {
|
||||
compile project(subproject)
|
||||
}
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.12'
|
||||
}
|
||||
|
||||
ext.multiarch=false
|
||||
|
||||
android {
|
||||
sourceSets {
|
||||
main {
|
||||
@ -112,10 +109,16 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.12'
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: '*.jar')
|
||||
// https://code.google.com/p/android/issues/detail?id=52962
|
||||
for (subproject in getProjectList()) {
|
||||
releaseCompile project(path: subproject, configuration: 'release')
|
||||
debugCompile project(path: subproject, configuration: 'debug')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def promptForPassword(msg) {
|
||||
if (System.console() == null) {
|
||||
def ret = null
|
||||
|
@ -39,6 +39,7 @@ apply plugin: 'android-library'
|
||||
android {
|
||||
compileSdkVersion cordova.cordovaSdkVersion
|
||||
buildToolsVersion cordova.cordovaBuildToolsVersion
|
||||
publishNonDefault true
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
|
Loading…
Reference in New Issue
Block a user