Skip to content

Commit

Permalink
swiftifying
Browse files Browse the repository at this point in the history
  • Loading branch information
becvert committed Jun 10, 2016
1 parent 66cd978 commit f5d2a77
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 54 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ In your application project directory:
cordova plugin add cordova-plugin-zeroconf
```

#### iOS
It's written in Swift, not objective-c.

In the build settings of your project:

```Embedded Content Contains Swift Code: YES```

```Objective-C Bridging Header: YOUR_PROJECT/Bridging-Header.h```
Insert the content of the ZeroConf-Bridging-Header.h file in it.

```Runpath Search Paths: @executable_path/Frameworks```

```Other swift flags: -D DEBUG``` optional. for debugging purpose.

## Usage ##

```javascript
Expand Down
78 changes: 39 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
{
"name" : "cordova-plugin-zeroconf",
"version" : "1.1.1",
"description" : "Cordova ZeroConf plugin",
"cordova" : {
"id" : "cordova-plugin-zeroconf",
"platforms" : [
"android",
"ios"
]
},
"repository" : {
"type" : "git",
"url" : "git+https://github.com/becvert/cordova-plugin-zeroconf.git"
},
"keywords" : [
"ecosystem:cordova",
"cordova-android",
"cordova-ios",
"cordova",
"plugin",
"network",
"zeroconf",
"bonjour",
"mdns",
"service",
"discovery"
],
"engines" : [
{
"name" : "cordova",
"version" : ">=3.0.0"
}
],
"author" : "Sylvain Brejeon",
"license" : "MIT",
"bugs" : {
"url" : "https://github.com/becvert/cordova-plugin-zeroconf/issues"
},
"homepage" : "https://github.com/becvert/cordova-plugin-zeroconf"
"name" : "cordova-plugin-zeroconf",
"version" : "1.1.2",
"description" : "Cordova ZeroConf plugin",
"cordova" : {
"id" : "cordova-plugin-zeroconf",
"platforms" : [
"android",
"ios"
]
},
"repository" : {
"type" : "git",
"url" : "git+https://github.com/becvert/cordova-plugin-zeroconf.git"
},
"keywords" : [
"ecosystem:cordova",
"cordova-android",
"cordova-ios",
"cordova",
"plugin",
"network",
"zeroconf",
"bonjour",
"mdns",
"service",
"discovery"
],
"engines" : [
{
"name" : "cordova",
"version" : ">=3.0.0"
}
],
"author" : "Sylvain Brejeon",
"license" : "MIT",
"bugs" : {
"url" : "https://github.com/becvert/cordova-plugin-zeroconf/issues"
},
"homepage" : "https://github.com/becvert/cordova-plugin-zeroconf"
}
4 changes: 3 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-zeroconf"
version="1.1.1">
version="1.1.2">
<name>ZeroConf</name>
<description>ZeroConf plugin for Cordova/Phonegap</description>
<author>Sylvain Brejeon</author>
Expand Down Expand Up @@ -42,5 +42,7 @@
<header-file src="src/ios/ZeroConf-Bridging-Header.h" />
<source-file src="src/ios/ZeroConf.swift" />
</platform>

<dependency id="cordova-plugin-add-swift-support" url="https://github.com/akofman/cordova-plugin-add-swift-support"/>

</plugin>

1 comment on commit f5d2a77

@becvert
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#9

Please sign in to comment.