mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
Move cordova.gradle from project template to CordovaLib
Make it easier to share with tests project. Also, one less file in the project template is a good thing.
This commit is contained in:
parent
2964aea447
commit
b69fed18e2
@ -72,6 +72,7 @@ function copyJsAndLibrary(projectPath, shared, projectName) {
|
|||||||
shell.cp('-f', path.join(ROOT, 'framework', 'AndroidManifest.xml'), nestedCordovaLibPath);
|
shell.cp('-f', path.join(ROOT, 'framework', 'AndroidManifest.xml'), nestedCordovaLibPath);
|
||||||
shell.cp('-f', path.join(ROOT, 'framework', 'project.properties'), nestedCordovaLibPath);
|
shell.cp('-f', path.join(ROOT, 'framework', 'project.properties'), nestedCordovaLibPath);
|
||||||
shell.cp('-f', path.join(ROOT, 'framework', 'build.gradle'), nestedCordovaLibPath);
|
shell.cp('-f', path.join(ROOT, 'framework', 'build.gradle'), nestedCordovaLibPath);
|
||||||
|
shell.cp('-f', path.join(ROOT, 'framework', 'cordova.gradle'), nestedCordovaLibPath);
|
||||||
shell.cp('-r', path.join(ROOT, 'framework', 'src'), nestedCordovaLibPath);
|
shell.cp('-r', path.join(ROOT, 'framework', 'src'), nestedCordovaLibPath);
|
||||||
// Create an eclipse project file and set the name of it to something unique.
|
// Create an eclipse project file and set the name of it to something unique.
|
||||||
// Without this, you can't import multiple CordovaLib projects into the same workspace.
|
// Without this, you can't import multiple CordovaLib projects into the same workspace.
|
||||||
@ -122,7 +123,6 @@ function copyBuildRules(projectPath) {
|
|||||||
shell.cp('-f', path.join(srcDir, 'custom_rules.xml'), projectPath);
|
shell.cp('-f', path.join(srcDir, 'custom_rules.xml'), projectPath);
|
||||||
|
|
||||||
shell.cp('-f', path.join(srcDir, 'build.gradle'), projectPath);
|
shell.cp('-f', path.join(srcDir, 'build.gradle'), projectPath);
|
||||||
shell.cp('-f', path.join(srcDir, 'cordova.gradle'), projectPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyScripts(projectPath) {
|
function copyScripts(projectPath) {
|
||||||
|
@ -57,7 +57,7 @@ task wrapper(type: Wrapper) {
|
|||||||
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
|
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
|
||||||
// Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
|
// Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
|
||||||
ext {
|
ext {
|
||||||
apply from: 'cordova.gradle'
|
apply from: 'CordovaLib/cordova.gradle'
|
||||||
// The value for android.compileSdkVersion.
|
// The value for android.compileSdkVersion.
|
||||||
if (!project.hasProperty('cdvCompileSdkVersion')) {
|
if (!project.hasProperty('cdvCompileSdkVersion')) {
|
||||||
cdvCompileSdkVersion = privateHelpers.getProjectTarget('android-19')
|
cdvCompileSdkVersion = privateHelpers.getProjectTarget('android-19')
|
||||||
|
Loading…
Reference in New Issue
Block a user