Skip to content

Commit

Permalink
refactor: update tooling, add support for Cordova v9
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 authored and akofman committed Apr 1, 2019
1 parent a0bae0d commit a704f2c
Show file tree
Hide file tree
Showing 12 changed files with 1,624 additions and 13,025 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "standard",
"rules": {
"semi": [2, "always"]
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
npm-debug.log
*.orig
*.orig
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
sudo: false
node_js:
- "4"
- "6"
- "8"
- "10"
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![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)]()

# cordova-plugin-add-swift-support
# cordova-plugin-add-swift-support

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

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

`<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, inside the project's `config.xml`, within the `<platform name="ios">` section:
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:

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

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

`<preference name="UseSwiftLanguageVersion" value="4" />`
`<preference name="UseSwiftLanguageVersion" value="5" />`

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

## Contributing

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

## License

Expand Down
Loading

0 comments on commit a704f2c

Please sign in to comment.