react-native-tcp-windows 0.2.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/LICENSE +20 -0
- package/README.md +145 -0
- package/lib/commonjs/ReactNativeTcpWindows.js +9 -0
- package/lib/commonjs/ReactNativeTcpWindows.js.map +1 -0
- package/lib/commonjs/index.js +124 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/ReactNativeTcpWindows.js +5 -0
- package/lib/module/ReactNativeTcpWindows.js.map +1 -0
- package/lib/module/index.js +104 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/ReactNativeTcpWindows.d.ts +13 -0
- package/lib/typescript/commonjs/src/ReactNativeTcpWindows.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/__tests__/index.test.d.ts +1 -0
- package/lib/typescript/commonjs/src/__tests__/index.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +80 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/ReactNativeTcpWindows.d.ts +13 -0
- package/lib/typescript/module/src/ReactNativeTcpWindows.d.ts.map +1 -0
- package/lib/typescript/module/src/__tests__/index.test.d.ts +1 -0
- package/lib/typescript/module/src/__tests__/index.test.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +80 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +204 -0
- package/react-native.config.js +12 -0
- package/src/ReactNativeTcpWindows.ts +14 -0
- package/src/__tests__/index.test.tsx +1 -0
- package/src/index.tsx +124 -0
- package/windows/ExperimentalFeatures.props +33 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.cpp +206 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.def +3 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.h +83 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.rc +0 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.vcxproj +146 -0
- package/windows/ReactNativeTcpWindows/ReactNativeTcpWindows.vcxproj.filters +44 -0
- package/windows/ReactNativeTcpWindows/ReactPackageProvider.cpp +20 -0
- package/windows/ReactNativeTcpWindows/ReactPackageProvider.h +24 -0
- package/windows/ReactNativeTcpWindows/ReactPackageProvider.idl +9 -0
- package/windows/ReactNativeTcpWindows/TcpSocket.cpp +565 -0
- package/windows/ReactNativeTcpWindows/TcpSocket.h +69 -0
- package/windows/ReactNativeTcpWindows/codegen/.clang-format +2 -0
- package/windows/ReactNativeTcpWindows/codegen/NativeReactNativeTcpWindowsSpec.g.h +71 -0
- package/windows/ReactNativeTcpWindows/packages.lock.json +60 -0
- package/windows/ReactNativeTcpWindows/pch.cpp +1 -0
- package/windows/ReactNativeTcpWindows/pch.h +30 -0
- package/windows/ReactNativeTcpWindows/resource.h +5 -0
- package/windows/ReactNativeTcpWindows/targetver.h +8 -0
- package/windows/ReactNativeTcpWindows.sln +43 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"version": 1,
|
3
|
+
"dependencies": {
|
4
|
+
"native,Version=v0.0": {
|
5
|
+
"boost": {
|
6
|
+
"type": "Direct",
|
7
|
+
"requested": "[1.83.0, )",
|
8
|
+
"resolved": "1.83.0",
|
9
|
+
"contentHash": "cy53VNMzysEMvhBixDe8ujPk67Fcj3v6FPHQnH91NYJNLHpc6jxa2xq9ruCaaJjE4M3YrGSHDi4uUSTGBWw6EQ=="
|
10
|
+
},
|
11
|
+
"Microsoft.ReactNative": {
|
12
|
+
"type": "Direct",
|
13
|
+
"requested": "[0.79.0, )",
|
14
|
+
"resolved": "0.79.0",
|
15
|
+
"contentHash": "6+8MUOyEhqvfbW/8HfhBV7bJopCFO6d7+DSuR6PMrB6HTf2/ewMUC5Mx14nfHW5iUJr989EwzXBe5tTzroyMvw=="
|
16
|
+
},
|
17
|
+
"Microsoft.ReactNative.Cxx": {
|
18
|
+
"type": "Direct",
|
19
|
+
"requested": "[0.79.0, )",
|
20
|
+
"resolved": "0.79.0",
|
21
|
+
"contentHash": "SgqS70L8JKB9UId7JMLCp1EEs8LztAXVGYIIrFRzEZtKqN37weP2ndDW6+v0I+gJqNWdV/UThq9cJXHwVM0cZw==",
|
22
|
+
"dependencies": {
|
23
|
+
"Microsoft.ReactNative": "0.79.0"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"Microsoft.VCRTForwarders.140": {
|
27
|
+
"type": "Direct",
|
28
|
+
"requested": "[1.0.2-rc, )",
|
29
|
+
"resolved": "1.0.2-rc",
|
30
|
+
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
|
31
|
+
},
|
32
|
+
"Microsoft.Windows.CppWinRT": {
|
33
|
+
"type": "Direct",
|
34
|
+
"requested": "[2.0.230706.1, )",
|
35
|
+
"resolved": "2.0.230706.1",
|
36
|
+
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
|
37
|
+
},
|
38
|
+
"Microsoft.WindowsAppSDK": {
|
39
|
+
"type": "Direct",
|
40
|
+
"requested": "[1.7.250401001, )",
|
41
|
+
"resolved": "1.7.250401001",
|
42
|
+
"contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
|
43
|
+
"dependencies": {
|
44
|
+
"Microsoft.Web.WebView2": "1.0.2903.40",
|
45
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"Microsoft.Web.WebView2": {
|
49
|
+
"type": "Transitive",
|
50
|
+
"resolved": "1.0.2903.40",
|
51
|
+
"contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
|
52
|
+
},
|
53
|
+
"Microsoft.Windows.SDK.BuildTools": {
|
54
|
+
"type": "Transitive",
|
55
|
+
"resolved": "10.0.22621.756",
|
56
|
+
"contentHash": "7ZL2sFSioYm1Ry067Kw1hg0SCcW5kuVezC2SwjGbcPE61Nn+gTbH86T73G3LcEOVj0S3IZzNuE/29gZvOLS7VA=="
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
#include "pch.h"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// pch.h : include file for standard system include files,
|
2
|
+
// or project specific include files that are used frequently, but
|
3
|
+
// are changed infrequently
|
4
|
+
//
|
5
|
+
|
6
|
+
#pragma once
|
7
|
+
|
8
|
+
#include "targetver.h"
|
9
|
+
|
10
|
+
#define NOMINMAX 1
|
11
|
+
#define WIN32_LEAN_AND_MEAN 1
|
12
|
+
#define WINRT_LEAN_AND_MEAN 1
|
13
|
+
|
14
|
+
// Windows Header Files
|
15
|
+
#include <windows.h>
|
16
|
+
#undef GetCurrentTime
|
17
|
+
#include <unknwn.h>
|
18
|
+
|
19
|
+
// WinRT Header Files
|
20
|
+
#include <winrt/base.h>
|
21
|
+
#include <CppWinRTIncludes.h>
|
22
|
+
#include <winrt/Microsoft.ReactNative.h>
|
23
|
+
|
24
|
+
// C RunTime Header Files
|
25
|
+
#include <malloc.h>
|
26
|
+
#include <memory.h>
|
27
|
+
#include <stdlib.h>
|
28
|
+
#include <tchar.h>
|
29
|
+
|
30
|
+
// Reference additional headers your project requires here
|
@@ -0,0 +1,8 @@
|
|
1
|
+
#pragma once
|
2
|
+
|
3
|
+
// Including SDKDDKVer.h defines the highest available Windows platform.
|
4
|
+
|
5
|
+
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
|
6
|
+
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
|
7
|
+
|
8
|
+
#include <SDKDDKVer.h>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
Microsoft Visual Studio Solution File, Format Version 12.00
|
3
|
+
# Visual Studio Version 17
|
4
|
+
VisualStudioVersion = 17.3.32929.385
|
5
|
+
MinimumVisualStudioVersion = 10.0.40219.1
|
6
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeTcpWindows", "ReactNativeTcpWindows\ReactNativeTcpWindows.vcxproj", "{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}"
|
7
|
+
EndProject
|
8
|
+
Global
|
9
|
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
10
|
+
Debug|x64 = Debug|x64
|
11
|
+
Debug|x86 = Debug|x86
|
12
|
+
Debug|ARM64 = Debug|ARM64
|
13
|
+
Release|x64 = Release|x64
|
14
|
+
Release|x86 = Release|x86
|
15
|
+
Release|ARM64 = Release|ARM64
|
16
|
+
EndGlobalSection
|
17
|
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
18
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x64.ActiveCfg = Debug|x64
|
19
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x64.Build.0 = Debug|x64
|
20
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x64.Deploy.0 = Debug|x64
|
21
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x86.ActiveCfg = Debug|Win32
|
22
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x86.Build.0 = Debug|Win32
|
23
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|x86.Deploy.0 = Debug|Win32
|
24
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
25
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|ARM64.Build.0 = Debug|ARM64
|
26
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
27
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x64.ActiveCfg = Release|x64
|
28
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x64.Build.0 = Release|x64
|
29
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x64.Deploy.0 = Release|x64
|
30
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x86.ActiveCfg = Release|Win32
|
31
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x86.Build.0 = Release|Win32
|
32
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|x86.Deploy.0 = Release|Win32
|
33
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|ARM64.ActiveCfg = Release|ARM64
|
34
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|ARM64.Build.0 = Release|ARM64
|
35
|
+
{3F7AF48C-4049-4FA2-BC0D-466B2569EBDF}.Release|ARM64.Deploy.0 = Release|ARM64
|
36
|
+
EndGlobalSection
|
37
|
+
GlobalSection(SolutionProperties) = preSolution
|
38
|
+
HideSolutionNode = FALSE
|
39
|
+
EndGlobalSection
|
40
|
+
GlobalSection(ExtensibilityGlobals) = postSolution
|
41
|
+
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
|
42
|
+
EndGlobalSection
|
43
|
+
EndGlobal
|