diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle index 6de8c547..41984fa7 100644 --- a/bin/templates/project/build.gradle +++ b/bin/templates/project/build.gradle @@ -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 diff --git a/framework/build.gradle b/framework/build.gradle index 6ca284d3..85295f8c 100644 --- a/framework/build.gradle +++ b/framework/build.gradle @@ -39,6 +39,7 @@ apply plugin: 'android-library' android { compileSdkVersion cordova.cordovaSdkVersion buildToolsVersion cordova.cordovaBuildToolsVersion + publishNonDefault true compileOptions { sourceCompatibility JavaVersion.VERSION_1_7