react-native-zeroconf 1.0.0-rc.1 → 1.0.0-rc.2

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.
Files changed (2) hide show
  1. package/Package.swift +51 -0
  2. package/package.json +2 -1
package/Package.swift ADDED
@@ -0,0 +1,51 @@
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
+ // Same sources as the podspec: the C++ module, its Apple registration and the
9
+ // codegen output shipped in ios/generated.
10
+ let package = Package(
11
+ name: "ReactNativeZeroconf",
12
+ platforms: [.iOS(.v15)],
13
+ products: [
14
+ .library(name: "ReactNativeZeroconf", targets: ["ReactNativeZeroconf"]),
15
+ ],
16
+ dependencies: [
17
+ .package(name: "ReactNative", path: "../../../../xcframeworks"),
18
+ .package(name: "React-GeneratedCode", path: "../../../ios"),
19
+ ],
20
+ targets: [
21
+ .target(
22
+ name: "ReactNativeZeroconf",
23
+ dependencies: [
24
+ .product(name: "ReactHeaders", package: "ReactNative"),
25
+ .product(name: "ReactNativeHeaders", package: "ReactNative"),
26
+ .product(name: "ReactNativeDependenciesHeaders", package: "ReactNative"),
27
+ .product(name: "ReactAppHeaders", package: "React-GeneratedCode"),
28
+ ],
29
+ path: ".",
30
+ sources: [
31
+ "cpp/Backend.cpp",
32
+ "cpp/ZeroconfModule.cpp",
33
+ "cpp/apple",
34
+ "cpp/dnssd",
35
+ "ios",
36
+ ],
37
+ publicHeadersPath: "ios/generated/ReactCodegen",
38
+ cxxSettings: [
39
+ .headerSearchPath("ios/generated/ReactCodegen"),
40
+ // Match the NDEBUG-gated C++ ABI of the prebuilt React Native frameworks
41
+ .define("DEBUG", .when(configuration: .debug)),
42
+ .define("NDEBUG", .when(configuration: .release)),
43
+ ],
44
+ linkerSettings: [
45
+ .linkedFramework("Foundation"),
46
+ .linkedFramework("Network"),
47
+ ]
48
+ ),
49
+ ],
50
+ cxxLanguageStandard: .cxx20
51
+ )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zeroconf",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "A Zeroconf discovery utility for react-native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -76,6 +76,7 @@
76
76
  "ios/generated",
77
77
  "cpp",
78
78
  "react-native-zeroconf.podspec",
79
+ "Package.swift",
79
80
  "NOTICE",
80
81
  "react-native.config.js"
81
82
  ],