Skip to content

tryadelion/cordova-plugin-add-swift-support

This branch is 1 commit ahead of, 19 commits behind akofman/cordova-plugin-add-swift-support:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bbf244d · Aug 14, 2017

History

49 Commits
Jul 7, 2017
Mar 4, 2016
Oct 7, 2016
Jan 10, 2017
Jan 10, 2017
Oct 7, 2016
Jul 28, 2017
Mar 2, 2016
Jul 7, 2017
Jul 7, 2017
Jul 7, 2017
Aug 14, 2017
Jan 10, 2017

Repository files navigation

cordova-plugin-add-swift-support Build Status npm

swift-128x128

This Cordova plugin adds the Swift support to your iOS project.

Installation

You can add this plugin directly to your project:

cordova plugin add cordova-plugin-add-swift-support --save

Or add it as a dependency into your own plugin:

<dependency id="cordova-plugin-add-swift-support" version="1.6.1"/>

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

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

Or it is possible to specify the version as following:

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

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.

If the cordova-plugin-add-swift-support plugin is already installed to your project, then you can add your own Swift plugin as usual, its prefixed Bridging-Header will be automatically found and merged.

Contributing

The src folder contains ECMAScript 2015 source files. This project is built and bundled using Babel and Webpack.

License

Apache-2.0 © Alexis Kofman

About

🔨 Swiftify your Cordova app !

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%