react-native-email-imap-smtp 0.1.0 → 0.2.1
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 +1 -1
- package/react-native.config.js +1 -2
- package/windows/EmailImapSmtp/EmailImapSmtp.def +3 -0
- package/windows/EmailImapSmtp/EmailImapSmtp.vcxproj +159 -0
- package/windows/EmailImapSmtp/EmailImapSmtp.vcxproj.filters +74 -0
- package/windows/EmailImapSmtp/EmailImapSmtpModule.h +494 -0
- package/windows/{ImapProtocol.cpp → EmailImapSmtp/ImapProtocol.cpp} +1 -0
- package/windows/EmailImapSmtp/PropertySheet.props +28 -0
- package/windows/EmailImapSmtp/ReactPackageProvider.cpp +20 -0
- package/windows/EmailImapSmtp/ReactPackageProvider.h +22 -0
- package/windows/EmailImapSmtp/ReactPackageProvider.idl +13 -0
- package/windows/{SmtpProtocol.cpp → EmailImapSmtp/SmtpProtocol.cpp} +1 -0
- package/windows/{TlsSocket.cpp → EmailImapSmtp/TlsSocket.cpp} +139 -15
- package/windows/{TlsSocket.h → EmailImapSmtp/TlsSocket.h} +3 -3
- package/windows/EmailImapSmtp/pch.cpp +5 -0
- package/windows/EmailImapSmtp/pch.h +39 -0
- package/windows/EmailImapSmtp.sln +30 -0
- package/windows/ExperimentalFeatures.props +15 -0
- package/windows/EmailImapSmtpModule.h +0 -139
- /package/windows/{EmailImapSmtp.cpp → EmailImapSmtp/EmailImapSmtp.cpp} +0 -0
- /package/windows/{EmailImapSmtp.h → EmailImapSmtp/EmailImapSmtp.h} +0 -0
- /package/windows/{EmailImapSmtpModule.cpp → EmailImapSmtp/EmailImapSmtpModule.cpp} +0 -0
- /package/windows/{EmailImapSmtpPackage.cpp → EmailImapSmtp/EmailImapSmtpPackage.cpp} +0 -0
- /package/windows/{EmailImapSmtpPackage.h → EmailImapSmtp/EmailImapSmtpPackage.h} +0 -0
- /package/windows/{ImapProtocol.h → EmailImapSmtp/ImapProtocol.h} +0 -0
- /package/windows/{ProtocolDefs.h → EmailImapSmtp/ProtocolDefs.h} +0 -0
- /package/windows/{SmtpProtocol.h → EmailImapSmtp/SmtpProtocol.h} +0 -0
package/package.json
CHANGED
package/react-native.config.js
CHANGED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- ============================================================
|
|
3
|
+
EmailImapSmtp.vcxproj — MSBuild 项目文件
|
|
4
|
+
用于 React Native Windows autolinking
|
|
5
|
+
基于 react-native-windows TurboModule 规范
|
|
6
|
+
============================================================ -->
|
|
7
|
+
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
8
|
+
<Import Project="$(MSBuildThisFileDirectory)..\ExperimentalFeatures.props" Condition="Exists('$(MSBuildThisFileDirectory)..\ExperimentalFeatures.props')" />
|
|
9
|
+
|
|
10
|
+
<ItemGroup Label="ProjectConfigurations">
|
|
11
|
+
<ProjectConfiguration Include="Debug|ARM64">
|
|
12
|
+
<Configuration>Debug</Configuration>
|
|
13
|
+
<Platform>ARM64</Platform>
|
|
14
|
+
</ProjectConfiguration>
|
|
15
|
+
<ProjectConfiguration Include="Debug|Win32">
|
|
16
|
+
<Configuration>Debug</Configuration>
|
|
17
|
+
<Platform>Win32</Platform>
|
|
18
|
+
</ProjectConfiguration>
|
|
19
|
+
<ProjectConfiguration Include="Debug|x64">
|
|
20
|
+
<Configuration>Debug</Configuration>
|
|
21
|
+
<Platform>x64</Platform>
|
|
22
|
+
</ProjectConfiguration>
|
|
23
|
+
<ProjectConfiguration Include="Release|ARM64">
|
|
24
|
+
<Configuration>Release</Configuration>
|
|
25
|
+
<Platform>ARM64</Platform>
|
|
26
|
+
</ProjectConfiguration>
|
|
27
|
+
<ProjectConfiguration Include="Release|Win32">
|
|
28
|
+
<Configuration>Release</Configuration>
|
|
29
|
+
<Platform>Win32</Platform>
|
|
30
|
+
</ProjectConfiguration>
|
|
31
|
+
<ProjectConfiguration Include="Release|x64">
|
|
32
|
+
<Configuration>Release</Configuration>
|
|
33
|
+
<Platform>x64</Platform>
|
|
34
|
+
</ProjectConfiguration>
|
|
35
|
+
</ItemGroup>
|
|
36
|
+
|
|
37
|
+
<PropertyGroup Label="Globals">
|
|
38
|
+
<CppWinRTOptimized>true</CppWinRTOptimized>
|
|
39
|
+
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
|
|
40
|
+
<MinimalCoreWin>true</MinimalCoreWin>
|
|
41
|
+
<ProjectGuid>{A3B8E7F1-2C4D-5E6F-8A9B-0C1D2E3F4A5B}</ProjectGuid>
|
|
42
|
+
<ProjectName>EmailImapSmtp</ProjectName>
|
|
43
|
+
<RootNamespace>EmailImapSmtp</RootNamespace>
|
|
44
|
+
<DefaultLanguage>en-US</DefaultLanguage>
|
|
45
|
+
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
|
|
46
|
+
<AppContainerApplication>true</AppContainerApplication>
|
|
47
|
+
<ApplicationType>Windows Store</ApplicationType>
|
|
48
|
+
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
|
49
|
+
</PropertyGroup>
|
|
50
|
+
|
|
51
|
+
<PropertyGroup Label="ReactNativeWindowsProps">
|
|
52
|
+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
|
|
53
|
+
</PropertyGroup>
|
|
54
|
+
|
|
55
|
+
<!-- 导入 RNW Windows SDK 默认配置(设置 WindowsTargetPlatformVersion) -->
|
|
56
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props')" />
|
|
57
|
+
|
|
58
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
59
|
+
|
|
60
|
+
<PropertyGroup Label="Configuration">
|
|
61
|
+
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
62
|
+
<PlatformToolset>v143</PlatformToolset>
|
|
63
|
+
<CharacterSet>Unicode</CharacterSet>
|
|
64
|
+
<GenerateManifest>false</GenerateManifest>
|
|
65
|
+
</PropertyGroup>
|
|
66
|
+
|
|
67
|
+
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
|
68
|
+
<UseDebugLibraries>true</UseDebugLibraries>
|
|
69
|
+
<LinkIncremental>true</LinkIncremental>
|
|
70
|
+
</PropertyGroup>
|
|
71
|
+
|
|
72
|
+
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
|
73
|
+
<UseDebugLibraries>false</UseDebugLibraries>
|
|
74
|
+
<LinkIncremental>false</LinkIncremental>
|
|
75
|
+
</PropertyGroup>
|
|
76
|
+
|
|
77
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
78
|
+
|
|
79
|
+
<!-- 全局属性表 -->
|
|
80
|
+
<ImportGroup Label="PropertySheets">
|
|
81
|
+
<Import Project="PropertySheet.props" />
|
|
82
|
+
</ImportGroup>
|
|
83
|
+
|
|
84
|
+
<!-- 导入 RNW UWP C++ Lib 配置(设置 TargetFrameworkMoniker、AssetTargetFallback、MIDL 引用等) -->
|
|
85
|
+
<ImportGroup Label="ReactNativeWindowsPropertySheets" Condition="'$(ReactNativeWindowsDir)' != ''">
|
|
86
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props" />
|
|
87
|
+
</ImportGroup>
|
|
88
|
+
|
|
89
|
+
<PropertyGroup Label="UserMacros" />
|
|
90
|
+
|
|
91
|
+
<ItemDefinitionGroup>
|
|
92
|
+
<ClCompile>
|
|
93
|
+
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
94
|
+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
95
|
+
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
96
|
+
<WarningLevel>Level4</WarningLevel>
|
|
97
|
+
<TreatWarningAsError>false</TreatWarningAsError>
|
|
98
|
+
<SDLCheck>true</SDLCheck>
|
|
99
|
+
<ConformanceMode>true</ConformanceMode>
|
|
100
|
+
<AdditionalUsingDirectories>$(ReactNativeWindowsDir)Microsoft.ReactNative;$(ReactNativeWindowsDir)Microsoft.ReactNative.Cxx;%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
101
|
+
<AdditionalIncludeDirectories>$(ReactNativeWindowsDir);$(ReactNativeWindowsDir)Microsoft.ReactNative;$(ReactNativeWindowsDir)Microsoft.ReactNative.Cxx;$(ReactNativeWindowsDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
102
|
+
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
103
|
+
<PreprocessorDefinitions>NOMINMAX;WIN32_LEAN_AND_MEAN;SECURITY_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
104
|
+
<AdditionalOptions>%(AdditionalOptions) /GS-</AdditionalOptions>
|
|
105
|
+
</ClCompile>
|
|
106
|
+
<Link>
|
|
107
|
+
<SubSystem>Console</SubSystem>
|
|
108
|
+
<GenerateWindowsMetadata>true</GenerateWindowsMetadata>
|
|
109
|
+
<ModuleDefinitionFile>EmailImapSmtp.def</ModuleDefinitionFile>
|
|
110
|
+
<AdditionalDependencies>ws2_32.lib;crypt32.lib;secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
111
|
+
</Link>
|
|
112
|
+
<Midl>
|
|
113
|
+
<AdditionalIncludeDirectories>$(ReactNativeWindowsDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
114
|
+
</Midl>
|
|
115
|
+
</ItemDefinitionGroup>
|
|
116
|
+
|
|
117
|
+
<!-- ═══════════════════════════════════════════════════════ -->
|
|
118
|
+
<!-- 源文件 -->
|
|
119
|
+
<!-- ═══════════════════════════════════════════════════════ -->
|
|
120
|
+
|
|
121
|
+
<ItemGroup>
|
|
122
|
+
<ClCompile Include="EmailImapSmtpModule.cpp" />
|
|
123
|
+
<ClCompile Include="ImapProtocol.cpp" />
|
|
124
|
+
<ClCompile Include="SmtpProtocol.cpp" />
|
|
125
|
+
<ClCompile Include="TlsSocket.cpp" />
|
|
126
|
+
<ClCompile Include="ReactPackageProvider.cpp" />
|
|
127
|
+
<ClCompile Include="Generated Files\module.g.cpp" />
|
|
128
|
+
<ClCompile Include="pch.cpp">
|
|
129
|
+
<PrecompiledHeader>Create</PrecompiledHeader>
|
|
130
|
+
</ClCompile>
|
|
131
|
+
</ItemGroup>
|
|
132
|
+
|
|
133
|
+
<ItemGroup>
|
|
134
|
+
<ClInclude Include="EmailImapSmtp.h" />
|
|
135
|
+
<ClInclude Include="EmailImapSmtpModule.h" />
|
|
136
|
+
<ClInclude Include="EmailImapSmtpPackage.h" />
|
|
137
|
+
<ClInclude Include="ImapProtocol.h" />
|
|
138
|
+
<ClInclude Include="SmtpProtocol.h" />
|
|
139
|
+
<ClInclude Include="TlsSocket.h" />
|
|
140
|
+
<ClInclude Include="ProtocolDefs.h" />
|
|
141
|
+
<ClInclude Include="ReactPackageProvider.h" />
|
|
142
|
+
<ClInclude Include="pch.h" />
|
|
143
|
+
</ItemGroup>
|
|
144
|
+
|
|
145
|
+
<ItemGroup>
|
|
146
|
+
<Midl Include="ReactPackageProvider.idl" />
|
|
147
|
+
</ItemGroup>
|
|
148
|
+
|
|
149
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
150
|
+
|
|
151
|
+
<!-- 导入 RNW UWP C++ Lib targets(自动添加 Microsoft.ReactNative、Microsoft.Windows.CppWinRT 等包引用) -->
|
|
152
|
+
<ImportGroup Label="ReactNativeWindowsTargets" Condition="'$(ReactNativeWindowsDir)' != ''">
|
|
153
|
+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets" />
|
|
154
|
+
</ImportGroup>
|
|
155
|
+
<ImportGroup Label="ReactNativeWindowsTargets">
|
|
156
|
+
<Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.targets" Condition="Exists('$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.targets')" />
|
|
157
|
+
<Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.targets" Condition="Exists('$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.targets')" />
|
|
158
|
+
</ImportGroup>
|
|
159
|
+
</Project>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<ItemGroup>
|
|
4
|
+
<Filter Include="Source Files">
|
|
5
|
+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
6
|
+
</Filter>
|
|
7
|
+
<Filter Include="Header Files">
|
|
8
|
+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
9
|
+
</Filter>
|
|
10
|
+
<Filter Include="IDL Files">
|
|
11
|
+
<UniqueIdentifier>{E8B8A6B0-3B8C-4B8C-9B8C-1A2B3C4D5E6F}</UniqueIdentifier>
|
|
12
|
+
</Filter>
|
|
13
|
+
</ItemGroup>
|
|
14
|
+
|
|
15
|
+
<!-- Source Files -->
|
|
16
|
+
<ItemGroup>
|
|
17
|
+
<ClCompile Include="EmailImapSmtpModule.cpp">
|
|
18
|
+
<Filter>Source Files</Filter>
|
|
19
|
+
</ClCompile>
|
|
20
|
+
<ClCompile Include="ImapProtocol.cpp">
|
|
21
|
+
<Filter>Source Files</Filter>
|
|
22
|
+
</ClCompile>
|
|
23
|
+
<ClCompile Include="SmtpProtocol.cpp">
|
|
24
|
+
<Filter>Source Files</Filter>
|
|
25
|
+
</ClCompile>
|
|
26
|
+
<ClCompile Include="TlsSocket.cpp">
|
|
27
|
+
<Filter>Source Files</Filter>
|
|
28
|
+
</ClCompile>
|
|
29
|
+
<ClCompile Include="ReactPackageProvider.cpp">
|
|
30
|
+
<Filter>Source Files</Filter>
|
|
31
|
+
</ClCompile>
|
|
32
|
+
<ClCompile Include="pch.cpp">
|
|
33
|
+
<Filter>Source Files</Filter>
|
|
34
|
+
</ClCompile>
|
|
35
|
+
</ItemGroup>
|
|
36
|
+
|
|
37
|
+
<!-- Header Files -->
|
|
38
|
+
<ItemGroup>
|
|
39
|
+
<ClInclude Include="EmailImapSmtp.h">
|
|
40
|
+
<Filter>Header Files</Filter>
|
|
41
|
+
</ClInclude>
|
|
42
|
+
<ClInclude Include="EmailImapSmtpModule.h">
|
|
43
|
+
<Filter>Header Files</Filter>
|
|
44
|
+
</ClInclude>
|
|
45
|
+
<ClInclude Include="EmailImapSmtpPackage.h">
|
|
46
|
+
<Filter>Header Files</Filter>
|
|
47
|
+
</ClInclude>
|
|
48
|
+
<ClInclude Include="ImapProtocol.h">
|
|
49
|
+
<Filter>Header Files</Filter>
|
|
50
|
+
</ClInclude>
|
|
51
|
+
<ClInclude Include="SmtpProtocol.h">
|
|
52
|
+
<Filter>Header Files</Filter>
|
|
53
|
+
</ClInclude>
|
|
54
|
+
<ClInclude Include="TlsSocket.h">
|
|
55
|
+
<Filter>Header Files</Filter>
|
|
56
|
+
</ClInclude>
|
|
57
|
+
<ClInclude Include="ProtocolDefs.h">
|
|
58
|
+
<Filter>Header Files</Filter>
|
|
59
|
+
</ClInclude>
|
|
60
|
+
<ClInclude Include="ReactPackageProvider.h">
|
|
61
|
+
<Filter>Header Files</Filter>
|
|
62
|
+
</ClInclude>
|
|
63
|
+
<ClInclude Include="pch.h">
|
|
64
|
+
<Filter>Header Files</Filter>
|
|
65
|
+
</ClInclude>
|
|
66
|
+
</ItemGroup>
|
|
67
|
+
|
|
68
|
+
<!-- IDL Files -->
|
|
69
|
+
<ItemGroup>
|
|
70
|
+
<Midl Include="ReactPackageProvider.idl">
|
|
71
|
+
<Filter>IDL Files</Filter>
|
|
72
|
+
</Midl>
|
|
73
|
+
</ItemGroup>
|
|
74
|
+
</Project>
|