You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/11/24 10:30:16 UTC

[cordova-coho] branch master updated: chore(versionutil): remove unsupported platforms (#251)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git


The following commit(s) were added to refs/heads/master by this push:
     new 387d675  chore(versionutil): remove unsupported platforms (#251)
387d675 is described below

commit 387d675bf01d5acf2640797b29212e41db53bb4d
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Sun Nov 24 11:30:07 2019 +0100

    chore(versionutil): remove unsupported platforms (#251)
    
    Removes code for unsupported platforms from versionutil.js
    
    Addresses part of #211
---
 src/versionutil.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/versionutil.js b/src/versionutil.js
index 2d03e12..364f7ca 100644
--- a/src/versionutil.js
+++ b/src/versionutil.js
@@ -98,7 +98,7 @@ exports.updateRepoVersion = function * updateRepoVersion (repo, version, opts) {
             fs.writeFileSync(versionFilePath, version + '\n');
         });
         shelljs.config.fatal = true;
-        if (repo.id === 'android' || repo.id === 'amazon-fireos') {
+        if (repo.id === 'android') {
             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
@@ -107,10 +107,6 @@ exports.updateRepoVersion = function * updateRepoVersion (repo, version, opts) {
             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') {
-            shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'project', 'cordova', 'lib', 'version.js'));
-        } else if (repo.id === 'firefoxos' || repo.id === 'ubuntu') {
-            shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'project', 'cordova', 'version'));
         } else if (repo.id === 'windows') {
             if (fs.existsSync(path.join('template', 'cordova', 'version'))) {
                 shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('template', 'cordova', 'version'));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org