react-native-zeroconf 0.17.4 → 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 (115) hide show
  1. package/NOTICE +2 -6
  2. package/Package.swift +19 -3
  3. package/README.md +1 -3
  4. package/android/CMakeLists.txt +64 -0
  5. package/android/build.gradle +1 -17
  6. package/android/generated/java/com/balthazargronon/RCTZeroconf/NativeZeroconfSpec.java +96 -0
  7. package/android/generated/jni/CMakeLists.txt +28 -0
  8. package/android/generated/jni/RNZeroconfSpec-generated.cpp +77 -0
  9. package/android/generated/jni/RNZeroconfSpec.h +31 -0
  10. package/android/generated/jni/react/renderer/components/RNZeroconfSpec/RNZeroconfSpecJSI.h +798 -0
  11. package/android/src/main/java/com/balthazargronon/RCTZeroconf/{ZeroconfModule.java → NsdHost.java} +97 -140
  12. package/android/src/main/java/com/balthazargronon/RCTZeroconf/NsdPayload.java +87 -0
  13. package/android/src/main/java/com/balthazargronon/RCTZeroconf/NsdPromise.java +40 -0
  14. package/android/src/main/java/com/balthazargronon/RCTZeroconf/Zeroconf.java +4 -6
  15. package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroconfNativeSupport.java +60 -0
  16. package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroconfOptions.java +15 -26
  17. package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroconfReactPackage.java +5 -15
  18. package/android/src/main/java/com/balthazargronon/RCTZeroconf/nsd/NsdServiceImpl.java +90 -96
  19. package/android/src/main/jni/mdnsresponder/mDNSShared/dnssd_clientshim.c +31 -6
  20. package/cpp/Backend.cpp +16 -0
  21. package/cpp/Backend.h +116 -0
  22. package/cpp/ZeroconfModule.cpp +280 -0
  23. package/cpp/ZeroconfModule.h +144 -0
  24. package/cpp/android/NsdBackend.cpp +462 -0
  25. package/cpp/android/NsdBackend.h +61 -0
  26. package/cpp/android/ZeroconfAndroidModule.cpp +49 -0
  27. package/cpp/android/ZeroconfAndroidModule.h +15 -0
  28. package/cpp/apple/DispatchExecutor.cpp +66 -0
  29. package/cpp/apple/DispatchExecutor.h +37 -0
  30. package/cpp/apple/LocalNetworkAccess.h +19 -0
  31. package/cpp/apple/LocalNetworkAccess.mm +87 -0
  32. package/cpp/dnssd/DnssdBackend.cpp +976 -0
  33. package/cpp/dnssd/DnssdBackend.h +114 -0
  34. package/cpp/dnssd/Executor.h +28 -0
  35. package/cpp/embedded/EmbeddedExecutor.cpp +124 -0
  36. package/cpp/embedded/EmbeddedExecutor.h +57 -0
  37. package/ios/ZeroconfOnLoad.mm +34 -0
  38. package/ios/generated/ReactCodegen/RNZeroconfSpec/RNZeroconfSpec-generated.mm +140 -0
  39. package/ios/generated/ReactCodegen/RNZeroconfSpec/RNZeroconfSpec.h +189 -0
  40. package/ios/generated/ReactCodegen/RNZeroconfSpecJSI.h +798 -0
  41. package/lib/module/NativeZeroconf.js +15 -0
  42. package/lib/module/NativeZeroconf.js.map +1 -0
  43. package/lib/module/bridge.js +124 -0
  44. package/lib/module/bridge.js.map +1 -0
  45. package/{dist → lib/module}/index.js +149 -149
  46. package/lib/module/index.js.map +1 -0
  47. package/lib/module/package.json +1 -0
  48. package/lib/module/types.js +24 -0
  49. package/lib/module/types.js.map +1 -0
  50. package/lib/typescript/package.json +1 -0
  51. package/lib/typescript/src/NativeZeroconf.d.ts +75 -0
  52. package/lib/typescript/src/NativeZeroconf.d.ts.map +1 -0
  53. package/lib/typescript/src/bridge.d.ts +22 -0
  54. package/lib/typescript/src/bridge.d.ts.map +1 -0
  55. package/lib/typescript/src/index.d.ts +111 -0
  56. package/lib/typescript/src/index.d.ts.map +1 -0
  57. package/lib/typescript/src/types.d.ts +175 -0
  58. package/lib/typescript/src/types.d.ts.map +1 -0
  59. package/package.json +64 -29
  60. package/react-native-zeroconf.podspec +2 -1
  61. package/react-native.config.js +17 -0
  62. package/src/NativeZeroconf.ts +120 -0
  63. package/src/bridge.ts +153 -0
  64. package/src/index.ts +607 -0
  65. package/{index.d.ts → src/types.ts} +5 -99
  66. package/windows/RNZeroconf/RNZeroconf.vcxproj +17 -2
  67. package/windows/RNZeroconf/RNZeroconf.vcxproj.filters +0 -6
  68. package/windows/RNZeroconf/ReactPackageProvider.cpp +23 -20
  69. package/windows/RNZeroconf/WindowsBackend.cpp +156 -0
  70. package/windows/RNZeroconf/WindowsBackend.h +13 -0
  71. package/windows/RNZeroconf/ZeroconfCore.cpp +2 -2
  72. package/windows/RNZeroconf/ZeroconfCore.h +2 -2
  73. package/windows/RNZeroconf/ZeroconfWindowsModule.cpp +22 -0
  74. package/windows/RNZeroconf/ZeroconfWindowsModule.h +14 -0
  75. package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroConfImplFactory.java +0 -56
  76. package/android/src/main/java/com/balthazargronon/RCTZeroconf/dnssd/DnssdImpl.java +0 -654
  77. package/android/src/main/java/com/github/druk/dnssd/BaseListener.java +0 -33
  78. package/android/src/main/java/com/github/druk/dnssd/BrowseListener.java +0 -67
  79. package/android/src/main/java/com/github/druk/dnssd/DNSRecord.java +0 -47
  80. package/android/src/main/java/com/github/druk/dnssd/DNSSD.java +0 -681
  81. package/android/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java +0 -198
  82. package/android/src/main/java/com/github/druk/dnssd/DNSSDException.java +0 -66
  83. package/android/src/main/java/com/github/druk/dnssd/DNSSDRecordRegistrar.java +0 -55
  84. package/android/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java +0 -54
  85. package/android/src/main/java/com/github/druk/dnssd/DNSSDService.java +0 -35
  86. package/android/src/main/java/com/github/druk/dnssd/DomainListener.java +0 -57
  87. package/android/src/main/java/com/github/druk/dnssd/InternalBrowseListener.java +0 -76
  88. package/android/src/main/java/com/github/druk/dnssd/InternalDNSSD.java +0 -870
  89. package/android/src/main/java/com/github/druk/dnssd/InternalDNSSDRecordRegistrar.java +0 -30
  90. package/android/src/main/java/com/github/druk/dnssd/InternalDNSSDRegistration.java +0 -34
  91. package/android/src/main/java/com/github/druk/dnssd/InternalDNSSDService.java +0 -29
  92. package/android/src/main/java/com/github/druk/dnssd/InternalDomainListener.java +0 -62
  93. package/android/src/main/java/com/github/druk/dnssd/InternalQueryListener.java +0 -61
  94. package/android/src/main/java/com/github/druk/dnssd/InternalRegisterListener.java +0 -51
  95. package/android/src/main/java/com/github/druk/dnssd/InternalResolveListener.java +0 -58
  96. package/android/src/main/java/com/github/druk/dnssd/NSClass.java +0 -16
  97. package/android/src/main/java/com/github/druk/dnssd/NSType.java +0 -58
  98. package/android/src/main/java/com/github/druk/dnssd/QueryListener.java +0 -54
  99. package/android/src/main/java/com/github/druk/dnssd/RegisterListener.java +0 -46
  100. package/android/src/main/java/com/github/druk/dnssd/RegisterRecordListener.java +0 -35
  101. package/android/src/main/java/com/github/druk/dnssd/ResolveListener.java +0 -55
  102. package/android/src/main/java/com/github/druk/dnssd/TXTRecord.java +0 -293
  103. package/android/src/main/jni/Android.mk +0 -73
  104. package/android/src/main/jni/Application.mk +0 -3
  105. package/android/src/main/jni/DNSSD.java.h +0 -290
  106. package/android/src/main/jni/JNISupport.c +0 -1221
  107. package/ios/RNZeroconf/RNNetServiceSerializer.h +0 -31
  108. package/ios/RNZeroconf/RNNetServiceSerializer.m +0 -84
  109. package/ios/RNZeroconf/RNZeroconf.h +0 -17
  110. package/ios/RNZeroconf/RNZeroconf.m +0 -1025
  111. package/ios/RNZeroconf.xcodeproj/project.pbxproj +0 -261
  112. package/ios/RNZeroconf.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  113. package/src/index.js +0 -563
  114. package/windows/RNZeroconf/RNZeroconf.cpp +0 -228
  115. package/windows/RNZeroconf/RNZeroconf.h +0 -70
@@ -1,261 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 0DE485C11BDD49E400020698 /* RNZeroconf.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0DE485C01BDD49E400020698 /* RNZeroconf.h */; };
11
- 0DE485C31BDD49E400020698 /* RNZeroconf.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DE485C21BDD49E400020698 /* RNZeroconf.m */; };
12
- F87C07121C3EF51A006811AF /* RNNetServiceSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = F87C07111C3EF51A006811AF /* RNNetServiceSerializer.m */; };
13
- /* End PBXBuildFile section */
14
-
15
- /* Begin PBXCopyFilesBuildPhase section */
16
- 0DE485BB1BDD49E400020698 /* CopyFiles */ = {
17
- isa = PBXCopyFilesBuildPhase;
18
- buildActionMask = 2147483647;
19
- dstPath = "include/$(PRODUCT_NAME)";
20
- dstSubfolderSpec = 16;
21
- files = (
22
- 0DE485C11BDD49E400020698 /* RNZeroconf.h in CopyFiles */,
23
- );
24
- runOnlyForDeploymentPostprocessing = 0;
25
- };
26
- /* End PBXCopyFilesBuildPhase section */
27
-
28
- /* Begin PBXFileReference section */
29
- 0DE485BD1BDD49E400020698 /* libRNZeroconf.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNZeroconf.a; sourceTree = BUILT_PRODUCTS_DIR; };
30
- 0DE485C01BDD49E400020698 /* RNZeroconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNZeroconf.h; sourceTree = "<group>"; };
31
- 0DE485C21BDD49E400020698 /* RNZeroconf.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNZeroconf.m; sourceTree = "<group>"; };
32
- F87C07101C3EF51A006811AF /* RNNetServiceSerializer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNetServiceSerializer.h; sourceTree = "<group>"; };
33
- F87C07111C3EF51A006811AF /* RNNetServiceSerializer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNetServiceSerializer.m; sourceTree = "<group>"; };
34
- /* End PBXFileReference section */
35
-
36
- /* Begin PBXFrameworksBuildPhase section */
37
- 0DE485BA1BDD49E400020698 /* Frameworks */ = {
38
- isa = PBXFrameworksBuildPhase;
39
- buildActionMask = 2147483647;
40
- files = (
41
- );
42
- runOnlyForDeploymentPostprocessing = 0;
43
- };
44
- /* End PBXFrameworksBuildPhase section */
45
-
46
- /* Begin PBXGroup section */
47
- 0DE485B41BDD49E400020698 = {
48
- isa = PBXGroup;
49
- children = (
50
- 0DE485BF1BDD49E400020698 /* RNZeroconf */,
51
- 0DE485BE1BDD49E400020698 /* Products */,
52
- );
53
- sourceTree = "<group>";
54
- };
55
- 0DE485BE1BDD49E400020698 /* Products */ = {
56
- isa = PBXGroup;
57
- children = (
58
- 0DE485BD1BDD49E400020698 /* libRNZeroconf.a */,
59
- );
60
- name = Products;
61
- sourceTree = "<group>";
62
- };
63
- 0DE485BF1BDD49E400020698 /* RNZeroconf */ = {
64
- isa = PBXGroup;
65
- children = (
66
- 0DE485C01BDD49E400020698 /* RNZeroconf.h */,
67
- 0DE485C21BDD49E400020698 /* RNZeroconf.m */,
68
- F87C07101C3EF51A006811AF /* RNNetServiceSerializer.h */,
69
- F87C07111C3EF51A006811AF /* RNNetServiceSerializer.m */,
70
- );
71
- path = RNZeroconf;
72
- sourceTree = "<group>";
73
- };
74
- /* End PBXGroup section */
75
-
76
- /* Begin PBXNativeTarget section */
77
- 0DE485BC1BDD49E400020698 /* RNZeroconf */ = {
78
- isa = PBXNativeTarget;
79
- buildConfigurationList = 0DE485C61BDD49E400020698 /* Build configuration list for PBXNativeTarget "RNZeroconf" */;
80
- buildPhases = (
81
- 0DE485B91BDD49E400020698 /* Sources */,
82
- 0DE485BA1BDD49E400020698 /* Frameworks */,
83
- 0DE485BB1BDD49E400020698 /* CopyFiles */,
84
- );
85
- buildRules = (
86
- );
87
- dependencies = (
88
- );
89
- name = RNZeroconf;
90
- productName = RNZeroconf;
91
- productReference = 0DE485BD1BDD49E400020698 /* libRNZeroconf.a */;
92
- productType = "com.apple.product-type.library.static";
93
- };
94
- /* End PBXNativeTarget section */
95
-
96
- /* Begin PBXProject section */
97
- 0DE485B51BDD49E400020698 /* Project object */ = {
98
- isa = PBXProject;
99
- attributes = {
100
- LastUpgradeCheck = 0700;
101
- ORGANIZATIONNAME = Balthazar;
102
- TargetAttributes = {
103
- 0DE485BC1BDD49E400020698 = {
104
- CreatedOnToolsVersion = 7.0.1;
105
- DevelopmentTeam = Q8ZB2UL5UL;
106
- };
107
- };
108
- };
109
- buildConfigurationList = 0DE485B81BDD49E400020698 /* Build configuration list for PBXProject "RNZeroconf" */;
110
- compatibilityVersion = "Xcode 3.2";
111
- developmentRegion = English;
112
- hasScannedForEncodings = 0;
113
- knownRegions = (
114
- en,
115
- );
116
- mainGroup = 0DE485B41BDD49E400020698;
117
- productRefGroup = 0DE485BE1BDD49E400020698 /* Products */;
118
- projectDirPath = "";
119
- projectRoot = "";
120
- targets = (
121
- 0DE485BC1BDD49E400020698 /* RNZeroconf */,
122
- );
123
- };
124
- /* End PBXProject section */
125
-
126
- /* Begin PBXSourcesBuildPhase section */
127
- 0DE485B91BDD49E400020698 /* Sources */ = {
128
- isa = PBXSourcesBuildPhase;
129
- buildActionMask = 2147483647;
130
- files = (
131
- 0DE485C31BDD49E400020698 /* RNZeroconf.m in Sources */,
132
- F87C07121C3EF51A006811AF /* RNNetServiceSerializer.m in Sources */,
133
- );
134
- runOnlyForDeploymentPostprocessing = 0;
135
- };
136
- /* End PBXSourcesBuildPhase section */
137
-
138
- /* Begin XCBuildConfiguration section */
139
- 0DE485C41BDD49E400020698 /* Debug */ = {
140
- isa = XCBuildConfiguration;
141
- buildSettings = {
142
- ALWAYS_SEARCH_USER_PATHS = NO;
143
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
144
- CLANG_CXX_LIBRARY = "libc++";
145
- CLANG_ENABLE_MODULES = YES;
146
- CLANG_ENABLE_OBJC_ARC = YES;
147
- CLANG_WARN_BOOL_CONVERSION = YES;
148
- CLANG_WARN_CONSTANT_CONVERSION = YES;
149
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
150
- CLANG_WARN_EMPTY_BODY = YES;
151
- CLANG_WARN_ENUM_CONVERSION = YES;
152
- CLANG_WARN_INT_CONVERSION = YES;
153
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154
- CLANG_WARN_UNREACHABLE_CODE = YES;
155
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
156
- COPY_PHASE_STRIP = NO;
157
- DEBUG_INFORMATION_FORMAT = dwarf;
158
- ENABLE_STRICT_OBJC_MSGSEND = YES;
159
- ENABLE_TESTABILITY = YES;
160
- GCC_C_LANGUAGE_STANDARD = gnu99;
161
- GCC_DYNAMIC_NO_PIC = NO;
162
- GCC_NO_COMMON_BLOCKS = YES;
163
- GCC_OPTIMIZATION_LEVEL = 0;
164
- GCC_PREPROCESSOR_DEFINITIONS = (
165
- "DEBUG=1",
166
- "$(inherited)",
167
- );
168
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
169
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
170
- GCC_WARN_UNDECLARED_SELECTOR = YES;
171
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
172
- GCC_WARN_UNUSED_FUNCTION = YES;
173
- GCC_WARN_UNUSED_VARIABLE = YES;
174
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
175
- MTL_ENABLE_DEBUG_INFO = YES;
176
- ONLY_ACTIVE_ARCH = YES;
177
- SDKROOT = iphoneos;
178
- };
179
- name = Debug;
180
- };
181
- 0DE485C51BDD49E400020698 /* Release */ = {
182
- isa = XCBuildConfiguration;
183
- buildSettings = {
184
- ALWAYS_SEARCH_USER_PATHS = NO;
185
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
186
- CLANG_CXX_LIBRARY = "libc++";
187
- CLANG_ENABLE_MODULES = YES;
188
- CLANG_ENABLE_OBJC_ARC = YES;
189
- CLANG_WARN_BOOL_CONVERSION = YES;
190
- CLANG_WARN_CONSTANT_CONVERSION = YES;
191
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
192
- CLANG_WARN_EMPTY_BODY = YES;
193
- CLANG_WARN_ENUM_CONVERSION = YES;
194
- CLANG_WARN_INT_CONVERSION = YES;
195
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
196
- CLANG_WARN_UNREACHABLE_CODE = YES;
197
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
198
- COPY_PHASE_STRIP = NO;
199
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
200
- ENABLE_NS_ASSERTIONS = NO;
201
- ENABLE_STRICT_OBJC_MSGSEND = YES;
202
- GCC_C_LANGUAGE_STANDARD = gnu99;
203
- GCC_NO_COMMON_BLOCKS = YES;
204
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
205
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
206
- GCC_WARN_UNDECLARED_SELECTOR = YES;
207
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
208
- GCC_WARN_UNUSED_FUNCTION = YES;
209
- GCC_WARN_UNUSED_VARIABLE = YES;
210
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
211
- MTL_ENABLE_DEBUG_INFO = NO;
212
- SDKROOT = iphoneos;
213
- VALIDATE_PRODUCT = YES;
214
- };
215
- name = Release;
216
- };
217
- 0DE485C71BDD49E400020698 /* Debug */ = {
218
- isa = XCBuildConfiguration;
219
- buildSettings = {
220
- HEADER_SEARCH_PATHS = "$(SRCROOT)/../../React/**";
221
- OTHER_LDFLAGS = "-ObjC";
222
- PRODUCT_NAME = "$(TARGET_NAME)";
223
- SKIP_INSTALL = YES;
224
- };
225
- name = Debug;
226
- };
227
- 0DE485C81BDD49E400020698 /* Release */ = {
228
- isa = XCBuildConfiguration;
229
- buildSettings = {
230
- HEADER_SEARCH_PATHS = "$(SRCROOT)/../../React/**";
231
- OTHER_LDFLAGS = "-ObjC";
232
- PRODUCT_NAME = "$(TARGET_NAME)";
233
- SKIP_INSTALL = YES;
234
- };
235
- name = Release;
236
- };
237
- /* End XCBuildConfiguration section */
238
-
239
- /* Begin XCConfigurationList section */
240
- 0DE485B81BDD49E400020698 /* Build configuration list for PBXProject "RNZeroconf" */ = {
241
- isa = XCConfigurationList;
242
- buildConfigurations = (
243
- 0DE485C41BDD49E400020698 /* Debug */,
244
- 0DE485C51BDD49E400020698 /* Release */,
245
- );
246
- defaultConfigurationIsVisible = 0;
247
- defaultConfigurationName = Release;
248
- };
249
- 0DE485C61BDD49E400020698 /* Build configuration list for PBXNativeTarget "RNZeroconf" */ = {
250
- isa = XCConfigurationList;
251
- buildConfigurations = (
252
- 0DE485C71BDD49E400020698 /* Debug */,
253
- 0DE485C81BDD49E400020698 /* Release */,
254
- );
255
- defaultConfigurationIsVisible = 0;
256
- defaultConfigurationName = Release;
257
- };
258
- /* End XCConfigurationList section */
259
- };
260
- rootObject = 0DE485B51BDD49E400020698 /* Project object */;
261
- }
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:RNZeroconf.xcodeproj">
6
- </FileRef>
7
- </Workspace>