react-native-share 7.6.6 → 7.7.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/package.json +5 -2
- package/windows/.gitignore +16 -2
- package/windows/ExperimentalFeatures.props +10 -0
- package/windows/NuGet.Config +14 -0
- package/windows/ReactNativeShare/PropertySheet.props +16 -0
- package/windows/ReactNativeShare/ReactNativeModule.h +108 -0
- package/windows/ReactNativeShare/ReactNativeShare.def +3 -0
- package/windows/ReactNativeShare/ReactNativeShare.vcxproj +160 -0
- package/windows/ReactNativeShare/ReactNativeShare.vcxproj.filters +20 -0
- package/windows/ReactNativeShare/ReactPackageProvider.cpp +19 -0
- package/windows/ReactNativeShare/ReactPackageProvider.h +21 -0
- package/windows/ReactNativeShare/ReactPackageProvider.idl +9 -0
- package/windows/ReactNativeShare/packages.config +6 -0
- package/windows/ReactNativeShare/pch.cpp +1 -0
- package/windows/ReactNativeShare/pch.h +18 -0
- package/windows/ReactNativeShare.sln +156 -0
- package/windows/RNShare/Properties/AssemblyInfo.cs +0 -29
- package/windows/RNShare/Properties/RNShare.rd.xml +0 -33
- package/windows/RNShare/RNShare.csproj +0 -183
- package/windows/RNShare/RNShareModule.cs +0 -118
- package/windows/RNShare/RNSharePackage.cs +0 -53
- package/windows/RNShare/project.json +0 -16
- package/windows/RNShare.sln +0 -86
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-share",
|
|
3
3
|
"description": "Social share, sending simple data to other apps.",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.7.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/react-native-community/react-native-share.git"
|
|
@@ -41,12 +41,14 @@
|
|
|
41
41
|
"eslint-config-satya164": "3.1.10",
|
|
42
42
|
"husky": "4.3.0",
|
|
43
43
|
"lint-staged": "10.3.0",
|
|
44
|
+
"metro-config": "^0.66.2",
|
|
44
45
|
"metro-react-native-babel-preset": "^0.66.2",
|
|
45
46
|
"pre-commit": "1.2.2",
|
|
46
47
|
"prettier": "^2.2.1",
|
|
47
48
|
"react": "17.0.2",
|
|
48
49
|
"react-native": "0.66.4",
|
|
49
50
|
"react-native-builder-bob": "^0.18.1",
|
|
51
|
+
"react-native-windows": "0.66.4",
|
|
50
52
|
"semantic-release": "^19.0.3",
|
|
51
53
|
"typescript": "4.2.4"
|
|
52
54
|
},
|
|
@@ -80,7 +82,8 @@
|
|
|
80
82
|
"typescript": "tsc --noEmit",
|
|
81
83
|
"validate": "yarn lint && yarn typescript",
|
|
82
84
|
"ci:publish": "npx semantic-release",
|
|
83
|
-
"prepare": "bob build"
|
|
85
|
+
"prepare": "bob build",
|
|
86
|
+
"windows": "react-native run-windows"
|
|
84
87
|
},
|
|
85
88
|
"husky": {
|
|
86
89
|
"hooks": {
|
package/windows/.gitignore
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
*AppPackages*
|
|
2
2
|
*BundleArtifacts*
|
|
3
|
-
*ReactAssets*
|
|
4
3
|
|
|
5
4
|
#OS junk files
|
|
6
5
|
[Tt]humbs.db
|
|
@@ -36,6 +35,17 @@ ipch/
|
|
|
36
35
|
[Rr]elease*/
|
|
37
36
|
Ankh.NoLoad
|
|
38
37
|
|
|
38
|
+
# Visual C++ cache files
|
|
39
|
+
ipch/
|
|
40
|
+
*.aps
|
|
41
|
+
*.ncb
|
|
42
|
+
*.opendb
|
|
43
|
+
*.opensdf
|
|
44
|
+
*.sdf
|
|
45
|
+
*.cachefile
|
|
46
|
+
*.VC.db
|
|
47
|
+
*.VC.VC.opendb
|
|
48
|
+
|
|
39
49
|
#MonoDevelop
|
|
40
50
|
*.pidb
|
|
41
51
|
*.userprefs
|
|
@@ -75,4 +85,8 @@ packages/
|
|
|
75
85
|
#Other files
|
|
76
86
|
*.DotSettings
|
|
77
87
|
.vs/
|
|
78
|
-
*project.lock.json
|
|
88
|
+
*project.lock.json
|
|
89
|
+
|
|
90
|
+
#Files generated by the VS build
|
|
91
|
+
**/Generated Files/**
|
|
92
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
|
|
4
|
+
<!--
|
|
5
|
+
Application projects contain a file with this name to specify some important settings
|
|
6
|
+
that will apply globally for the app and *all* native modules the app consumes. These
|
|
7
|
+
values are set by the app developer.
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
</Project>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<configuration>
|
|
3
|
+
<config>
|
|
4
|
+
<add key="repositoryPath" value="packages" />
|
|
5
|
+
</config>
|
|
6
|
+
<packageSources>
|
|
7
|
+
<clear />
|
|
8
|
+
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
|
|
9
|
+
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" />
|
|
10
|
+
</packageSources>
|
|
11
|
+
<disabledPackageSources>
|
|
12
|
+
<clear />
|
|
13
|
+
</disabledPackageSources>
|
|
14
|
+
</configuration>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<ImportGroup Label="PropertySheets" />
|
|
4
|
+
<PropertyGroup Label="UserMacros" />
|
|
5
|
+
<!--
|
|
6
|
+
To customize common C++/WinRT project properties:
|
|
7
|
+
* right-click the project node
|
|
8
|
+
* expand the Common Properties item
|
|
9
|
+
* select the C++/WinRT property page
|
|
10
|
+
|
|
11
|
+
For more advanced scenarios, and complete documentation, please see:
|
|
12
|
+
https://github.com/Microsoft/xlang/tree/master/src/package/cppwinrt/nuget
|
|
13
|
+
-->
|
|
14
|
+
<PropertyGroup />
|
|
15
|
+
<ItemDefinitionGroup />
|
|
16
|
+
</Project>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "JSValue.h"
|
|
4
|
+
#include "NativeModules.h"
|
|
5
|
+
#include <winrt/Windows.ApplicationModel.DataTransfer.h>
|
|
6
|
+
|
|
7
|
+
using namespace winrt::Microsoft::ReactNative;
|
|
8
|
+
using namespace winrt::Windows::ApplicationModel::DataTransfer;
|
|
9
|
+
|
|
10
|
+
namespace winrt::ReactNativeShare
|
|
11
|
+
{
|
|
12
|
+
|
|
13
|
+
REACT_STRUCT(RequestData)
|
|
14
|
+
struct RequestData
|
|
15
|
+
{
|
|
16
|
+
std::wstring title;
|
|
17
|
+
std::wstring message;
|
|
18
|
+
std::wstring url;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
REACT_MODULE(ReactNativeShare, L"RNShare")
|
|
22
|
+
struct ReactNativeShare
|
|
23
|
+
{
|
|
24
|
+
REACT_INIT(Initialize)
|
|
25
|
+
void Initialize(ReactContext const &reactContext) noexcept
|
|
26
|
+
{
|
|
27
|
+
context = reactContext;
|
|
28
|
+
|
|
29
|
+
context.UIDispatcher().Post([&]() {
|
|
30
|
+
DataTransferManager dataTransferManager = DataTransferManager::GetForCurrentView();
|
|
31
|
+
auto dataRequestedToken = dataTransferManager.DataRequested(TypedEventHandler<DataTransferManager, DataRequestedEventArgs>(this, &ReactNativeShare::handleDataRequest));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
REACT_METHOD(open)
|
|
36
|
+
void open(JSValueObject options, std::function<void(JSValue)> errorCallback, std::function<void(JSValue, JSValue)> successCallback) noexcept
|
|
37
|
+
{
|
|
38
|
+
if (options["title"] == nullptr) {
|
|
39
|
+
errorCallback("no_title_provided");
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if ((options["message"] == nullptr) && (options["url"] == nullptr))
|
|
44
|
+
{
|
|
45
|
+
errorCallback("no_message_or_url_provided");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
requestData.title = to_hstring(options["title"].AsString());
|
|
50
|
+
|
|
51
|
+
if (options["message"] != nullptr)
|
|
52
|
+
{
|
|
53
|
+
requestData.message = to_hstring(options["message"].AsString());
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (options["url"] != nullptr){
|
|
57
|
+
requestData.url = to_hstring(options["url"].AsString());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
context.UIDispatcher().Post([&, errorCallback, successCallback]() {
|
|
61
|
+
try
|
|
62
|
+
{
|
|
63
|
+
DataTransferManager::ShowShareUI();
|
|
64
|
+
successCallback(true, "OK");
|
|
65
|
+
}
|
|
66
|
+
catch (hresult_error const& e)
|
|
67
|
+
{
|
|
68
|
+
errorCallback("not_available");
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
REACT_METHOD(addListener);
|
|
74
|
+
void addListener(std::string) noexcept
|
|
75
|
+
{
|
|
76
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
REACT_METHOD(removeListeners);
|
|
80
|
+
void removeListeners(int64_t) noexcept
|
|
81
|
+
{
|
|
82
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
void handleDataRequest(DataTransferManager sender, DataRequestedEventArgs e)
|
|
86
|
+
{
|
|
87
|
+
e.Request().Data().Properties().Title(requestData.title);
|
|
88
|
+
|
|
89
|
+
if (!requestData.message.empty())
|
|
90
|
+
{
|
|
91
|
+
e.Request().Data().SetText(requestData.message);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (!requestData.url.empty())
|
|
95
|
+
{
|
|
96
|
+
Windows::Foundation::Uri uri{ requestData.url };
|
|
97
|
+
e.Request().Data().SetUri(uri);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
requestData = {};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private:
|
|
104
|
+
ReactContext context;
|
|
105
|
+
RequestData requestData = {};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
} // namespace winrt::ReactNativeShare
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
|
|
4
|
+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" />
|
|
5
|
+
<PropertyGroup Label="Globals">
|
|
6
|
+
<CppWinRTOptimized>true</CppWinRTOptimized>
|
|
7
|
+
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
|
|
8
|
+
<MinimalCoreWin>true</MinimalCoreWin>
|
|
9
|
+
<ProjectGuid>{bd58576e-3205-4762-8b1b-ea33774079b7}</ProjectGuid>
|
|
10
|
+
<ProjectName>ReactNativeShare</ProjectName>
|
|
11
|
+
<RootNamespace>ReactNativeShare</RootNamespace>
|
|
12
|
+
<DefaultLanguage>en-US</DefaultLanguage>
|
|
13
|
+
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
|
|
14
|
+
<AppContainerApplication>true</AppContainerApplication>
|
|
15
|
+
<ApplicationType>Windows Store</ApplicationType>
|
|
16
|
+
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
|
17
|
+
</PropertyGroup>
|
|
18
|
+
<PropertyGroup Label="ReactNativeWindowsProps">
|
|
19
|
+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
|
|
20
|
+
</PropertyGroup>
|
|
21
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props')" />
|
|
22
|
+
<PropertyGroup Label="Fallback Windows SDK Versions">
|
|
23
|
+
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.19041.0</WindowsTargetPlatformVersion>
|
|
24
|
+
<WindowsTargetPlatformMinVersion Condition=" '$(WindowsTargetPlatformMinVersion)' == '' ">10.0.15063.0</WindowsTargetPlatformMinVersion>
|
|
25
|
+
</PropertyGroup>
|
|
26
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
27
|
+
<ItemGroup Label="ProjectConfigurations">
|
|
28
|
+
<ProjectConfiguration Include="Debug|ARM64">
|
|
29
|
+
<Configuration>Debug</Configuration>
|
|
30
|
+
<Platform>ARM64</Platform>
|
|
31
|
+
</ProjectConfiguration>
|
|
32
|
+
<ProjectConfiguration Include="Debug|Win32">
|
|
33
|
+
<Configuration>Debug</Configuration>
|
|
34
|
+
<Platform>Win32</Platform>
|
|
35
|
+
</ProjectConfiguration>
|
|
36
|
+
<ProjectConfiguration Include="Debug|x64">
|
|
37
|
+
<Configuration>Debug</Configuration>
|
|
38
|
+
<Platform>x64</Platform>
|
|
39
|
+
</ProjectConfiguration>
|
|
40
|
+
<ProjectConfiguration Include="Release|ARM64">
|
|
41
|
+
<Configuration>Release</Configuration>
|
|
42
|
+
<Platform>ARM64</Platform>
|
|
43
|
+
</ProjectConfiguration>
|
|
44
|
+
<ProjectConfiguration Include="Release|Win32">
|
|
45
|
+
<Configuration>Release</Configuration>
|
|
46
|
+
<Platform>Win32</Platform>
|
|
47
|
+
</ProjectConfiguration>
|
|
48
|
+
<ProjectConfiguration Include="Release|x64">
|
|
49
|
+
<Configuration>Release</Configuration>
|
|
50
|
+
<Platform>x64</Platform>
|
|
51
|
+
</ProjectConfiguration>
|
|
52
|
+
</ItemGroup>
|
|
53
|
+
<PropertyGroup Label="Configuration">
|
|
54
|
+
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
55
|
+
<CharacterSet>Unicode</CharacterSet>
|
|
56
|
+
<GenerateManifest>false</GenerateManifest>
|
|
57
|
+
</PropertyGroup>
|
|
58
|
+
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
|
59
|
+
<UseDebugLibraries>true</UseDebugLibraries>
|
|
60
|
+
<LinkIncremental>true</LinkIncremental>
|
|
61
|
+
</PropertyGroup>
|
|
62
|
+
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
|
63
|
+
<UseDebugLibraries>false</UseDebugLibraries>
|
|
64
|
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
65
|
+
<LinkIncremental>false</LinkIncremental>
|
|
66
|
+
</PropertyGroup>
|
|
67
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
68
|
+
<ImportGroup Label="ExtensionSettings"></ImportGroup>
|
|
69
|
+
<ImportGroup Label="PropertySheets">
|
|
70
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
71
|
+
</ImportGroup>
|
|
72
|
+
<ImportGroup Label="PropertySheets">
|
|
73
|
+
<Import Project="PropertySheet.props" />
|
|
74
|
+
</ImportGroup>
|
|
75
|
+
<ImportGroup Label="ReactNativeWindowsPropertySheets">
|
|
76
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\external\Microsoft.ReactNative.Uwp.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" />
|
|
77
|
+
<Import Project="$(SolutionDir)\packages\$(WinUIPackageProps)" Condition="'$(WinUIPackageProps)'!='' And Exists('$(SolutionDir)\packages\$(WinUIPackageProps)')" />
|
|
78
|
+
</ImportGroup>
|
|
79
|
+
|
|
80
|
+
<PropertyGroup Label="UserMacros" />
|
|
81
|
+
<ItemDefinitionGroup>
|
|
82
|
+
<ClCompile>
|
|
83
|
+
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
84
|
+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
85
|
+
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
86
|
+
<WarningLevel>Level4</WarningLevel>
|
|
87
|
+
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
|
|
88
|
+
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
|
89
|
+
<PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
90
|
+
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
91
|
+
</ClCompile>
|
|
92
|
+
<Midl>
|
|
93
|
+
<!-- This allows applications targetting older Windows SDKs (e.g. RNW 0.65 apps) to consume the library generated WinMD -->
|
|
94
|
+
<AdditionalOptions>%(AdditionalOptions) /noattributename</AdditionalOptions>
|
|
95
|
+
</Midl>
|
|
96
|
+
<Link>
|
|
97
|
+
<SubSystem>Console</SubSystem>
|
|
98
|
+
<GenerateWindowsMetadata>true</GenerateWindowsMetadata>
|
|
99
|
+
<ModuleDefinitionFile>ReactNativeShare.def</ModuleDefinitionFile>
|
|
100
|
+
</Link>
|
|
101
|
+
</ItemDefinitionGroup>
|
|
102
|
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
|
103
|
+
<ClCompile>
|
|
104
|
+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
105
|
+
</ClCompile>
|
|
106
|
+
</ItemDefinitionGroup>
|
|
107
|
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
|
108
|
+
<ClCompile>
|
|
109
|
+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
110
|
+
</ClCompile>
|
|
111
|
+
</ItemDefinitionGroup>
|
|
112
|
+
<ItemGroup>
|
|
113
|
+
<ClInclude Include="ReactPackageProvider.h">
|
|
114
|
+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
|
|
115
|
+
</ClInclude>
|
|
116
|
+
<ClInclude Include="ReactNativeModule.h" />
|
|
117
|
+
<ClInclude Include="pch.h" />
|
|
118
|
+
</ItemGroup>
|
|
119
|
+
<ItemGroup>
|
|
120
|
+
<ClCompile Include="pch.cpp">
|
|
121
|
+
<PrecompiledHeader>Create</PrecompiledHeader>
|
|
122
|
+
</ClCompile>
|
|
123
|
+
<ClCompile Include="ReactPackageProvider.cpp">
|
|
124
|
+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
|
|
125
|
+
</ClCompile>
|
|
126
|
+
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
127
|
+
</ItemGroup>
|
|
128
|
+
<ItemGroup>
|
|
129
|
+
<Midl Include="ReactPackageProvider.idl" />
|
|
130
|
+
</ItemGroup>
|
|
131
|
+
<ItemGroup>
|
|
132
|
+
<None Include="packages.config" />
|
|
133
|
+
<None Include="PropertySheet.props" />
|
|
134
|
+
</ItemGroup>
|
|
135
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
136
|
+
<ImportGroup Label="ReactNativeWindowsTargets">
|
|
137
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
|
|
138
|
+
</ImportGroup>
|
|
139
|
+
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
|
|
140
|
+
<PropertyGroup>
|
|
141
|
+
<ErrorText>This project references targets in your node_modules\react-native-windows folder that are missing. The missing file is {0}.</ErrorText>
|
|
142
|
+
</PropertyGroup>
|
|
143
|
+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
|
|
144
|
+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
|
|
145
|
+
</Target>
|
|
146
|
+
<ImportGroup Label="ExtensionTargets">
|
|
147
|
+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" />
|
|
148
|
+
<Import Project="$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.9.0-ms.4\build\native\ReactNative.Hermes.Windows.targets" Condition="Exists('$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.9.0-ms.4\build\native\ReactNative.Hermes.Windows.targets')" />
|
|
149
|
+
<Import Project="$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets" Condition="Exists('$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" />
|
|
150
|
+
</ImportGroup>
|
|
151
|
+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
152
|
+
<PropertyGroup>
|
|
153
|
+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
|
154
|
+
</PropertyGroup>
|
|
155
|
+
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props'))" />
|
|
156
|
+
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets'))" />
|
|
157
|
+
<Error Condition="!Exists('$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.9.0-ms.4\build\native\ReactNative.Hermes.Windows.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.9.0-ms.4\build\native\ReactNative.Hermes.Windows.targets'))" />
|
|
158
|
+
<Error Condition="!Exists('$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets'))" />
|
|
159
|
+
</Target>
|
|
160
|
+
</Project>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<ItemGroup>
|
|
4
|
+
<Midl Include="ReactPackageProvider.idl" />
|
|
5
|
+
</ItemGroup>
|
|
6
|
+
<ItemGroup>
|
|
7
|
+
<ClCompile Include="pch.cpp" />
|
|
8
|
+
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
9
|
+
<ClCompile Include="ReactPackageProvider.cpp" />
|
|
10
|
+
</ItemGroup>
|
|
11
|
+
<ItemGroup>
|
|
12
|
+
<ClInclude Include="pch.h" />
|
|
13
|
+
<ClInclude Include="ReactPackageProvider.h" />
|
|
14
|
+
<ClInclude Include="ReactNativeModule.h" />
|
|
15
|
+
</ItemGroup>
|
|
16
|
+
<ItemGroup>
|
|
17
|
+
<None Include="PropertySheet.props" />
|
|
18
|
+
<None Include="packages.config" />
|
|
19
|
+
</ItemGroup>
|
|
20
|
+
</Project>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#include "pch.h"
|
|
2
|
+
#include "ReactPackageProvider.h"
|
|
3
|
+
#if __has_include("ReactPackageProvider.g.cpp")
|
|
4
|
+
#include "ReactPackageProvider.g.cpp"
|
|
5
|
+
#endif
|
|
6
|
+
|
|
7
|
+
#include "ReactNativeModule.h"
|
|
8
|
+
|
|
9
|
+
using namespace winrt::Microsoft::ReactNative;
|
|
10
|
+
|
|
11
|
+
namespace winrt::ReactNativeShare::implementation
|
|
12
|
+
{
|
|
13
|
+
|
|
14
|
+
void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept
|
|
15
|
+
{
|
|
16
|
+
AddAttributedModules(packageBuilder);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
} // namespace winrt::ReactNativeShare::implementation
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include "ReactPackageProvider.g.h"
|
|
3
|
+
|
|
4
|
+
using namespace winrt::Microsoft::ReactNative;
|
|
5
|
+
|
|
6
|
+
namespace winrt::ReactNativeShare::implementation
|
|
7
|
+
{
|
|
8
|
+
struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
|
|
9
|
+
{
|
|
10
|
+
ReactPackageProvider() = default;
|
|
11
|
+
|
|
12
|
+
void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
|
|
13
|
+
};
|
|
14
|
+
} // namespace winrt::ReactNativeShare::implementation
|
|
15
|
+
|
|
16
|
+
namespace winrt::ReactNativeShare::factory_implementation
|
|
17
|
+
{
|
|
18
|
+
|
|
19
|
+
struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
|
|
20
|
+
|
|
21
|
+
} // namespace winrt::ReactNativeShare::factory_implementation
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<packages>
|
|
3
|
+
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native" />
|
|
4
|
+
<package id="ReactNative.Hermes.Windows" version="0.9.0-ms.4" targetFramework="native" />
|
|
5
|
+
<package id="Microsoft.UI.Xaml" version="2.6.0" targetFramework="native" />
|
|
6
|
+
</packages>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "pch.h"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#define NOMINMAX
|
|
4
|
+
|
|
5
|
+
#include <hstring.h>
|
|
6
|
+
#include <restrictederrorinfo.h>
|
|
7
|
+
#include <unknwn.h>
|
|
8
|
+
#include <windows.h>
|
|
9
|
+
#include <CppWinRTIncludes.h>
|
|
10
|
+
|
|
11
|
+
#include <winrt/Microsoft.ReactNative.h>
|
|
12
|
+
|
|
13
|
+
#include <winrt/Microsoft.UI.Xaml.Automation.Peers.h>
|
|
14
|
+
#include <winrt/Microsoft.UI.Xaml.Controls.Primitives.h>
|
|
15
|
+
#include <winrt/Microsoft.UI.Xaml.Controls.h>
|
|
16
|
+
#include <winrt/Microsoft.UI.Xaml.Media.h>
|
|
17
|
+
#include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h>
|
|
18
|
+
using namespace winrt::Windows::Foundation;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
|
|
2
|
+
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
3
|
+
# Visual Studio Version 16
|
|
4
|
+
VisualStudioVersion = 16.0.29215.179
|
|
5
|
+
MinimumVisualStudioVersion = 10.0.40219.1
|
|
6
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeShare", "ReactNativeShare\ReactNativeShare.vcxproj", "{BD58576E-3205-4762-8B1B-EA33774079B7}"
|
|
7
|
+
ProjectSection(ProjectDependencies) = postProject
|
|
8
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {F7D32BD0-2749-483E-9A0D-1635EF7E3136}
|
|
9
|
+
EndProjectSection
|
|
10
|
+
EndProject
|
|
11
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Folly", "..\node_modules\react-native-windows\Folly\Folly.vcxproj", "{A990658C-CE31-4BCC-976F-0FC6B1AF693D}"
|
|
12
|
+
EndProject
|
|
13
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fmt", "..\node_modules\react-native-windows\fmt\fmt.vcxproj", "{14B93DC8-FD93-4A6D-81CB-8BC96644501C}"
|
|
14
|
+
EndProject
|
|
15
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactCommon", "..\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj", "{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}"
|
|
16
|
+
ProjectSection(ProjectDependencies) = postProject
|
|
17
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D} = {A990658C-CE31-4BCC-976F-0FC6B1AF693D}
|
|
18
|
+
EndProjectSection
|
|
19
|
+
EndProject
|
|
20
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra", "..\node_modules\react-native-windows\Chakra\Chakra.vcxitems", "{C38970C0-5FBF-4D69-90D8-CBAC225AE895}"
|
|
21
|
+
EndProject
|
|
22
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.ReactNative", "..\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj", "{F7D32BD0-2749-483E-9A0D-1635EF7E3136}"
|
|
23
|
+
EndProject
|
|
24
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.ReactNative.Cxx", "..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems", "{DA8B35B3-DA00-4B02-BDE6-6A397B3FD46B}"
|
|
25
|
+
EndProject
|
|
26
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Common", "..\node_modules\react-native-windows\Common\Common.vcxproj", "{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}"
|
|
27
|
+
EndProject
|
|
28
|
+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ReactNative", "ReactNative", "{5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}"
|
|
29
|
+
EndProject
|
|
30
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.ReactNative.Shared", "..\node_modules\react-native-windows\Shared\Shared.vcxitems", "{2049DBE9-8D13-42C9-AE4B-413AE38FFFD0}"
|
|
31
|
+
EndProject
|
|
32
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Mso", "..\node_modules\react-native-windows\Mso\Mso.vcxitems", "{84E05BFA-CBAF-4F0D-BFB6-4CE85742A57E}"
|
|
33
|
+
EndProject
|
|
34
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Include", "..\node_modules\react-native-windows\include\Include.vcxitems", "{EF074BA1-2D54-4D49-A28E-5E040B47CD2E}"
|
|
35
|
+
EndProject
|
|
36
|
+
Global
|
|
37
|
+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
|
38
|
+
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{2049dbe9-8d13-42c9-ae4b-413ae38fffd0}*SharedItemsImports = 9
|
|
39
|
+
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{84e05bfa-cbaf-4f0d-bfb6-4ce85742a57e}*SharedItemsImports = 9
|
|
40
|
+
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{c38970c0-5fbf-4d69-90d8-cbac225ae895}*SharedItemsImports = 9
|
|
41
|
+
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{da8b35b3-da00-4b02-bde6-6a397b3fd46b}*SharedItemsImports = 9
|
|
42
|
+
..\node_modules\react-native-windows\include\Include.vcxitems*{ef074ba1-2d54-4d49-a28e-5e040b47cd2e}*SharedItemsImports = 9
|
|
43
|
+
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
|
44
|
+
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
|
45
|
+
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
|
46
|
+
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
|
47
|
+
EndGlobalSection
|
|
48
|
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
49
|
+
Debug|ARM64 = Debug|ARM64
|
|
50
|
+
Debug|x64 = Debug|x64
|
|
51
|
+
Debug|x86 = Debug|x86
|
|
52
|
+
Release|ARM64 = Release|ARM64
|
|
53
|
+
Release|x64 = Release|x64
|
|
54
|
+
Release|x86 = Release|x86
|
|
55
|
+
EndGlobalSection
|
|
56
|
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
57
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
58
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
59
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
|
60
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x64.ActiveCfg = Debug|x64
|
|
61
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x64.Build.0 = Debug|x64
|
|
62
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x64.Deploy.0 = Debug|x64
|
|
63
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x86.ActiveCfg = Debug|Win32
|
|
64
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x86.Build.0 = Debug|Win32
|
|
65
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Debug|x86.Deploy.0 = Debug|Win32
|
|
66
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
67
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|ARM64.Build.0 = Release|ARM64
|
|
68
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|ARM64.Deploy.0 = Release|ARM64
|
|
69
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x64.ActiveCfg = Release|x64
|
|
70
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x64.Build.0 = Release|x64
|
|
71
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x64.Deploy.0 = Release|x64
|
|
72
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x86.ActiveCfg = Release|Win32
|
|
73
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x86.Build.0 = Release|Win32
|
|
74
|
+
{BD58576E-3205-4762-8B1B-EA33774079B7}.Release|x86.Deploy.0 = Release|Win32
|
|
75
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
76
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
77
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x64.ActiveCfg = Debug|x64
|
|
78
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x64.Build.0 = Debug|x64
|
|
79
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x86.ActiveCfg = Debug|Win32
|
|
80
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x86.Build.0 = Debug|Win32
|
|
81
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
82
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|ARM64.Build.0 = Release|ARM64
|
|
83
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x64.ActiveCfg = Release|x64
|
|
84
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x64.Build.0 = Release|x64
|
|
85
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.ActiveCfg = Release|Win32
|
|
86
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.Build.0 = Release|Win32
|
|
87
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
88
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
89
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.ActiveCfg = Debug|x64
|
|
90
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.Build.0 = Debug|x64
|
|
91
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.ActiveCfg = Debug|Win32
|
|
92
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.Build.0 = Debug|Win32
|
|
93
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
94
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.Build.0 = Release|ARM64
|
|
95
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.ActiveCfg = Release|x64
|
|
96
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.Build.0 = Release|x64
|
|
97
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.ActiveCfg = Release|Win32
|
|
98
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.Build.0 = Release|Win32
|
|
99
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
100
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
101
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|x64.ActiveCfg = Debug|x64
|
|
102
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|x64.Build.0 = Debug|x64
|
|
103
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|x86.ActiveCfg = Debug|Win32
|
|
104
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|x86.Build.0 = Debug|Win32
|
|
105
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
106
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|ARM64.Build.0 = Release|ARM64
|
|
107
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|x64.ActiveCfg = Release|x64
|
|
108
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|x64.Build.0 = Release|x64
|
|
109
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|x86.ActiveCfg = Release|Win32
|
|
110
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Release|x86.Build.0 = Release|Win32
|
|
111
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
112
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
113
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|x64.ActiveCfg = Debug|x64
|
|
114
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|x64.Build.0 = Debug|x64
|
|
115
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|x86.ActiveCfg = Debug|Win32
|
|
116
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Debug|x86.Build.0 = Debug|Win32
|
|
117
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
118
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|ARM64.Build.0 = Release|ARM64
|
|
119
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x64.ActiveCfg = Release|x64
|
|
120
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x64.Build.0 = Release|x64
|
|
121
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.ActiveCfg = Release|Win32
|
|
122
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.Build.0 = Release|Win32
|
|
123
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
124
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
125
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.ActiveCfg = Debug|x64
|
|
126
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.Build.0 = Debug|x64
|
|
127
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.ActiveCfg = Debug|Win32
|
|
128
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Build.0 = Debug|Win32
|
|
129
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Deploy.0 = Debug|Win32
|
|
130
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
131
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.Build.0 = Release|ARM64
|
|
132
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.ActiveCfg = Release|x64
|
|
133
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.Build.0 = Release|x64
|
|
134
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.ActiveCfg = Release|Win32
|
|
135
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Build.0 = Release|Win32
|
|
136
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Deploy.0 = Release|Win32
|
|
137
|
+
EndGlobalSection
|
|
138
|
+
GlobalSection(SolutionProperties) = preSolution
|
|
139
|
+
HideSolutionNode = FALSE
|
|
140
|
+
EndGlobalSection
|
|
141
|
+
GlobalSection(NestedProjects) = preSolution
|
|
142
|
+
{A990658C-CE31-4BCC-976F-0FC6B1AF693D} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
143
|
+
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
144
|
+
{C38970C0-5FBF-4D69-90D8-CBAC225AE895} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
145
|
+
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
146
|
+
{DA8B35B3-DA00-4B02-BDE6-6A397B3FD46B} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
147
|
+
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
148
|
+
{2049DBE9-8D13-42C9-AE4B-413AE38FFFD0} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
149
|
+
{84E05BFA-CBAF-4F0D-BFB6-4CE85742A57E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
150
|
+
{EF074BA1-2D54-4D49-A28E-5E040B47CD2E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
151
|
+
{14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
|
152
|
+
EndGlobalSection
|
|
153
|
+
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
154
|
+
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
|
|
155
|
+
EndGlobalSection
|
|
156
|
+
EndGlobal
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
using System.Reflection;
|
|
2
|
-
using System.Runtime.CompilerServices;
|
|
3
|
-
using System.Runtime.InteropServices;
|
|
4
|
-
|
|
5
|
-
// General Information about an assembly is controlled through the following
|
|
6
|
-
// set of attributes. Change these attribute values to modify the information
|
|
7
|
-
// associated with an assembly.
|
|
8
|
-
[assembly: AssemblyTitle("RNShare")]
|
|
9
|
-
[assembly: AssemblyDescription("")]
|
|
10
|
-
[assembly: AssemblyConfiguration("")]
|
|
11
|
-
[assembly: AssemblyCompany("")]
|
|
12
|
-
[assembly: AssemblyProduct("RNShare")]
|
|
13
|
-
[assembly: AssemblyCopyright("Copyright © 2016")]
|
|
14
|
-
[assembly: AssemblyTrademark("")]
|
|
15
|
-
[assembly: AssemblyCulture("")]
|
|
16
|
-
|
|
17
|
-
// Version information for an assembly consists of the following four values:
|
|
18
|
-
//
|
|
19
|
-
// Major Version
|
|
20
|
-
// Minor Version
|
|
21
|
-
// Build Number
|
|
22
|
-
// Revision
|
|
23
|
-
//
|
|
24
|
-
// You can specify all the values or you can default the Build and Revision Numbers
|
|
25
|
-
// by using the '*' as shown below:
|
|
26
|
-
// [assembly: AssemblyVersion("1.0.*")]
|
|
27
|
-
[assembly: AssemblyVersion("1.0.0.0")]
|
|
28
|
-
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
29
|
-
[assembly: ComVisible(false)]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!--
|
|
3
|
-
This file contains Runtime Directives, specifications about types your application accesses
|
|
4
|
-
through reflection and other dynamic code patterns. Runtime Directives are used to control the
|
|
5
|
-
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
|
|
6
|
-
library does not do any reflection, then you generally do not need to edit this file. However,
|
|
7
|
-
if your library reflects over types, especially types passed to it or derived from its types,
|
|
8
|
-
then you should write Runtime Directives.
|
|
9
|
-
|
|
10
|
-
The most common use of reflection in libraries is to discover information about types passed
|
|
11
|
-
to the library. Runtime Directives have three ways to express requirements on types passed to
|
|
12
|
-
your library.
|
|
13
|
-
|
|
14
|
-
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
|
|
15
|
-
Use these directives to reflect over types passed as a parameter.
|
|
16
|
-
|
|
17
|
-
2. SubTypes
|
|
18
|
-
Use a SubTypes directive to reflect over types derived from another type.
|
|
19
|
-
|
|
20
|
-
3. AttributeImplies
|
|
21
|
-
Use an AttributeImplies directive to indicate that your library needs to reflect over
|
|
22
|
-
types or methods decorated with an attribute.
|
|
23
|
-
|
|
24
|
-
For more information on writing Runtime Directives for libraries, please visit
|
|
25
|
-
http://go.microsoft.com/fwlink/?LinkID=391919
|
|
26
|
-
-->
|
|
27
|
-
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
|
28
|
-
<Library Name="RNShare">
|
|
29
|
-
|
|
30
|
-
<!-- add directives for your library here -->
|
|
31
|
-
|
|
32
|
-
</Library>
|
|
33
|
-
</Directives>
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
4
|
-
<PropertyGroup>
|
|
5
|
-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
6
|
-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
7
|
-
<ProjectGuid>{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}</ProjectGuid>
|
|
8
|
-
<OutputType>Library</OutputType>
|
|
9
|
-
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
10
|
-
<RootNamespace>RNShare</RootNamespace>
|
|
11
|
-
<AssemblyName>RNShare</AssemblyName>
|
|
12
|
-
<DefaultLanguage>en-US</DefaultLanguage>
|
|
13
|
-
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
|
14
|
-
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
|
15
|
-
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
|
|
16
|
-
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
|
17
|
-
<FileAlignment>512</FileAlignment>
|
|
18
|
-
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
19
|
-
<ReactWindowsRoot>..\..\node_modules</ReactWindowsRoot>
|
|
20
|
-
</PropertyGroup>
|
|
21
|
-
<PropertyGroup Condition=" '$(Configuration)' != 'Development'">
|
|
22
|
-
<ReactWindowsRoot>..\..</ReactWindowsRoot>
|
|
23
|
-
</PropertyGroup>
|
|
24
|
-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
25
|
-
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
26
|
-
<DebugSymbols>true</DebugSymbols>
|
|
27
|
-
<DebugType>full</DebugType>
|
|
28
|
-
<Optimize>false</Optimize>
|
|
29
|
-
<OutputPath>bin\Debug\</OutputPath>
|
|
30
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
31
|
-
<ErrorReport>prompt</ErrorReport>
|
|
32
|
-
<WarningLevel>4</WarningLevel>
|
|
33
|
-
</PropertyGroup>
|
|
34
|
-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
35
|
-
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
36
|
-
<DebugType>pdbonly</DebugType>
|
|
37
|
-
<Optimize>true</Optimize>
|
|
38
|
-
<OutputPath>bin\Release\</OutputPath>
|
|
39
|
-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
40
|
-
<ErrorReport>prompt</ErrorReport>
|
|
41
|
-
<WarningLevel>4</WarningLevel>
|
|
42
|
-
</PropertyGroup>
|
|
43
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
44
|
-
<PlatformTarget>x86</PlatformTarget>
|
|
45
|
-
<DebugSymbols>true</DebugSymbols>
|
|
46
|
-
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
47
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
48
|
-
<NoWarn>;2008</NoWarn>
|
|
49
|
-
<DebugType>full</DebugType>
|
|
50
|
-
<PlatformTarget>x86</PlatformTarget>
|
|
51
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
52
|
-
<ErrorReport>prompt</ErrorReport>
|
|
53
|
-
</PropertyGroup>
|
|
54
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
|
55
|
-
<PlatformTarget>x86</PlatformTarget>
|
|
56
|
-
<OutputPath>bin\x86\Release\</OutputPath>
|
|
57
|
-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
58
|
-
<Optimize>true</Optimize>
|
|
59
|
-
<NoWarn>;2008</NoWarn>
|
|
60
|
-
<DebugType>pdbonly</DebugType>
|
|
61
|
-
<PlatformTarget>x86</PlatformTarget>
|
|
62
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
63
|
-
<ErrorReport>prompt</ErrorReport>
|
|
64
|
-
</PropertyGroup>
|
|
65
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
|
66
|
-
<PlatformTarget>ARM</PlatformTarget>
|
|
67
|
-
<DebugSymbols>true</DebugSymbols>
|
|
68
|
-
<OutputPath>bin\ARM\Debug\</OutputPath>
|
|
69
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
70
|
-
<NoWarn>;2008</NoWarn>
|
|
71
|
-
<DebugType>full</DebugType>
|
|
72
|
-
<PlatformTarget>ARM</PlatformTarget>
|
|
73
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
74
|
-
<ErrorReport>prompt</ErrorReport>
|
|
75
|
-
</PropertyGroup>
|
|
76
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
|
77
|
-
<PlatformTarget>ARM</PlatformTarget>
|
|
78
|
-
<OutputPath>bin\ARM\Release\</OutputPath>
|
|
79
|
-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
80
|
-
<Optimize>true</Optimize>
|
|
81
|
-
<NoWarn>;2008</NoWarn>
|
|
82
|
-
<DebugType>pdbonly</DebugType>
|
|
83
|
-
<PlatformTarget>ARM</PlatformTarget>
|
|
84
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
85
|
-
<ErrorReport>prompt</ErrorReport>
|
|
86
|
-
</PropertyGroup>
|
|
87
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
88
|
-
<PlatformTarget>x64</PlatformTarget>
|
|
89
|
-
<DebugSymbols>true</DebugSymbols>
|
|
90
|
-
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
91
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
92
|
-
<NoWarn>;2008</NoWarn>
|
|
93
|
-
<DebugType>full</DebugType>
|
|
94
|
-
<PlatformTarget>x64</PlatformTarget>
|
|
95
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
96
|
-
<ErrorReport>prompt</ErrorReport>
|
|
97
|
-
</PropertyGroup>
|
|
98
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
99
|
-
<PlatformTarget>x64</PlatformTarget>
|
|
100
|
-
<OutputPath>bin\x64\Release\</OutputPath>
|
|
101
|
-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
102
|
-
<Optimize>true</Optimize>
|
|
103
|
-
<NoWarn>;2008</NoWarn>
|
|
104
|
-
<DebugType>pdbonly</DebugType>
|
|
105
|
-
<PlatformTarget>x64</PlatformTarget>
|
|
106
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
107
|
-
<ErrorReport>prompt</ErrorReport>
|
|
108
|
-
</PropertyGroup>
|
|
109
|
-
<ItemGroup>
|
|
110
|
-
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
|
111
|
-
<None Include="project.json" />
|
|
112
|
-
</ItemGroup>
|
|
113
|
-
<ItemGroup>
|
|
114
|
-
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
115
|
-
<Compile Include="RNShareModule.cs" />
|
|
116
|
-
<Compile Include="RNSharePackage.cs" />
|
|
117
|
-
<EmbeddedResource Include="Properties\RNShare.rd.xml" />
|
|
118
|
-
</ItemGroup>
|
|
119
|
-
<ItemGroup>
|
|
120
|
-
<ProjectReference Include="..\..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj">
|
|
121
|
-
<Project>{c7673ad5-e3aa-468c-a5fd-fa38154e205c}</Project>
|
|
122
|
-
<Name>ReactNative</Name>
|
|
123
|
-
</ProjectReference>
|
|
124
|
-
</ItemGroup>
|
|
125
|
-
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
|
126
|
-
<VisualStudioVersion>14.0</VisualStudioVersion>
|
|
127
|
-
</PropertyGroup>
|
|
128
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|AnyCPU'">
|
|
129
|
-
<DebugSymbols>true</DebugSymbols>
|
|
130
|
-
<OutputPath>bin\Development\</OutputPath>
|
|
131
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
132
|
-
<NoStdLib>true</NoStdLib>
|
|
133
|
-
<DebugType>full</DebugType>
|
|
134
|
-
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
135
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
136
|
-
<ErrorReport>prompt</ErrorReport>
|
|
137
|
-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
138
|
-
</PropertyGroup>
|
|
139
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x86'">
|
|
140
|
-
<DebugSymbols>true</DebugSymbols>
|
|
141
|
-
<OutputPath>bin\x86\Development\</OutputPath>
|
|
142
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
143
|
-
<NoWarn>;2008</NoWarn>
|
|
144
|
-
<NoStdLib>true</NoStdLib>
|
|
145
|
-
<DebugType>full</DebugType>
|
|
146
|
-
<PlatformTarget>x86</PlatformTarget>
|
|
147
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
148
|
-
<ErrorReport>prompt</ErrorReport>
|
|
149
|
-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
150
|
-
</PropertyGroup>
|
|
151
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|ARM'">
|
|
152
|
-
<DebugSymbols>true</DebugSymbols>
|
|
153
|
-
<OutputPath>bin\ARM\Development\</OutputPath>
|
|
154
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
155
|
-
<NoWarn>;2008</NoWarn>
|
|
156
|
-
<NoStdLib>true</NoStdLib>
|
|
157
|
-
<DebugType>full</DebugType>
|
|
158
|
-
<PlatformTarget>ARM</PlatformTarget>
|
|
159
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
160
|
-
<ErrorReport>prompt</ErrorReport>
|
|
161
|
-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
162
|
-
</PropertyGroup>
|
|
163
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x64'">
|
|
164
|
-
<DebugSymbols>true</DebugSymbols>
|
|
165
|
-
<OutputPath>bin\x64\Development\</OutputPath>
|
|
166
|
-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
167
|
-
<NoWarn>;2008</NoWarn>
|
|
168
|
-
<NoStdLib>true</NoStdLib>
|
|
169
|
-
<DebugType>full</DebugType>
|
|
170
|
-
<PlatformTarget>x64</PlatformTarget>
|
|
171
|
-
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
172
|
-
<ErrorReport>prompt</ErrorReport>
|
|
173
|
-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
174
|
-
</PropertyGroup>
|
|
175
|
-
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
|
176
|
-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
177
|
-
Other similar extension points exist, see Microsoft.Common.targets.
|
|
178
|
-
<Target Name="BeforeBuild">
|
|
179
|
-
</Target>
|
|
180
|
-
<Target Name="AfterBuild">
|
|
181
|
-
</Target>
|
|
182
|
-
-->
|
|
183
|
-
</Project>
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
using Newtonsoft.Json.Linq;
|
|
2
|
-
using ReactNative.Bridge;
|
|
3
|
-
using System;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using Windows.ApplicationModel.Core;
|
|
6
|
-
using Windows.ApplicationModel.DataTransfer;
|
|
7
|
-
using Windows.UI.Core;
|
|
8
|
-
|
|
9
|
-
namespace Cl.Json.RNShare
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
/// A module that allows JS to share data.
|
|
13
|
-
/// </summary>
|
|
14
|
-
class RNShareModule : NativeModuleBase
|
|
15
|
-
{
|
|
16
|
-
private readonly DataTransferManager _dataTransferManager;
|
|
17
|
-
private readonly Queue<RequestData> _queue;
|
|
18
|
-
|
|
19
|
-
/// <summary>
|
|
20
|
-
/// Instantiates the <see cref="RNShareModule"/>.
|
|
21
|
-
/// </summary>
|
|
22
|
-
internal RNShareModule()
|
|
23
|
-
{
|
|
24
|
-
_dataTransferManager = DataTransferManager.GetForCurrentView();
|
|
25
|
-
_dataTransferManager.DataRequested += DataRequested;
|
|
26
|
-
|
|
27
|
-
_queue = new Queue<RequestData>();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/// <summary>
|
|
31
|
-
/// The name of the native module.
|
|
32
|
-
/// </summary>
|
|
33
|
-
public override string Name
|
|
34
|
-
{
|
|
35
|
-
get
|
|
36
|
-
{
|
|
37
|
-
return "RNShare";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/// <summary>
|
|
42
|
-
/// Open Share UI and provide data for sharing.
|
|
43
|
-
/// </summary>
|
|
44
|
-
/// <param name="options"></param>
|
|
45
|
-
[ReactMethod]
|
|
46
|
-
public void open(JObject options, ICallback errorCallback, ICallback successCallback)
|
|
47
|
-
{
|
|
48
|
-
if (options != null)
|
|
49
|
-
{
|
|
50
|
-
var requestData = new RequestData
|
|
51
|
-
{
|
|
52
|
-
Title = options.Value<string>("title"),
|
|
53
|
-
Text = options.Value<string>("share_text"),
|
|
54
|
-
Url = options.Value<string>("share_URL"),
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
if (requestData.Text == null && requestData.Title == null && requestData.Url == null)
|
|
58
|
-
{
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
RunOnDispatcher(() =>
|
|
63
|
-
{
|
|
64
|
-
lock (_queue)
|
|
65
|
-
{
|
|
66
|
-
_queue.Enqueue(requestData);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
try
|
|
70
|
-
{
|
|
71
|
-
DataTransferManager.ShowShareUI();
|
|
72
|
-
successCallback.Invoke("OK");
|
|
73
|
-
}
|
|
74
|
-
catch
|
|
75
|
-
{
|
|
76
|
-
errorCallback.Invoke("not_available");
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
private void DataRequested(DataTransferManager sender, DataRequestedEventArgs e)
|
|
83
|
-
{
|
|
84
|
-
var requestData = default(RequestData);
|
|
85
|
-
lock (_queue)
|
|
86
|
-
{
|
|
87
|
-
requestData = _queue.Dequeue();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (requestData.Title != null)
|
|
91
|
-
{
|
|
92
|
-
e.Request.Data.Properties.Title = requestData.Title;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (requestData.Text != null)
|
|
96
|
-
{
|
|
97
|
-
e.Request.Data.SetText(requestData.Text);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (requestData.Url != null)
|
|
101
|
-
{
|
|
102
|
-
e.Request.Data.SetUri(new Uri(requestData.Url));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private static async void RunOnDispatcher(DispatchedHandler action)
|
|
107
|
-
{
|
|
108
|
-
await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, action);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private struct RequestData
|
|
112
|
-
{
|
|
113
|
-
public string Title;
|
|
114
|
-
public string Text;
|
|
115
|
-
public string Url;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
using ReactNative.Bridge;
|
|
2
|
-
using ReactNative.Modules.Core;
|
|
3
|
-
using ReactNative.UIManager;
|
|
4
|
-
using System;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
|
|
7
|
-
namespace Cl.Json.RNShare
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
/// Package defining core framework modules (e.g., <see cref="UIManagerModule"/>).
|
|
11
|
-
/// It should be used for modules that require special integration with
|
|
12
|
-
/// other framework parts (e.g., with the list of packages to load view
|
|
13
|
-
/// managers from).
|
|
14
|
-
/// </summary>
|
|
15
|
-
public class RNSharePackage : IReactPackage
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
/// Creates the list of native modules to register with the react
|
|
19
|
-
/// instance.
|
|
20
|
-
/// </summary>
|
|
21
|
-
/// <param name="reactContext">The react application context.</param>
|
|
22
|
-
/// <returns>The list of native modules.</returns>
|
|
23
|
-
public IReadOnlyList<INativeModule> CreateNativeModules(ReactContext reactContext)
|
|
24
|
-
{
|
|
25
|
-
return new List<INativeModule>
|
|
26
|
-
{
|
|
27
|
-
new RNShareModule(),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/// <summary>
|
|
32
|
-
/// Creates the list of JavaScript modules to register with the
|
|
33
|
-
/// react instance.
|
|
34
|
-
/// </summary>
|
|
35
|
-
/// <returns>The list of JavaScript modules.</returns>
|
|
36
|
-
public IReadOnlyList<Type> CreateJavaScriptModulesConfig()
|
|
37
|
-
{
|
|
38
|
-
return new List<Type>(0);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/// <summary>
|
|
42
|
-
/// Creates the list of view managers that should be registered with
|
|
43
|
-
/// the <see cref="UIManagerModule"/>.
|
|
44
|
-
/// </summary>
|
|
45
|
-
/// <param name="reactContext">The react application context.</param>
|
|
46
|
-
/// <returns>The list of view managers.</returns>
|
|
47
|
-
public IReadOnlyList<IViewManager> CreateViewManagers(
|
|
48
|
-
ReactContext reactContext)
|
|
49
|
-
{
|
|
50
|
-
return new List<IViewManager>(0);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"dependencies": {
|
|
3
|
-
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2"
|
|
4
|
-
},
|
|
5
|
-
"frameworks": {
|
|
6
|
-
"uap10.0": {}
|
|
7
|
-
},
|
|
8
|
-
"runtimes": {
|
|
9
|
-
"win10-arm": {},
|
|
10
|
-
"win10-arm-aot": {},
|
|
11
|
-
"win10-x86": {},
|
|
12
|
-
"win10-x86-aot": {},
|
|
13
|
-
"win10-x64": {},
|
|
14
|
-
"win10-x64-aot": {}
|
|
15
|
-
}
|
|
16
|
-
}
|
package/windows/RNShare.sln
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
3
|
-
# Visual Studio 14
|
|
4
|
-
VisualStudioVersion = 14.0.25420.1
|
|
5
|
-
MinimumVisualStudioVersion = 10.0.40219.1
|
|
6
|
-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNShare", "RNShare\RNShare.csproj", "{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}"
|
|
7
|
-
EndProject
|
|
8
|
-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}"
|
|
9
|
-
EndProject
|
|
10
|
-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChakraBridge", "..\node_modules\react-native-windows\ReactWindows\ChakraBridge\ChakraBridge.vcxproj", "{4B72C796-16D5-4E3A-81C0-3E36F531E578}"
|
|
11
|
-
EndProject
|
|
12
|
-
Global
|
|
13
|
-
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
|
14
|
-
..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.projitems*{c7673ad5-e3aa-468c-a5fd-fa38154e205c}*SharedItemsImports = 4
|
|
15
|
-
EndGlobalSection
|
|
16
|
-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
17
|
-
Debug|ARM = Debug|ARM
|
|
18
|
-
Debug|x64 = Debug|x64
|
|
19
|
-
Debug|x86 = Debug|x86
|
|
20
|
-
Development|ARM = Development|ARM
|
|
21
|
-
Development|x64 = Development|x64
|
|
22
|
-
Development|x86 = Development|x86
|
|
23
|
-
Release|ARM = Release|ARM
|
|
24
|
-
Release|x64 = Release|x64
|
|
25
|
-
Release|x86 = Release|x86
|
|
26
|
-
EndGlobalSection
|
|
27
|
-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
28
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
29
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|ARM.Build.0 = Debug|ARM
|
|
30
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|x64.ActiveCfg = Debug|x64
|
|
31
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|x64.Build.0 = Debug|x64
|
|
32
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|x86.ActiveCfg = Debug|x86
|
|
33
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Debug|x86.Build.0 = Debug|x86
|
|
34
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|ARM.ActiveCfg = Development|ARM
|
|
35
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|ARM.Build.0 = Development|ARM
|
|
36
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|x64.ActiveCfg = Development|x64
|
|
37
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|x64.Build.0 = Development|x64
|
|
38
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|x86.ActiveCfg = Development|x86
|
|
39
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Development|x86.Build.0 = Development|x86
|
|
40
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|ARM.ActiveCfg = Release|ARM
|
|
41
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|ARM.Build.0 = Release|ARM
|
|
42
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|x64.ActiveCfg = Release|x64
|
|
43
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|x64.Build.0 = Release|x64
|
|
44
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|x86.ActiveCfg = Release|x86
|
|
45
|
-
{4ACDD44C-E556-423E-BD74-B4CEF3E67FF0}.Release|x86.Build.0 = Release|x86
|
|
46
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
47
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM
|
|
48
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64
|
|
49
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64
|
|
50
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86
|
|
51
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86
|
|
52
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM
|
|
53
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM
|
|
54
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64
|
|
55
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64
|
|
56
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86
|
|
57
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86
|
|
58
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM
|
|
59
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM
|
|
60
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64
|
|
61
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64
|
|
62
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86
|
|
63
|
-
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86
|
|
64
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
65
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.Build.0 = Debug|ARM
|
|
66
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.ActiveCfg = Debug|x64
|
|
67
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.Build.0 = Debug|x64
|
|
68
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.ActiveCfg = Debug|Win32
|
|
69
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.Build.0 = Debug|Win32
|
|
70
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|ARM.ActiveCfg = Debug|ARM
|
|
71
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|ARM.Build.0 = Debug|ARM
|
|
72
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x64.ActiveCfg = Debug|x64
|
|
73
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x64.Build.0 = Debug|x64
|
|
74
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x86.ActiveCfg = Debug|Win32
|
|
75
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x86.Build.0 = Debug|Win32
|
|
76
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.ActiveCfg = Release|ARM
|
|
77
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.Build.0 = Release|ARM
|
|
78
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.ActiveCfg = Release|x64
|
|
79
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.Build.0 = Release|x64
|
|
80
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.ActiveCfg = Release|Win32
|
|
81
|
-
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.Build.0 = Release|Win32
|
|
82
|
-
EndGlobalSection
|
|
83
|
-
GlobalSection(SolutionProperties) = preSolution
|
|
84
|
-
HideSolutionNode = FALSE
|
|
85
|
-
EndGlobalSection
|
|
86
|
-
EndGlobal
|