Skip to content

Commit

Permalink
bumps version to 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akofman committed Mar 30, 2018
1 parent b769831 commit 1a5cb44
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can add this plugin directly to your project:

Or add it as a dependency into your own plugin:

`<dependency id="cordova-plugin-add-swift-support" version="1.7.1"/>`
`<dependency id="cordova-plugin-add-swift-support" version="1.7.2"/>`

By default, the Swift 3 support is added but the legacy version (2.3) can still be configured as a preference:

Expand Down
5 changes: 4 additions & 1 deletion add-swift-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -12922,10 +12922,13 @@ var getPlatformVersionsFromFileSystem = function getPlatformVersionsFromFileSyst
var platformsOnFs = cordovaUtil.listPlatforms(projectRoot);
var platformVersions = platformsOnFs.map(function (platform) {
var script = _path2.default.join(projectRoot, 'platforms', platform, 'cordova', 'version');
return Q.ninvoke(_child_process2.default, 'exec', script, {}).then(function (result) {
return Q.ninvoke(_child_process2.default, 'exec', '"' + script + '"', {}).then(function (result) {
var version = result[0];
var versionCleaned = version.replace(/\r?\n|\r/g, '');
return { platform: platform, version: versionCleaned };
}, function (error) {
console.log(error);
process.exit(1);
});
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-add-swift-support",
"version": "1.7.1",
"version": "1.7.2",
"description": "Add Swift support to your iOS plugins",
"homepage": "https://github.com/akofman/cordova-plugin-add-swift-support",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-add-swift-support"
version="1.7.1" >
version="1.7.2" >

<name>AddSwiftSupport</name>
<license>Apache 2.0</license>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const getPlatformVersionsFromFileSystem = (context, projectRoot) => {
const platformsOnFs = cordovaUtil.listPlatforms(projectRoot);
const platformVersions = platformsOnFs.map((platform) => {
const script = path.join(projectRoot, 'platforms', platform, 'cordova', 'version');
return Q.ninvoke(childProcess, 'exec', '"' + script + '"', {}).then((result) => {
return Q.ninvoke(childProcess, 'exec', `"${script}"`, {}).then((result) => {
const version = result[0];
const versionCleaned = version.replace(/\r?\n|\r/g, '');
return {platform: platform, version: versionCleaned};
Expand Down

0 comments on commit 1a5cb44

Please sign in to comment.