react-native-zeroconf 0.16.1 → 0.17.0
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/NOTICE +0 -3
- package/README.md +1 -1
- package/android/build.gradle +0 -3
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroConfImplFactory.java +1 -1
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/Zeroconf.java +12 -2
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroconfModule.java +129 -4
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/ZeroconfOptions.java +72 -0
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/dnssd/DnssdImpl.java +633 -0
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/nsd/NsdServiceImpl.java +331 -34
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/nsd/ServiceTypesQuery.java +296 -0
- package/android/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java +1 -1
- package/android/src/main/jni/mdnsresponder/mDNSShared/dnssd_clientshim.c +59 -22
- package/dist/index.js +234 -48
- package/index.d.ts +101 -6
- package/ios/RNZeroconf/RNZeroconf.m +285 -22
- package/package.json +28 -4
- package/src/index.js +214 -44
- package/windows/ExperimentalFeatures.props +33 -0
- package/windows/NuGet.config +11 -0
- package/windows/RNZeroconf/RNZeroconf.cpp +227 -0
- package/windows/RNZeroconf/RNZeroconf.def +3 -0
- package/windows/RNZeroconf/RNZeroconf.h +70 -0
- package/windows/RNZeroconf/RNZeroconf.rc +0 -0
- package/windows/RNZeroconf/RNZeroconf.vcxproj +150 -0
- package/windows/RNZeroconf/RNZeroconf.vcxproj.filters +50 -0
- package/windows/RNZeroconf/ReactPackageProvider.cpp +20 -0
- package/windows/RNZeroconf/ReactPackageProvider.h +24 -0
- package/windows/RNZeroconf/ReactPackageProvider.idl +9 -0
- package/windows/RNZeroconf/ZeroconfCore.cpp +1042 -0
- package/windows/RNZeroconf/ZeroconfCore.h +165 -0
- package/windows/RNZeroconf/pch.cpp +1 -0
- package/windows/RNZeroconf/pch.h +30 -0
- package/windows/RNZeroconf/resource.h +5 -0
- package/windows/RNZeroconf/targetver.h +8 -0
- package/windows/RNZeroconf.sln +43 -0
- package/android/src/main/java/com/balthazargronon/RCTZeroconf/rx2dnssd/DnssdImpl.java +0 -305
- package/android/src/main/java/com/github/druk/rx2dnssd/BonjourService.java +0 -400
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2BrowseListener.java +0 -55
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2Dnssd.java +0 -127
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2DnssdCommon.java +0 -280
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2DnssdEmbedded.java +0 -31
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2QueryListener.java +0 -70
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2RegisterListener.java +0 -47
- package/android/src/main/java/com/github/druk/rx2dnssd/Rx2ResolveListener.java +0 -51
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "pch.h"
|
|
4
|
+
#include "resource.h"
|
|
5
|
+
|
|
6
|
+
#include "NativeModules.h"
|
|
7
|
+
#include "ZeroconfCore.h"
|
|
8
|
+
|
|
9
|
+
#include <memory>
|
|
10
|
+
#include <string>
|
|
11
|
+
|
|
12
|
+
namespace winrt::RNZeroconf
|
|
13
|
+
{
|
|
14
|
+
|
|
15
|
+
// The RNZeroconf native module on Windows, with the same methods and events as on iOS.
|
|
16
|
+
// The DNS-SD work is done by ZeroconfCore (windns.h).
|
|
17
|
+
REACT_MODULE(RNZeroconf)
|
|
18
|
+
struct RNZeroconf
|
|
19
|
+
{
|
|
20
|
+
REACT_INIT(Initialize)
|
|
21
|
+
void Initialize(React::ReactContext const &reactContext) noexcept;
|
|
22
|
+
|
|
23
|
+
// options: resolveTimeout, subtype, networkInterface
|
|
24
|
+
REACT_METHOD(scan)
|
|
25
|
+
void scan(std::string scanId, std::string type, std::string protocol, std::string domain, React::JSValue options) noexcept;
|
|
26
|
+
|
|
27
|
+
// An empty scanId stops every scan
|
|
28
|
+
REACT_METHOD(stop)
|
|
29
|
+
void stop(React::JSValue scanId) noexcept;
|
|
30
|
+
|
|
31
|
+
// txt: [key, value] pairs. options: subtypes, networkInterface
|
|
32
|
+
REACT_METHOD(registerService)
|
|
33
|
+
void registerService(
|
|
34
|
+
std::string type,
|
|
35
|
+
std::string protocol,
|
|
36
|
+
std::string domain,
|
|
37
|
+
std::string name,
|
|
38
|
+
int port,
|
|
39
|
+
React::JSValue txt,
|
|
40
|
+
React::JSValue options,
|
|
41
|
+
React::ReactPromise<React::JSValue> promise) noexcept;
|
|
42
|
+
|
|
43
|
+
REACT_METHOD(unregisterService)
|
|
44
|
+
void unregisterService(std::string name, React::ReactPromise<React::JSValue> promise) noexcept;
|
|
45
|
+
|
|
46
|
+
REACT_METHOD(updateService)
|
|
47
|
+
void updateService(std::string name, React::JSValue txt, React::ReactPromise<React::JSValue> promise) noexcept;
|
|
48
|
+
|
|
49
|
+
// options: timeout, networkInterface
|
|
50
|
+
REACT_METHOD(resolveService)
|
|
51
|
+
void resolveService(
|
|
52
|
+
std::string name,
|
|
53
|
+
std::string type,
|
|
54
|
+
std::string protocol,
|
|
55
|
+
std::string domain,
|
|
56
|
+
React::JSValue options,
|
|
57
|
+
React::ReactPromise<React::JSValue> promise) noexcept;
|
|
58
|
+
|
|
59
|
+
// Windows has no Local Network permission: resolves "granted"
|
|
60
|
+
REACT_METHOD(checkLocalNetworkAccess)
|
|
61
|
+
void checkLocalNetworkAccess(React::JSValue type, React::JSValue timeout, React::ReactPromise<React::JSValue> promise) noexcept;
|
|
62
|
+
|
|
63
|
+
private:
|
|
64
|
+
void Emit(std::wstring_view eventName, React::JSValueObject body) noexcept;
|
|
65
|
+
|
|
66
|
+
React::ReactContext m_context;
|
|
67
|
+
std::unique_ptr<rnzeroconf::Zeroconf> m_zeroconf;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
} // namespace winrt::RNZeroconf
|
|
Binary file
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- This project was created with react-native-windows 0.84.0 -->
|
|
3
|
+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
4
|
+
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
|
|
5
|
+
<PropertyGroup Label="Globals">
|
|
6
|
+
<CppWinRTOptimized>true</CppWinRTOptimized>
|
|
7
|
+
<MinimalCoreWin>true</MinimalCoreWin>
|
|
8
|
+
<ProjectGuid>{9C9B6A6C-3DC5-494E-BABF-9C841E7F0176}</ProjectGuid>
|
|
9
|
+
<ProjectName>RNZeroconf</ProjectName>
|
|
10
|
+
<Keyword>Win32Proj</Keyword>
|
|
11
|
+
<RootNamespace>RNZeroconf</RootNamespace>
|
|
12
|
+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
|
13
|
+
<DefaultLanguage>en-US</DefaultLanguage>
|
|
14
|
+
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
|
|
15
|
+
<AppxPackage>false</AppxPackage>
|
|
16
|
+
</PropertyGroup>
|
|
17
|
+
<PropertyGroup Label="ReactNativeWindowsProps">
|
|
18
|
+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
|
|
19
|
+
<RunAutolinkCheck>false</RunAutolinkCheck>
|
|
20
|
+
<!-- The module is registered with REACT_MODULE attributes, there is no codegen spec to generate -->
|
|
21
|
+
<RunCodegenWindows>false</RunCodegenWindows>
|
|
22
|
+
</PropertyGroup>
|
|
23
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" />
|
|
24
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
25
|
+
<ItemGroup Label="ProjectConfigurations">
|
|
26
|
+
<ProjectConfiguration Include="Debug|Win32">
|
|
27
|
+
<Configuration>Debug</Configuration>
|
|
28
|
+
<Platform>Win32</Platform>
|
|
29
|
+
</ProjectConfiguration>
|
|
30
|
+
<ProjectConfiguration Include="Release|Win32">
|
|
31
|
+
<Configuration>Release</Configuration>
|
|
32
|
+
<Platform>Win32</Platform>
|
|
33
|
+
</ProjectConfiguration>
|
|
34
|
+
<ProjectConfiguration Include="Debug|x64">
|
|
35
|
+
<Configuration>Debug</Configuration>
|
|
36
|
+
<Platform>x64</Platform>
|
|
37
|
+
</ProjectConfiguration>
|
|
38
|
+
<ProjectConfiguration Include="Release|x64">
|
|
39
|
+
<Configuration>Release</Configuration>
|
|
40
|
+
<Platform>x64</Platform>
|
|
41
|
+
</ProjectConfiguration>
|
|
42
|
+
<ProjectConfiguration Include="Debug|ARM64">
|
|
43
|
+
<Configuration>Debug</Configuration>
|
|
44
|
+
<Platform>ARM64</Platform>
|
|
45
|
+
</ProjectConfiguration>
|
|
46
|
+
<ProjectConfiguration Include="Release|ARM64">
|
|
47
|
+
<Configuration>Release</Configuration>
|
|
48
|
+
<Platform>ARM64</Platform>
|
|
49
|
+
</ProjectConfiguration>
|
|
50
|
+
</ItemGroup>
|
|
51
|
+
<PropertyGroup Label="Configuration">
|
|
52
|
+
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
53
|
+
<CharacterSet>Unicode</CharacterSet>
|
|
54
|
+
<PlatformToolset>v145</PlatformToolset>
|
|
55
|
+
<GenerateManifest>false</GenerateManifest>
|
|
56
|
+
</PropertyGroup>
|
|
57
|
+
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
|
58
|
+
<UseDebugLibraries>true</UseDebugLibraries>
|
|
59
|
+
</PropertyGroup>
|
|
60
|
+
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
|
61
|
+
<UseDebugLibraries>false</UseDebugLibraries>
|
|
62
|
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
63
|
+
</PropertyGroup>
|
|
64
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
65
|
+
<ImportGroup Label="ExtensionSettings">
|
|
66
|
+
</ImportGroup>
|
|
67
|
+
<ImportGroup Label="PropertySheets">
|
|
68
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
69
|
+
</ImportGroup>
|
|
70
|
+
<ImportGroup Label="ReactNativeWindowsPropertySheets">
|
|
71
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" />
|
|
72
|
+
</ImportGroup>
|
|
73
|
+
<ItemDefinitionGroup>
|
|
74
|
+
<ClCompile>
|
|
75
|
+
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
76
|
+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
77
|
+
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
78
|
+
<WarningLevel>Level4</WarningLevel>
|
|
79
|
+
<SDLCheck>true</SDLCheck>
|
|
80
|
+
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
|
|
81
|
+
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
|
82
|
+
<PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
83
|
+
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
84
|
+
<AdditionalIncludeDirectories>
|
|
85
|
+
$(MSBuildThisFileDirectory);
|
|
86
|
+
%(AdditionalIncludeDirectories)
|
|
87
|
+
</AdditionalIncludeDirectories>
|
|
88
|
+
</ClCompile>
|
|
89
|
+
<Link>
|
|
90
|
+
<AdditionalDependencies>shell32.lib;user32.lib;windowsapp.lib;dnsapi.lib;iphlpapi.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
91
|
+
<SubSystem>Console</SubSystem>
|
|
92
|
+
<GenerateWindowsMetadata>true</GenerateWindowsMetadata>
|
|
93
|
+
<ModuleDefinitionFile>RNZeroconf.def</ModuleDefinitionFile>
|
|
94
|
+
</Link>
|
|
95
|
+
</ItemDefinitionGroup>
|
|
96
|
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
|
97
|
+
<ClCompile>
|
|
98
|
+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
99
|
+
</ClCompile>
|
|
100
|
+
</ItemDefinitionGroup>
|
|
101
|
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
|
102
|
+
<ClCompile>
|
|
103
|
+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
104
|
+
</ClCompile>
|
|
105
|
+
</ItemDefinitionGroup>
|
|
106
|
+
<PropertyGroup Label="UserMacros" />
|
|
107
|
+
<ItemGroup>
|
|
108
|
+
<ClInclude Include="RNZeroconf.h" />
|
|
109
|
+
<ClInclude Include="ZeroconfCore.h" />
|
|
110
|
+
<ClInclude Include="ReactPackageProvider.h">
|
|
111
|
+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
|
|
112
|
+
</ClInclude>
|
|
113
|
+
<ClInclude Include="resource.h" />
|
|
114
|
+
<ClInclude Include="pch.h" />
|
|
115
|
+
<ClInclude Include="targetver.h" />
|
|
116
|
+
</ItemGroup>
|
|
117
|
+
<ItemGroup>
|
|
118
|
+
<ClCompile Include="RNZeroconf.cpp" />
|
|
119
|
+
<!-- The DNS-SD core has no React Native dependency, it is also built by test/windows/run.cmd -->
|
|
120
|
+
<ClCompile Include="ZeroconfCore.cpp">
|
|
121
|
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
122
|
+
</ClCompile>
|
|
123
|
+
<ClCompile Include="pch.cpp">
|
|
124
|
+
<PrecompiledHeader>Create</PrecompiledHeader>
|
|
125
|
+
</ClCompile>
|
|
126
|
+
<ClCompile Include="ReactPackageProvider.cpp">
|
|
127
|
+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
|
|
128
|
+
</ClCompile>
|
|
129
|
+
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
130
|
+
</ItemGroup>
|
|
131
|
+
<ItemGroup>
|
|
132
|
+
<Midl Include="ReactPackageProvider.idl" />
|
|
133
|
+
</ItemGroup>
|
|
134
|
+
<ItemGroup>
|
|
135
|
+
<ResourceCompile Include="RNZeroconf.rc" />
|
|
136
|
+
</ItemGroup>
|
|
137
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
138
|
+
<ImportGroup Label="ReactNativeWindowsTargets">
|
|
139
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" />
|
|
140
|
+
</ImportGroup>
|
|
141
|
+
<ItemGroup>
|
|
142
|
+
</ItemGroup>
|
|
143
|
+
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
|
|
144
|
+
<PropertyGroup>
|
|
145
|
+
<ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
|
|
146
|
+
</PropertyGroup>
|
|
147
|
+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props'))" />
|
|
148
|
+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets'))" />
|
|
149
|
+
</Target>
|
|
150
|
+
</Project>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<ItemGroup>
|
|
4
|
+
<Filter Include="Source Files">
|
|
5
|
+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
6
|
+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
7
|
+
</Filter>
|
|
8
|
+
<Filter Include="Header Files">
|
|
9
|
+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
10
|
+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
|
11
|
+
</Filter>
|
|
12
|
+
<Filter Include="Resource Files">
|
|
13
|
+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
14
|
+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
|
15
|
+
</Filter>
|
|
16
|
+
</ItemGroup>
|
|
17
|
+
<ItemGroup>
|
|
18
|
+
<ClInclude Include="targetver.h">
|
|
19
|
+
<Filter>Header Files</Filter>
|
|
20
|
+
</ClInclude>
|
|
21
|
+
<ClInclude Include="resource.h">
|
|
22
|
+
<Filter>Header Files</Filter>
|
|
23
|
+
</ClInclude>
|
|
24
|
+
<ClInclude Include="RNZeroconf.h">
|
|
25
|
+
<Filter>Header Files</Filter>
|
|
26
|
+
</ClInclude>
|
|
27
|
+
<ClInclude Include="ZeroconfCore.h">
|
|
28
|
+
<Filter>Header Files</Filter>
|
|
29
|
+
</ClInclude>
|
|
30
|
+
<ClInclude Include="pch.h">
|
|
31
|
+
<Filter>Header Files</Filter>
|
|
32
|
+
</ClInclude>
|
|
33
|
+
</ItemGroup>
|
|
34
|
+
<ItemGroup>
|
|
35
|
+
<ClCompile Include="RNZeroconf.cpp">
|
|
36
|
+
<Filter>Source Files</Filter>
|
|
37
|
+
</ClCompile>
|
|
38
|
+
<ClCompile Include="ZeroconfCore.cpp">
|
|
39
|
+
<Filter>Source Files</Filter>
|
|
40
|
+
</ClCompile>
|
|
41
|
+
<ClCompile Include="pch.cpp">
|
|
42
|
+
<Filter>Source Files</Filter>
|
|
43
|
+
</ClCompile>
|
|
44
|
+
</ItemGroup>
|
|
45
|
+
<ItemGroup>
|
|
46
|
+
<ResourceCompile Include="RNZeroconf.rc">
|
|
47
|
+
<Filter>Resource Files</Filter>
|
|
48
|
+
</ResourceCompile>
|
|
49
|
+
</ItemGroup>
|
|
50
|
+
</Project>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#include "pch.h"
|
|
2
|
+
|
|
3
|
+
#include "ReactPackageProvider.h"
|
|
4
|
+
#if __has_include("ReactPackageProvider.g.cpp")
|
|
5
|
+
#include "ReactPackageProvider.g.cpp"
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#include "RNZeroconf.h"
|
|
9
|
+
|
|
10
|
+
using namespace winrt::Microsoft::ReactNative;
|
|
11
|
+
|
|
12
|
+
namespace winrt::RNZeroconf::implementation
|
|
13
|
+
{
|
|
14
|
+
|
|
15
|
+
void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept
|
|
16
|
+
{
|
|
17
|
+
AddAttributedModules(packageBuilder, true);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
} // namespace winrt::RNZeroconf::implementation
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "ReactPackageProvider.g.h"
|
|
4
|
+
|
|
5
|
+
using namespace winrt::Microsoft::ReactNative;
|
|
6
|
+
|
|
7
|
+
namespace winrt::RNZeroconf::implementation
|
|
8
|
+
{
|
|
9
|
+
|
|
10
|
+
struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
|
|
11
|
+
{
|
|
12
|
+
ReactPackageProvider() = default;
|
|
13
|
+
|
|
14
|
+
void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
} // namespace winrt::RNZeroconf::implementation
|
|
18
|
+
|
|
19
|
+
namespace winrt::RNZeroconf::factory_implementation
|
|
20
|
+
{
|
|
21
|
+
|
|
22
|
+
struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
|
|
23
|
+
|
|
24
|
+
} // namespace winrt::RNZeroconf::factory_implementation
|