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

erisu 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 6375e78  feat: remove deprecated platform osx (#309)
6375e78 is described below

commit 6375e7829b3292db87144851cd61d07b404e1fca
Author: エリス <[email protected]>
AuthorDate: Mon May 15 08:44:04 2023 +0900

    feat: remove deprecated platform osx (#309)
---
 docs/storing-repo-versions-design.md |  1 -
 src/platform-release.js              | 10 +++-------
 src/repoutil.js                      |  7 -------
 3 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/docs/storing-repo-versions-design.md 
b/docs/storing-repo-versions-design.md
index a44eef7..993752d 100644
--- a/docs/storing-repo-versions-design.md
+++ b/docs/storing-repo-versions-design.md
@@ -87,7 +87,6 @@ Current support:
     ||'''Platform'''||'''Support'''||
     ||Android       || {*}         ||
     ||iOS           || {o}         ||
-    ||OSX           || {o}         ||
     ||Tizen         || {o}         ||
     ||WebOS         || {o}         ||
     ||Win           || {o}         ||
diff --git a/src/platform-release.js b/src/platform-release.js
index 67eabdf..2786551 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -103,14 +103,10 @@ function configureReleaseCommandFlags (_opt) {
 
 let hasBuiltJs = '';
 
-// Adds the version to CDVAvailability.h for iOS or OSX
+// Adds the version to CDVAvailability.h for iOS
 function * updateCDVAvailabilityFile (version, platform) {
     // Default to iOS
-    let file = path.join(process.cwd(), 'CordovaLib', 'Classes', 'Public', 
'CDVAvailability.h');
-
-    if (platform === 'osx') {
-        file = path.join(process.cwd(), 'CordovaLib', 'CordovaLib', 'Classes', 
'Commands', 'CDVAvailability.h');
-    }
+    const file = path.join(process.cwd(), 'CordovaLib', 'Classes', 'Public', 
'CDVAvailability.h');
 
     let fileContents = fs.readFileSync(file, 'utf8');
     fileContents = fileContents.split('\n');
@@ -217,7 +213,7 @@ exports.prepareReleaseBranchCommand = function * () {
         yield gitutil.stashAndPop(repo, function * () {
             // git fetch + update master
             yield repoupdate.updateRepos([repo], ['master'], false);
-            if (platform === 'ios' || platform === 'osx') {
+            if (platform === 'ios') {
                 // Updates version in CDVAvailability.h file
                 yield updateCDVAvailabilityFile(version, platform);
                 // Git commit changes
diff --git a/src/repoutil.js b/src/repoutil.js
index a8b1e2b..a908818 100644
--- a/src/repoutil.js
+++ b/src/repoutil.js
@@ -38,13 +38,6 @@ const platformRepos = [
         jiraComponentName: 'cordova-ios',
         cordovaJsPaths: ['CordovaLib/cordova.js'],
         versionFilePaths: [path.join('CordovaLib', 'VERSION')]
-    }, {
-        title: 'Mac OSX',
-        id: 'osx',
-        repoName: 'cordova-osx',
-        jiraComponentName: 'cordova-osx',
-        cordovaJsPaths: ['CordovaLib/cordova.js'],
-        versionFilePaths: [path.join('CordovaLib', 'VERSION')]
     }, {
         title: 'Ubuntu',
         id: 'ubuntu',


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to