react-native-zeroconf 0.17.3 → 0.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Package.swift +35 -0
- package/README.md +2 -0
- package/package.json +2 -1
package/Package.swift
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swift-tools-version: 6.0
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
// Swift Package Manager support for React Native's SwiftPM autolinking
|
|
5
|
+
// (react-native >= 0.87). CocoaPods users are unaffected; see the podspec.
|
|
6
|
+
// The two React Native packages are resolved by the autolinker relative to
|
|
7
|
+
// build/generated/autolinking/libs/ReactNativeZeroconf in the app.
|
|
8
|
+
let package = Package(
|
|
9
|
+
name: "ReactNativeZeroconf",
|
|
10
|
+
platforms: [.iOS(.v15)],
|
|
11
|
+
products: [
|
|
12
|
+
.library(name: "ReactNativeZeroconf", targets: ["ReactNativeZeroconf"]),
|
|
13
|
+
],
|
|
14
|
+
dependencies: [
|
|
15
|
+
.package(name: "ReactNative", path: "../../../../xcframeworks"),
|
|
16
|
+
.package(name: "React-GeneratedCode", path: "../../../ios"),
|
|
17
|
+
],
|
|
18
|
+
targets: [
|
|
19
|
+
.target(
|
|
20
|
+
name: "ReactNativeZeroconf",
|
|
21
|
+
dependencies: [
|
|
22
|
+
.product(name: "ReactHeaders", package: "ReactNative"),
|
|
23
|
+
.product(name: "ReactNativeHeaders", package: "ReactNative"),
|
|
24
|
+
.product(name: "ReactNativeDependenciesHeaders", package: "ReactNative"),
|
|
25
|
+
.product(name: "ReactAppHeaders", package: "React-GeneratedCode"),
|
|
26
|
+
],
|
|
27
|
+
path: "ios/RNZeroconf",
|
|
28
|
+
publicHeadersPath: ".",
|
|
29
|
+
linkerSettings: [
|
|
30
|
+
.linkedFramework("Foundation"),
|
|
31
|
+
.linkedFramework("Network"),
|
|
32
|
+
]
|
|
33
|
+
),
|
|
34
|
+
]
|
|
35
|
+
)
|
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ yarn add react-native-zeroconf
|
|
|
21
21
|
cd ios && pod install
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
> **1.0 release candidate:** one C++ native module on every platform, for React Native 0.82 and later (New Architecture, Expo SDK 55 and later). Try it with `npm install react-native-zeroconf@next`, see [what changes from 0.17](https://zeroconf.balthazar.dev/Migrating-to-1.0). The documentation covers 0.17, which stays the default and keeps getting bug fixes.
|
|
25
|
+
|
|
24
26
|
On iOS, declare the service types you use in `NSBonjourServices`, see [Permissions and Setup](https://zeroconf.balthazar.dev/Permissions-and-Setup). Expo works with development builds, see [Installation with Expo](https://zeroconf.balthazar.dev/Installation-Expo).
|
|
25
27
|
|
|
26
28
|
## Usage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-zeroconf",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"description": "A Zeroconf discovery utility for react-native",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"!windows/**/Generated Files",
|
|
66
66
|
"ios",
|
|
67
67
|
"react-native-zeroconf.podspec",
|
|
68
|
+
"Package.swift",
|
|
68
69
|
"NOTICE"
|
|
69
70
|
],
|
|
70
71
|
"keywords": [
|