react-native-windows 0.70.13 → 0.70.15

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.
@@ -709,6 +709,7 @@
709
709
  RNW_MAJOR=$(ReactNativeWindowsMajor);
710
710
  RNW_MINOR=$(ReactNativeWindowsMinor);
711
711
  RNW_PATCH=$(ReactNativeWindowsPatch);
712
+ RNW_COMMITID=$(ReactNativeWindowsCommitId);
712
713
  _UNICODE;
713
714
  UNICODE;
714
715
  %(PreprocessorDefinitions)
@@ -5,6 +5,7 @@
5
5
  #include "ReactInstanceWin.h"
6
6
 
7
7
  #include <winrt/Windows.Storage.h>
8
+ #include <csignal>
8
9
 
9
10
  #include <WerApi.h>
10
11
 
@@ -14,7 +15,7 @@ namespace Mso::React {
14
15
  // That should be saved so that if needed it can be called after the new unhandled exception has finished executing.
15
16
  // This allows the Windows Error Reporting system to process the error and upload the data for processing.
16
17
  static LPTOP_LEVEL_EXCEPTION_FILTER g_previousExceptionFilter = nullptr;
17
-
18
+ static _crt_signal_t g_previousSignalHandler = SIG_ERR;
18
19
  static std::wstring g_logFileName;
19
20
  static bool g_WERExceptionFilterWasCalled{false}; // Prevent recursion in the custom handler
20
21
 
@@ -29,9 +30,18 @@ extern "C" LONG WINAPI CustomWERExceptionFilter(LPEXCEPTION_POINTERS const excep
29
30
 
30
31
  CrashManager::OnUnhandledException();
31
32
 
33
+ if (exceptionPointers == nullptr) {
34
+ return EXCEPTION_EXECUTE_HANDLER;
35
+ }
36
+
32
37
  return g_previousExceptionFilter(exceptionPointers);
33
38
  }
34
39
 
40
+ void __cdecl on_sigabrt(int signum) {
41
+ CustomWERExceptionFilter(nullptr);
42
+ signal(signum, SIG_DFL);
43
+ }
44
+
35
45
  void InternalRegisterCustomHandler() noexcept {
36
46
  // Do this now because by the time we catch the exception we may be in OOM
37
47
  #ifndef CORE_ABI // win32 vs uwp file permissions
@@ -47,6 +57,8 @@ void InternalRegisterCustomHandler() noexcept {
47
57
  VerifySucceededElseCrash(::WerRegisterFile(g_logFileName.c_str(), WerRegFileTypeOther, WER_FILE_ANONYMOUS_DATA));
48
58
 
49
59
  g_previousExceptionFilter = ::SetUnhandledExceptionFilter(CustomWERExceptionFilter);
60
+
61
+ g_previousSignalHandler = signal(SIGABRT, &on_sigabrt);
50
62
  }
51
63
 
52
64
  void InternalUnregisterCustomHandler() noexcept {
@@ -56,6 +68,10 @@ void InternalUnregisterCustomHandler() noexcept {
56
68
  ::SetUnhandledExceptionFilter(g_previousExceptionFilter);
57
69
  g_previousExceptionFilter = nullptr;
58
70
  }
71
+
72
+ if (g_previousSignalHandler != SIG_ERR) {
73
+ signal(SIGABRT, g_previousSignalHandler);
74
+ }
59
75
  }
60
76
 
61
77
  /*static*/ void CrashManager::OnUnhandledException() noexcept {
@@ -425,6 +425,7 @@ void ReactInstanceWin::Initialize() noexcept {
425
425
 
426
426
  devSettings->waitingForDebuggerCallback = GetWaitingForDebuggerCallback();
427
427
  devSettings->debuggerAttachCallback = GetDebuggerAttachCallback();
428
+ devSettings->enableDefaultCrashHandler = m_options.EnableDefaultCrashHandler();
428
429
 
429
430
  #ifndef CORE_ABI
430
431
  devSettings->showDevMenuCallback = [weakThis]() noexcept {
@@ -10,6 +10,10 @@
10
10
  #define VER_FILEVERSION_STR XSTRINGIZE(RNW_VERSION)
11
11
  #define VER_FILEVERSION RNW_MAJOR,RNW_MINOR,RNW_PATCH,RNW_PKG_VERSION_BUILD
12
12
 
13
+ #define VER_PRODUCTVERSION_STR XSTRINGIZE(RNW_VERSION+RNW_COMMITID)
14
+ #define VER_PRODUCTVERSION RNW_MAJOR,RNW_MINOR,RNW_PATCH,RNW_PKG_VERSION_BUILD
15
+
16
+
13
17
  #ifndef DEBUG
14
18
  #define VER_DEBUG 0
15
19
  #else
@@ -18,7 +22,7 @@
18
22
 
19
23
  VS_VERSION_INFO VERSIONINFO
20
24
  FILEVERSION VER_FILEVERSION
21
- PRODUCTVERSION VER_FILEVERSION
25
+ PRODUCTVERSION VER_PRODUCTVERSION
22
26
  FILEFLAGSMASK (VS_FF_DEBUG)
23
27
  FILEFLAGS(VER_DEBUG)
24
28
  FILEOS VOS__WINDOWS32
@@ -36,7 +40,7 @@ VALUE "InternalName", "Microsoft.ReactNative.dll"
36
40
  VALUE "LegalCopyright", "(c) Microsoft Corporation. All rights reserved."
37
41
  VALUE "OriginalFilename", "Microsoft.ReactNative.dll"
38
42
  VALUE "ProductName", "React-Native-Windows"
39
- VALUE "ProductVersion", VER_FILEVERSION_STR
43
+ VALUE "ProductVersion", VER_PRODUCTVERSION_STR
40
44
  END
41
45
  END
42
46
 
@@ -10,10 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.70.13</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.70.15</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>70</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>13</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>15</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
+ <ReactNativeWindowsCommitId>d118724d1453d4d8e1d2b8ebee4229b683a92ef6</ReactNativeWindowsCommitId>
18
19
  </PropertyGroup>
19
20
  </Project>
@@ -15,6 +15,7 @@
15
15
  RNW_MAJOR=$(ReactNativeWindowsMajor);
16
16
  RNW_MINOR=$(ReactNativeWindowsMinor);
17
17
  RNW_PATCH=$(ReactNativeWindowsPatch);
18
+ RNW_COMMITID=$(ReactNativeWindowsCommitId);
18
19
  %(PreprocessorDefinitions)
19
20
  </PreprocessorDefinitions>
20
21
 
@@ -31,6 +32,7 @@
31
32
  RNW_MAJOR=$(ReactNativeWindowsMajor);
32
33
  RNW_MINOR=$(ReactNativeWindowsMinor);
33
34
  RNW_PATCH=$(ReactNativeWindowsPatch);
35
+ RNW_COMMITID=$(ReactNativeWindowsCommitId);
34
36
  %(PreprocessorDefinitions)
35
37
  </PreprocessorDefinitions>
36
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.70.13",
3
+ "version": "0.70.15",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",