Skip to content

Commit a704f2c

Browse files
timbru31akofman
authored andcommitted
refactor: update tooling, add support for Cordova v9
1 parent a0bae0d commit a704f2c

12 files changed

+1624
-13025
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "standard",
3+
"rules": {
4+
"semi": [2, "always"]
5+
}
6+
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
22
npm-debug.log
3-
*.orig
3+
*.orig

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "4"
54
- "6"
5+
- "8"
6+
- "10"

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![npm version](https://badge.fury.io/js/cordova-plugin-add-swift-support.svg)](https://badge.fury.io/js/cordova-plugin-add-swift-support) [![Build Status](https://travis-ci.org/akofman/cordova-plugin-add-swift-support.svg?branch=master)](https://travis-ci.org/akofman/cordova-plugin-add-swift-support) [![npm](https://img.shields.io/npm/dm/cordova-plugin-add-swift-support.svg)]()
22

3-
# cordova-plugin-add-swift-support
3+
# cordova-plugin-add-swift-support
44

55
![swift-128x128](https://cloud.githubusercontent.com/assets/579922/15999501/79196b48-3146-11e6-836e-061a7ef53571.png)
66

@@ -16,13 +16,13 @@ Or add it as a dependency into your own plugin:
1616

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

19-
By default, the Swift 3 support is added but the legacy version (2.3) can still be configured as a preference, inside the project's `config.xml`, within the `<platform name="ios">` section:
19+
By default, the Swift 4 support is added but the legacy version (2.3) can still be configured as a preference, inside the project's `config.xml`, within the `<platform name="ios">` section:
2020

2121
`<preference name="UseLegacySwiftLanguageVersion" value="true" />`
2222

2323
Or it is possible to specify the version as following, inside the project's `config.xml`, within the `<platform name="ios">` section:
2424

25-
`<preference name="UseSwiftLanguageVersion" value="4" />`
25+
`<preference name="UseSwiftLanguageVersion" value="5" />`
2626

2727
If needed, add a prefixed Bridging-Header file in your plugin in order to import frameworks (MyPlugin-Bridging-Header.h for instance).
2828
As an example you can have a look at this [plugin](https://github.com/akofman/cordova-plugin-permissionScope).
@@ -31,8 +31,7 @@ If the `cordova-plugin-add-swift-support` plugin is already installed to your pr
3131

3232
## Contributing
3333

34-
The src folder contains ECMAScript 2015 source files.
35-
This project is built and bundled using [Babel](https://babeljs.io/) and [Webpack](https://webpack.js.org/).
34+
The src folder contains ECMAScript 2015 source files, the minimum Node.js version is `6` (Boron).
3635

3736
## License
3837

0 commit comments

Comments
 (0)