You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/04/10 23:14:18 UTC
[01/14] cordova-coho git commit: CB-11909 changed
prepare-release-branch command to grab version from package.json
Repository: cordova-coho
Updated Branches:
refs/heads/master 89a945460 -> 68026cde1
CB-11909 changed prepare-release-branch command to grab version from package.json
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/18ed3263
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/18ed3263
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/18ed3263
Branch: refs/heads/master
Commit: 18ed32635478932f5700b6f0ea0850b27dfd1d6b
Parents: 3feac17
Author: audreyso <au...@adobe.com>
Authored: Tue Sep 27 14:51:39 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Tue Sep 27 16:33:24 2016 -0700
----------------------------------------------------------------------
src/platform-release.js | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/18ed3263/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index a9ebce1..10700e7 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -61,8 +61,7 @@ function configureReleaseCommandFlags(opt) {
var opt = flagutil.registerRepoFlag(opt)
opt = opt
.options('version', {
- desc: 'The version to use for the branch. Must match the pattern #.#.#[-rc#]',
- demand: true
+ desc: 'The version to use for the branch. Must match the pattern #.#.#[-rc#]'
});
opt = flagutil.registerHelpFlag(opt);
argv = opt.argv;
@@ -71,7 +70,7 @@ function configureReleaseCommandFlags(opt) {
optimist.showHelp();
process.exit(1);
}
- var version = flagutil.validateVersionString(argv.version);
+
return argv;
}
@@ -128,14 +127,29 @@ exports.prepareReleaseBranchCommand = function*() {
'\n' +
'Usage: $0 prepare-release-branch --version=3.6.0 -r platform')
);
+
var repos = flagutil.computeReposFromFlag(argv.r);
- var version = flagutil.validateVersionString(argv.version);
- var branchName = getVersionBranchName(version);
+ var branchName = null;
+
// First - perform precondition checks.
yield repoupdate.updateRepos(repos, [], true);
yield repoutil.forEachRepo(repos, function*(repo) {
+
+ var version = null;
+
+ if (argv.version === undefined) {
+ // Grabbing version from platformPackageJson
+ var platformPackage = path.join(process.cwd(), 'package.json');
+ var platformPackageJson = require(platformPackage);
+ var version = flagutil.validateVersionString(platformPackageJson.version);
+ } else {
+ var version = flagutil.validateVersionString(argv.version);
+ }
+
+ branchName = getVersionBranchName(version);
+
yield gitutil.stashAndPop(repo, function*() {
// git fetch + update master
yield repoupdate.updateRepos([repo], ['master'], false);
@@ -152,7 +166,8 @@ exports.prepareReleaseBranchCommand = function*() {
yield gitutil.gitCheckout('master');
yield executil.execHelper(executil.ARGS('git checkout -b ' + branchName));
}
- yield updateJsSnapshot(repo, version);
+
+ yield updateJsSnapshot(repo, version);
print(repo.repoName + ': ' + 'Setting VERSION to "' + version + '" on branch + "' + branchName + '".');
yield versionutil.updateRepoVersion(repo, version);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[14/14] cordova-coho git commit: CB-12498 : update versions (name,
vscTag, and version) in gradle.build
Posted by st...@apache.org.
CB-12498 : update versions (name, vscTag, and version) in gradle.build
This closes #144
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/68026cde
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/68026cde
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/68026cde
Branch: refs/heads/master
Commit: 68026cde18fef9539b68b67a6cd170fb7120cada
Parents: 0d0a070
Author: Audrey So <au...@apache.org>
Authored: Mon Apr 10 11:54:38 2017 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Apr 10 16:14:11 2017 -0700
----------------------------------------------------------------------
docs/platforms-release-process.md | 12 +++---------
src/versionutil.js | 4 ++++
2 files changed, 7 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/68026cde/docs/platforms-release-process.md
----------------------------------------------------------------------
diff --git a/docs/platforms-release-process.md b/docs/platforms-release-process.md
index 7833188..4cd8f64 100644
--- a/docs/platforms-release-process.md
+++ b/docs/platforms-release-process.md
@@ -345,19 +345,13 @@ Find your release here: https://dist.apache.org/repos/dist/release/cordova/
## Uploading to Bintray (Android only)
-1. Run the following commands:
- cd cordova-android/framework && gradle bintrayUpload
+1. Add your bintray username and password as system variables. Your BINTRAY_USER and BINTRAY_KEY should be cordova username and key respectively. Ask the Project Management Committee (pmc) for the cordova credentials. Confirm that your key and user name are set:
-2. Add your bintray username and password as system variables.
- Your BINTRAY_USER and BINTRAY_KEY should be your Bintray username and key respectively.
echo $BINTRAY_USER
echo $BINTRAY_KEY
- bintray {
- user = 'BINTRAY_USER'
- key = 'BINTRAY_KEY'
- ...
- }
+2. Run the following command:
+ (cd cordova-android/framework && gradle bintrayUpload)
## Add permanent apache release tag
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/68026cde/src/versionutil.js
----------------------------------------------------------------------
diff --git a/src/versionutil.js b/src/versionutil.js
index a4b895c..6124555 100644
--- a/src/versionutil.js
+++ b/src/versionutil.js
@@ -79,6 +79,10 @@ exports.updateRepoVersion = function *updateRepoVersion(repo, version, opts) {
if (repo.id == 'android' || repo.id == 'amazon-fireos') {
shelljs.sed('-i', /CORDOVA_VERSION.*=.*;/, 'CORDOVA_VERSION = "' + version + '";', path.join('framework', 'src', 'org', 'apache', 'cordova', 'CordovaWebView.java'));
shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'cordova', 'version'));
+ // Set build.gradle version, vcsTag, and name
+ shelljs.sed('-i', /version.*=.*/, "version = '" + version + "'", path.join('framework', 'build.gradle'));
+ shelljs.sed('-i', /vcsTag.*=.*/, "vcsTag = '" + version + "'", path.join('framework', 'build.gradle'));
+ shelljs.sed('-i', /version.{\n.*(name.*=.*)/, "version {\n name = '" + version + "'", path.join('framework', 'build.gradle'));
} else if (repo.id == 'ios' || repo.id == 'osx') {
shelljs.sed('-i', /VERSION.*=.*/, 'VERSION="' + version + '";', path.join('bin', 'templates', 'scripts', 'cordova', 'version'));
} else if (repo.id == 'blackberry') {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[13/14] cordova-coho git commit: CB-12498 : added a section about
bintray for android
Posted by st...@apache.org.
CB-12498 : added a section about bintray for android
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/0d0a0701
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/0d0a0701
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/0d0a0701
Branch: refs/heads/master
Commit: 0d0a070196ba848c37297af90fc2e5aecb473046
Parents: a079981
Author: Audrey So <au...@apache.org>
Authored: Fri Apr 7 15:48:55 2017 -0700
Committer: Audrey So <au...@apache.org>
Committed: Mon Apr 10 09:57:31 2017 -0700
----------------------------------------------------------------------
docs/platforms-release-process.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/0d0a0701/docs/platforms-release-process.md
----------------------------------------------------------------------
diff --git a/docs/platforms-release-process.md b/docs/platforms-release-process.md
index 49c5290..7833188 100644
--- a/docs/platforms-release-process.md
+++ b/docs/platforms-release-process.md
@@ -343,6 +343,22 @@ _Note: list of PMC members: http://people.apache.org/phonebook.html?pmc=cordova_
Find your release here: https://dist.apache.org/repos/dist/release/cordova/
+## Uploading to Bintray (Android only)
+
+1. Run the following commands:
+ cd cordova-android/framework && gradle bintrayUpload
+
+2. Add your bintray username and password as system variables.
+ Your BINTRAY_USER and BINTRAY_KEY should be your Bintray username and key respectively.
+ echo $BINTRAY_USER
+ echo $BINTRAY_KEY
+
+ bintray {
+ user = 'BINTRAY_USER'
+ key = 'BINTRAY_KEY'
+ ...
+ }
+
## Add permanent apache release tag
Make a copy of your released tag with a prefix of `rel\YOURTAG`. These are permanent release tags for Apache.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[02/14] cordova-coho git commit: CB-12022 Update jira-triage.md to
include tips for how to get more info from reporters
Posted by st...@apache.org.
CB-12022 Update jira-triage.md to include tips for how to get more info from reporters
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/459a92ac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/459a92ac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/459a92ac
Branch: refs/heads/master
Commit: 459a92ac615791665814c8c2c84b38482ee99b48
Parents: ca0cfa8
Author: audreyso <au...@adobe.com>
Authored: Fri Oct 14 16:46:15 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
docs/jira-triage.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/459a92ac/docs/jira-triage.md
----------------------------------------------------------------------
diff --git a/docs/jira-triage.md b/docs/jira-triage.md
index 9975b0c..5c99276 100644
--- a/docs/jira-triage.md
+++ b/docs/jira-triage.md
@@ -30,8 +30,13 @@ Go through each [unresolved bug that is not labeled 'triaged' ordered by created
At the end of triage session, send an e-mail to the dev list discussing bugs that need urgent attention. Good bugs in this area are recent regressions or other issues having a wide impact. These would require a patch release to fix them.
##Asking for help
-Sometimes while there is a bug or a feature request that seems valid, but it might not be high priority for one of the committers to fix. Following up with the issue reporter quickly and coaching him thorugh making a contribution with a pull request is a good idea.
+Sometimes while there is a bug or a feature request that seems valid, but it might not be high priority for one of the committers to fix. Following up with the issue reporter quickly and coaching him through making a contribution with a pull request is a good idea.
+##Tips when asking for more info from reporter
+- If the cordova version is not provided, ask reporter to use \u201ccordova -v\u201d to verify which version of cordova he/she is using.
+- If the platform version is not provided, ask the reporter to use \u201ccordova platform ls\u201d to verify which platform version he/she is using.
+- If the issue is unclear, ask the reporter to provide more details via screen shot, sample code, or a command line log.
+
##Dealing with feature requests
New features to plugins should ideally be cross platform (at least across more than one major platform - Android, iOS, Windows). The design should account for ease of detection or meaningful degradation in the absence of the feature on a partcular platform. For feature requests that are overly specific to a particular usecase - we should resolve them with resolution reason `Later` or `Won't Fix`. There is little value in carrying the debt of these issues.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[09/14] cordova-coho git commit: Added growl to knownIssues.json
Posted by st...@apache.org.
Added growl to knownIssues.json
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/ca0cfa87
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/ca0cfa87
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/ca0cfa87
Branch: refs/heads/master
Commit: ca0cfa877286b149fe79ea49c07d73a719a7e6ca
Parents: bd84712
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Oct 7 00:36:57 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/knownIssues.json | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/ca0cfa87/src/knownIssues.json
----------------------------------------------------------------------
diff --git a/src/knownIssues.json b/src/knownIssues.json
index 3ad9c6e..849a2c1 100644
--- a/src/knownIssues.json
+++ b/src/knownIssues.json
@@ -95,5 +95,15 @@
"pull-request-to-fix" : "https://github.com/purplecabbage/valid-identifier/pull/5",
"verified-license": "Apache-2.0",
"verified-license-notes": "https://github.com/purplecabbage/valid-identifier/blob/a6562f196f82077c04c9b03545e17fec817a5d92/LICENSE"
+ },
+ "growl" : {
+ "manually-verified-versions": [
+ "growl@1.7.0"
+ ],
+ "license-key": "missing from package.json",
+ "pull-request-to-fix" : "n/a",
+ "verified-license": "MIT",
+ "verified-license-notes": "license in README.md, license present in package.json in 1.9.0"
}
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[04/14] cordova-coho git commit: CB-9157 adds copy-js command to copy
an updated cordova.js to the specified platform
Posted by st...@apache.org.
CB-9157 adds copy-js command to copy an updated cordova.js to the specified platform
This closes #141
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/5dc464b4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/5dc464b4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/5dc464b4
Branch: refs/heads/master
Commit: 5dc464b406874d350a7cddc7242ff4c3eb3ff2be
Parents: c955afb
Author: audreyso <au...@adobe.com>
Authored: Mon Oct 3 09:25:19 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/main.js | 4 ++
src/platform-release.js | 92 ++++++++++++++++++++++++++++++--------------
2 files changed, 67 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/5dc464b4/src/main.js
----------------------------------------------------------------------
diff --git a/src/main.js b/src/main.js
index a599ef0..7cdd3f4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -154,6 +154,10 @@ module.exports = function() {
name: 'npm-link',
desc: 'Does an "npm link" of dependent modules that we own.',
entryPoint: lazyRequire('./npm-link')
+ }, {
+ name: 'copy-js',
+ desc: 'Generates and copies cordova.js to platform.',
+ entryPoint: lazyRequire('./platform-release.js', 'createAndCopyCordovaJSCommand')
}
];
var commandMap = {};
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/5dc464b4/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index 8d40acc..e9cff9c 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -59,6 +59,36 @@ function cpAndLog(src, dest) {
}
}
+/*
+ * A function that handles version if it is defined or undefined
+ *
+ * @param {String} repo current repo
+ * @param {String|undefined} ver current version that can be defined or undefined
+ * @param {String|undefined} validate current version that can be defined or undefined
+ *
+ * @return {String} version Returns the calculated version
+ *
+ */
+
+function *handleVersion(repo,ver,validate) {
+ var platform = repo.id;
+ var version = ver || undefined;
+
+ if (version === undefined) {
+ yield repoutil.forEachRepo([repo], function*() {
+ // Grabbing version from platformPackageJson
+ var platformPackage = path.join(process.cwd(), 'package.json');
+ var platformPackageJson = require(platformPackage);
+ if(validate === true) {
+ version = flagutil.validateVersionString(platformPackageJson.version);
+ } else {
+ version = platformPackageJson.version;
+ }
+ });
+ }
+ return version;
+}
+
function configureReleaseCommandFlags(opt) {
var opt = flagutil.registerRepoFlag(opt)
opt = opt
@@ -105,7 +135,7 @@ function *updateCDVAvailabilityFile(version) {
fs.writeFileSync(iosFile, iosFileContents.join('\n'));
}
-function *updateJsSnapshot(repo, version) {
+function *updateJsSnapshot(repo, version, commit) {
function *ensureJsIsBuilt() {
var cordovaJsRepo = repoutil.getRepoById('js');
if (repo.id === 'blackberry') {
@@ -134,14 +164,32 @@ function *updateJsSnapshot(repo, version) {
var src = path.join('..', 'cordova-js', 'pkg', repo.cordovaJsSrcName || ('cordova.' + repo.id + '.js'));
cpAndLog(src, jsPath);
});
- if (yield gitutil.pendingChangesExist()) {
- yield executil.execHelper(executil.ARGS('git commit -am', 'Update JS snapshot to version ' + version + ' (via coho)'));
- }
+ if(commit === true) {
+ if (yield gitutil.pendingChangesExist()) {
+ yield executil.execHelper(executil.ARGS('git commit -am', 'Update JS snapshot to version ' + version + ' (via coho)'));
+ }
+ }
} else if (repoutil.repoGroups.all.indexOf(repo) != -1) {
print('*** DO NOT KNOW HOW TO UPDATE cordova.js FOR THIS REPO ***');
}
}
+exports.createAndCopyCordovaJSCommand = function*() {
+ var argv = configureReleaseCommandFlags(optimist
+ .usage('Generates and copies an updated cordova.js to the specified platform. It does the following:\n' +
+ ' 1. Generates a new cordova.js.\n' +
+ ' 2. Replaces platform\'s cordova.js file.\n' +
+ '\n' +
+ 'Usage: $0 copy-js -r platform')
+ );
+
+ var repos = flagutil.computeReposFromFlag(argv.r);
+ yield repoutil.forEachRepo(repos, function*(repo) {
+ var version = yield handleVersion(repo, argv.version, false);
+ yield updateJsSnapshot(repo,version, false);
+ });
+}
+
exports.prepareReleaseBranchCommand = function*() {
var argv = configureReleaseCommandFlags(optimist
.usage('Prepares release branches but does not create tags. This includes:\n' +
@@ -154,39 +202,27 @@ exports.prepareReleaseBranchCommand = function*() {
'Command can also be used to update the JS snapshot after release \n' +
'branches have been created.\n' +
'\n' +
- 'Usage: $0 prepare-release-branch --version=3.6.0 -r platform')
+ 'Usage: $0 prepare-release-branch -r platform [--version=3.6.0]')
);
-
- var repos = flagutil.computeReposFromFlag(argv.r);
+ var repos = flagutil.computeReposFromFlag(argv.r);
var branchName = null;
-
+
// First - perform precondition checks.
yield repoupdate.updateRepos(repos, [], true);
yield repoutil.forEachRepo(repos, function*(repo) {
var platform = repo.id;
-
- var version = null;
-
- if (argv.version === undefined) {
- // Grabbing version from platformPackageJson
- var platformPackage = path.join(process.cwd(), 'package.json');
- var platformPackageJson = require(platformPackage);
- var version = flagutil.validateVersionString(platformPackageJson.version);
- } else {
- var version = flagutil.validateVersionString(argv.version);
- }
-
- branchName = getVersionBranchName(version);
+ var version = yield handleVersion(repo, argv.version,true);
+ var branchName = getVersionBranchName(version);
yield gitutil.stashAndPop(repo, function*() {
// git fetch + update master
yield repoupdate.updateRepos([repo], ['master'], false);
if (platform === 'ios') {
- //Updates version in CDVAvailability.h file
+ // Updates version in CDVAvailability.h file
yield updateCDVAvailabilityFile(version);
- //Git commit changes
+ // Git commit changes
if(yield gitutil.pendingChangesExist()) {
yield executil.execHelper(executil.ARGS('git commit -am', 'Added ' + version + ' to CDVAvailability.h (via coho).'));
}
@@ -204,15 +240,15 @@ exports.prepareReleaseBranchCommand = function*() {
yield executil.execHelper(executil.ARGS('git checkout -b ' + branchName));
}
- yield updateJsSnapshot(repo, version);
- print(repo.repoName + ': ' + 'Setting VERSION to "' + version + '" on branch + "' + branchName + '".');
+ yield updateJsSnapshot(repo, version, true);
+ print(repo.repoName + ': Setting VERSION to "' + version + '" on branch "' + branchName + '".');
yield versionutil.updateRepoVersion(repo, version);
yield gitutil.gitCheckout('master');
var devVersion = createPlatformDevVersion(version);
- print(repo.repoName + ': ' + 'Setting VERSION to "' + devVersion + '" on branch + "master".');
+ print(repo.repoName + ': Setting VERSION to "' + devVersion + '" on branch "master".');
yield versionutil.updateRepoVersion(repo, devVersion);
- yield updateJsSnapshot(repo, devVersion);
+ yield updateJsSnapshot(repo, devVersion, true);
yield gitutil.gitCheckout(branchName);
});
});
@@ -228,7 +264,6 @@ function *tagJs(repo, version, pretend) {
yield executil.execHelper(cmd);
}
}
-
//tag cordova.js platform-version
var cordovaJsRepo = repoutil.getRepoById('js');
yield repoutil.forEachRepo([cordovaJsRepo], function*() {
@@ -247,7 +282,6 @@ function *tagJs(repo, version, pretend) {
});
}
-
exports.tagReleaseBranchCommand = function*(argv) {
var argv = configureReleaseCommandFlags(optimist
.usage('Tags a release branches.\n' +
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[06/14] cordova-coho git commit: CB-11642 update CDVAvailability.h
Posted by st...@apache.org.
CB-11642 update CDVAvailability.h
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/b545b7e8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/b545b7e8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/b545b7e8
Branch: refs/heads/master
Commit: b545b7e8a4efed44cd250bbc9b85e95144210a0c
Parents: 18551f2
Author: juliascript <ju...@gmail.com>
Authored: Thu Jul 28 17:44:52 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/platform-release.js | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/b545b7e8/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index 10700e7..b016859 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -18,6 +18,8 @@ under the License.
*/
var path = require('path');
+var fs = require('fs');
+var util = require('util');
var optimist = require('optimist');
var shelljs = require('shelljs');
var apputil = require('./apputil');
@@ -129,8 +131,8 @@ exports.prepareReleaseBranchCommand = function*() {
);
var repos = flagutil.computeReposFromFlag(argv.r);
+
var branchName = null;
-
// First - perform precondition checks.
yield repoupdate.updateRepos(repos, [], true);
@@ -153,7 +155,6 @@ exports.prepareReleaseBranchCommand = function*() {
yield gitutil.stashAndPop(repo, function*() {
// git fetch + update master
yield repoupdate.updateRepos([repo], ['master'], false);
-
// Either create or pull down the branch.
if (yield gitutil.remoteBranchExists(repo, branchName)) {
print('Remote branch already exists for repo: ' + repo.repoName);
@@ -177,6 +178,30 @@ exports.prepareReleaseBranchCommand = function*() {
yield versionutil.updateRepoVersion(repo, devVersion);
yield updateJsSnapshot(repo, devVersion);
yield gitutil.gitCheckout(branchName);
+
+ print(repo.repoName + ': ' + 'Setting VERSION to "' + version + '" on branch + "4.2.x".');
+ if (platform == 'ios') {
+ var iosFile = path.join(__dirname, '..', '..', 'cordova-ios', 'CordovaLib', 'Classes', 'Public', 'CDVAvailability.h');
+ var iosFileContents = fs.readFileSync(iosFile, 'utf8');
+ iosFileContents = iosFileContents.split('\n');
+
+ var lineNumberToInsertLine = iosFileContents.indexOf('/* coho:next-version,insert-before */') - 1;
+ var lineNumberToReplaceLine = iosFileContents.indexOf(' /* coho:next-version-min-required,replace-after */') + 2;
+
+
+ var versionNumberUnderscores = version.split('.').join('_');
+ var versionNumberZeroes = version.split('.').join('0');
+
+ var lineToAdd = util.format('#define __CORDOVA_%s %s', versionNumberUnderscores, versionNumberZeroes);
+ var lineToReplace = util.format(' #define CORDOVA_VERSION_MIN_REQUIRED __CORDOVA_%s', versionNumberUnderscores);
+
+ iosFileContents.splice(lineNumberToInsertLine, 0, lineToAdd);
+ iosFileContents[lineNumberToReplaceLine] = lineToReplace;
+
+ fs.writeFileSync(iosFile, iosFileContents.join('\n'));
+ var update = fs.readFileSync(iosFile, 'utf8');
+ console.log(update);
+ }
});
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[11/14] cordova-coho git commit: updated platforms release process,
removed manually CDVAvailability.h edit for iOS
Posted by st...@apache.org.
updated platforms release process, removed manually CDVAvailability.h edit for iOS
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/c955afb5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/c955afb5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/c955afb5
Branch: refs/heads/master
Commit: c955afb5efe6ac570b6c61a596acbe4d63d9f624
Parents: ca65664
Author: Steve Gill <st...@gmail.com>
Authored: Thu Sep 29 17:15:32 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
docs/platforms-release-process.md | 14 --------------
1 file changed, 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/c955afb5/docs/platforms-release-process.md
----------------------------------------------------------------------
diff --git a/docs/platforms-release-process.md b/docs/platforms-release-process.md
index d0f1255..2b5429f 100644
--- a/docs/platforms-release-process.md
+++ b/docs/platforms-release-process.md
@@ -83,20 +83,6 @@ Ensure all dependencies and subdependencies have Apache-compatible licenses
coho check-license -r android
-#### For `iOS` only:
- * Update [CordovaLib/Classes/Public/CDVAvailability.h](https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/Public/CDVAvailability.h)
-
-by adding a new macro for the new version, e.g.
-
- #define __CORDOVA_2_1_0 20100
-
-
-and update `CORDOVA_VERSION_MIN_REQUIRED` with the latest version macro, e.g.
-
- #ifndef CORDOVA_VERSION_MIN_REQUIRED
- #define CORDOVA_VERSION_MIN_REQUIRED __CORDOVA_2_1_0
- #endif
-
## Prepare Release
Increase the version within package.json using SemVer, and remove the `-dev` suffix
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[10/14] cordova-coho git commit: update npm test
Posted by st...@apache.org.
update npm test
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/cbb7ba0d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/cbb7ba0d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/cbb7ba0d
Branch: refs/heads/master
Commit: cbb7ba0de0d9f69d97659553c7fc4717531f480e
Parents: 9dc994e
Author: juliascript <ju...@gmail.com>
Authored: Fri Jul 29 11:16:53 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
package.json | 2 +-
src/platform-release.js | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/cbb7ba0d/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index d4bd0a1..a1f41cf 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"tape-runner": "^0.3.0"
},
"scripts": {
- "test": "nsp check && node test/test.js | tap-spec"
+ "test": "node test/test.js | tap-spec"
},
"repository": {
"type": "git",
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/cbb7ba0d/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index 0435b6c..e7229de 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -199,11 +199,9 @@ exports.prepareReleaseBranchCommand = function*() {
iosFileContents[lineNumberToReplaceLine] = lineToReplace;
fs.writeFileSync(iosFile, iosFileContents.join('\n'));
- var update = fs.readFileSync(iosFile, 'utf8');
}
});
});
-
executil.reportGitPushResult(repos, ['master', branchName]);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[07/14] cordova-coho git commit: CB-11642 update CDVAvailability.h
Posted by st...@apache.org.
CB-11642 update CDVAvailability.h
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/9dc994ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/9dc994ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/9dc994ed
Branch: refs/heads/master
Commit: 9dc994ed5d7d12a5d7fa0907f9c353b7d5df8ee6
Parents: b545b7e
Author: juliascript <ju...@gmail.com>
Authored: Thu Jul 28 17:48:21 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/platform-release.js | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/9dc994ed/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index b016859..0435b6c 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -200,7 +200,6 @@ exports.prepareReleaseBranchCommand = function*() {
fs.writeFileSync(iosFile, iosFileContents.join('\n'));
var update = fs.readFileSync(iosFile, 'utf8');
- console.log(update);
}
});
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[12/14] cordova-coho git commit: rebase master
Posted by st...@apache.org.
rebase master
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/a079981e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/a079981e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/a079981e
Branch: refs/heads/master
Commit: a079981ef15e22c779fe54009998bfb154038a5f
Parents: 459a92a 89a9454
Author: Audrey So <au...@apache.org>
Authored: Fri Apr 7 11:19:02 2017 -0700
Committer: Audrey So <au...@apache.org>
Committed: Fri Apr 7 11:19:02 2017 -0700
----------------------------------------------------------------------
.gitignore | 1 +
docs/platforms-release-process.md | 36 +++++++++++--
docs/plugins-release-process.md | 15 ++----
docs/tools-release-process.md | 4 +-
package.json | 4 +-
src/audit-license-headers.js | 4 +-
src/create-verify-archive.js | 2 +-
src/gitutil.js | 24 ++++++++-
src/knownIssues.json | 95 +++++++++++++++++++++++++++++++++-
src/nightly.js | 38 --------------
src/npm-link.js | 4 ++
src/print-tags.js | 2 +-
src/update-release-notes.js | 63 ++++++++++++++++++----
src/validLicenses.json | 3 +-
14 files changed, 221 insertions(+), 74 deletions(-)
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[05/14] cordova-coho git commit: Add valid-identifier to
knownIssues.json
Posted by st...@apache.org.
Add valid-identifier to knownIssues.json
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/18551f26
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/18551f26
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/18551f26
Branch: refs/heads/master
Commit: 18551f26bc6a7886b6026e684f93732750e7e96e
Parents: 18ed326
Author: Vladimir Kotikov <ko...@gmail.com>
Authored: Thu Aug 25 16:19:06 2016 +0300
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/knownIssues.json | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/18551f26/src/knownIssues.json
----------------------------------------------------------------------
diff --git a/src/knownIssues.json b/src/knownIssues.json
index a7b3401..3ad9c6e 100644
--- a/src/knownIssues.json
+++ b/src/knownIssues.json
@@ -86,5 +86,14 @@
"promise.prototype.finally": {
"verified-license": "MIT",
"verified-license-notes": "https://github.com/es-shims/Promise.prototype.finally/blob/master/package.json#L17"
- }
+ },
+ "valid-identifier" : {
+ "manually-verified-versions": [
+ "valid-identifier@0.0.1"
+ ],
+ "license-key": "Present but not SPDX compatible",
+ "pull-request-to-fix" : "https://github.com/purplecabbage/valid-identifier/pull/5",
+ "verified-license": "Apache-2.0",
+ "verified-license-notes": "https://github.com/purplecabbage/valid-identifier/blob/a6562f196f82077c04c9b03545e17fec817a5d92/LICENSE"
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[08/14] cordova-coho git commit: CB-11642 updated CDVAvailability.h
in coho
Posted by st...@apache.org.
CB-11642 updated CDVAvailability.h in coho
This closes #140
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/ca65664d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/ca65664d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/ca65664d
Branch: refs/heads/master
Commit: ca65664d0ded4065b75c477718e1a3615917de9a
Parents: cbb7ba0
Author: audreyso <au...@adobe.com>
Authored: Thu Sep 29 16:26:48 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
src/platform-release.js | 60 +++++++++++++++++++++++++++-----------------
1 file changed, 37 insertions(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/ca65664d/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index e7229de..8d40acc 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -78,6 +78,33 @@ function configureReleaseCommandFlags(opt) {
var hasBuiltJs = '';
+//Adds the version to CDVAvailability.h for iOS
+function *updateCDVAvailabilityFile(version) {
+ var iosFile = path.join(process.cwd(), 'CordovaLib', 'Classes', 'Public','CDVAvailability.h');
+ var iosFileContents = fs.readFileSync(iosFile, 'utf8');
+ iosFileContents = iosFileContents.split('\n');
+
+ var lineNumberToInsertLine = iosFileContents.indexOf('/* coho:next-version,insert-before */');
+ var lineNumberToReplaceLine = iosFileContents.indexOf(' /* coho:next-version-min-required,replace-after */') + 2;
+
+ var versionNumberUnderscores = version.split('.').join('_');
+ var versionNumberZeroes = version.split('.').join('0');
+
+ var lineToAdd = util.format('#define __CORDOVA_%s %s', versionNumberUnderscores, versionNumberZeroes);
+ var lineToReplace = util.format(' #define CORDOVA_VERSION_MIN_REQUIRED __CORDOVA_%s', versionNumberUnderscores);
+
+ if(iosFileContents[lineNumberToInsertLine - 1] === lineToAdd) {
+ print('Version already exists in CDVAvailability.h');
+ lineNumberToReplaceLine = lineNumberToReplaceLine - 1;
+ } else {
+ iosFileContents.splice(lineNumberToInsertLine, 0, lineToAdd);
+ }
+
+ iosFileContents[lineNumberToReplaceLine] = lineToReplace;
+
+ fs.writeFileSync(iosFile, iosFileContents.join('\n'));
+}
+
function *updateJsSnapshot(repo, version) {
function *ensureJsIsBuilt() {
var cordovaJsRepo = repoutil.getRepoById('js');
@@ -133,11 +160,12 @@ exports.prepareReleaseBranchCommand = function*() {
var repos = flagutil.computeReposFromFlag(argv.r);
var branchName = null;
-
+
// First - perform precondition checks.
yield repoupdate.updateRepos(repos, [], true);
yield repoutil.forEachRepo(repos, function*(repo) {
+ var platform = repo.id;
var version = null;
@@ -155,6 +183,14 @@ exports.prepareReleaseBranchCommand = function*() {
yield gitutil.stashAndPop(repo, function*() {
// git fetch + update master
yield repoupdate.updateRepos([repo], ['master'], false);
+ if (platform === 'ios') {
+ //Updates version in CDVAvailability.h file
+ yield updateCDVAvailabilityFile(version);
+ //Git commit changes
+ if(yield gitutil.pendingChangesExist()) {
+ yield executil.execHelper(executil.ARGS('git commit -am', 'Added ' + version + ' to CDVAvailability.h (via coho).'));
+ }
+ }
// Either create or pull down the branch.
if (yield gitutil.remoteBranchExists(repo, branchName)) {
print('Remote branch already exists for repo: ' + repo.repoName);
@@ -178,28 +214,6 @@ exports.prepareReleaseBranchCommand = function*() {
yield versionutil.updateRepoVersion(repo, devVersion);
yield updateJsSnapshot(repo, devVersion);
yield gitutil.gitCheckout(branchName);
-
- print(repo.repoName + ': ' + 'Setting VERSION to "' + version + '" on branch + "4.2.x".');
- if (platform == 'ios') {
- var iosFile = path.join(__dirname, '..', '..', 'cordova-ios', 'CordovaLib', 'Classes', 'Public', 'CDVAvailability.h');
- var iosFileContents = fs.readFileSync(iosFile, 'utf8');
- iosFileContents = iosFileContents.split('\n');
-
- var lineNumberToInsertLine = iosFileContents.indexOf('/* coho:next-version,insert-before */') - 1;
- var lineNumberToReplaceLine = iosFileContents.indexOf(' /* coho:next-version-min-required,replace-after */') + 2;
-
-
- var versionNumberUnderscores = version.split('.').join('_');
- var versionNumberZeroes = version.split('.').join('0');
-
- var lineToAdd = util.format('#define __CORDOVA_%s %s', versionNumberUnderscores, versionNumberZeroes);
- var lineToReplace = util.format(' #define CORDOVA_VERSION_MIN_REQUIRED __CORDOVA_%s', versionNumberUnderscores);
-
- iosFileContents.splice(lineNumberToInsertLine, 0, lineToAdd);
- iosFileContents[lineNumberToReplaceLine] = lineToReplace;
-
- fs.writeFileSync(iosFile, iosFileContents.join('\n'));
- }
});
});
executil.reportGitPushResult(repos, ['master', branchName]);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[03/14] cordova-coho git commit: Add github pull request template
Posted by st...@apache.org.
Add github pull request template
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/bd847121
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/bd847121
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/bd847121
Branch: refs/heads/master
Commit: bd8471212f2393f715ac1454fae55563cf87ecfb
Parents: 5dc464b
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Oct 4 22:16:57 2016 -0700
Committer: audreyso <au...@adobe.com>
Committed: Fri Oct 14 17:01:22 2016 -0700
----------------------------------------------------------------------
.github/PULL_REQUEST_TEMPLATE.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/bd847121/.github/PULL_REQUEST_TEMPLATE.md
----------------------------------------------------------------------
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..91582f4
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,22 @@
+<!--
+Please make sure the checklist boxes are all checked before submitting the PR. The checklist
+is intended as a quick reference, for complete details please see our Contributor Guidelines:
+
+http://cordova.apache.org/contribute/contribute_guidelines.html
+
+Thanks!
+-->
+
+### Platforms affected
+
+
+### What does this PR do?
+
+
+### What testing has been done on this change?
+
+
+### Checklist
+- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
+- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
+- [ ] Added automated test coverage as appropriate for this change.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org