@legendapp/spark 0.0.3 → 0.0.4

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.
Files changed (186) hide show
  1. package/init-template.cjs +7 -1
  2. package/package.json +10 -5
  3. package/patches/dependencies.json +4 -4
  4. package/patches/react-native-mmkv@4.3.2.patch +2 -2
  5. package/patches/react-native-nitro-zxing@0.3.1.patch +22 -0
  6. package/patches/registry.json +615 -0
  7. package/patches/workspace/expo-audio@55.0.18.patch +159 -0
  8. package/patches/workspace/op-engineering-op-sqlite@18.2.1.patch +796 -0
  9. package/patches/workspace/react-native-nitro-modules@0.37.0.patch +1348 -0
  10. package/patches/workspace/react-native-runtimes-core@0.1.0-alpha.2.patch +276 -0
  11. package/patches/workspace/react-native-webview@16.0.0.patch +208 -0
  12. package/postinstall.cjs +10 -1
  13. package/skills/spark/SKILL.md +37 -4
  14. package/skills/spark/UPGRADING.md +116 -1
  15. package/skills/spark/ai-customize.md +39 -0
  16. package/skills/spark/app-and-documents.md +56 -0
  17. package/skills/spark/external-libraries.md +87 -0
  18. package/skills/spark/files.md +64 -0
  19. package/skills/spark/integrations.md +69 -0
  20. package/skills/spark/keyboard.md +54 -0
  21. package/skills/spark/library-compat.md +76 -0
  22. package/skills/spark/menus-tray-dock.md +83 -0
  23. package/skills/spark/storage-settings.md +85 -0
  24. package/skills/spark/ui.md +57 -0
  25. package/skills/spark/windows.md +91 -0
  26. package/ui-popover.ts +1 -0
  27. package/ui-progress.ts +1 -0
  28. package/ui-sheet.ts +1 -0
  29. package/ui-split-view.ts +1 -0
  30. package/ui-table.ts +1 -0
  31. package/vendor/node_modules/@legendapp/spark-ai/package.json +3 -3
  32. package/vendor/node_modules/@legendapp/spark-audio/package.json +3 -13
  33. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -10
  34. package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +5 -0
  35. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +137 -105
  36. package/vendor/node_modules/@legendapp/spark-cli/dist/cli-arguments.js +4 -1
  37. package/vendor/node_modules/@legendapp/spark-cli/dist/commands.js +16 -7
  38. package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +19 -3
  39. package/vendor/node_modules/@legendapp/spark-cli/dist/dev-command.js +2 -0
  40. package/vendor/node_modules/@legendapp/spark-cli/dist/dev.js +3 -0
  41. package/vendor/node_modules/@legendapp/spark-cli/dist/enriched-html-pins.js +2 -0
  42. package/vendor/node_modules/@legendapp/spark-cli/dist/errors.js +1 -1
  43. package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +57 -9
  44. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.cjs +12 -2
  45. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.d.cts +1 -1
  46. package/vendor/node_modules/@legendapp/spark-cli/dist/metro.cjs +1 -0
  47. package/vendor/node_modules/@legendapp/spark-cli/dist/migrate.js +65 -0
  48. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +4 -4
  49. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +2 -2
  50. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +12 -8
  51. package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +35 -7
  52. package/vendor/node_modules/@legendapp/spark-cli/dist/patch.js +92 -0
  53. package/vendor/node_modules/@legendapp/spark-cli/dist/project-version.js +12 -4
  54. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +8 -1
  55. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +20 -20
  56. package/vendor/node_modules/@legendapp/spark-cli/dist/upgrade.js +1 -1
  57. package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +3 -0
  58. package/vendor/node_modules/@legendapp/spark-cli/package.json +5 -4
  59. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +2 -2
  60. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +2 -2
  61. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +2 -2
  62. package/vendor/node_modules/@legendapp/spark-clipboard/macos/RNDesktopClipboard.mm +1 -1
  63. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +3 -10
  64. package/vendor/node_modules/@legendapp/spark-clipboard/src/desktop.ts +1 -0
  65. package/vendor/node_modules/@legendapp/spark-codex/package.json +3 -7
  66. package/vendor/node_modules/@legendapp/spark-commands/package.json +5 -5
  67. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +3 -10
  68. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.h +3 -1
  69. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +51 -10
  70. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkStorage.h +4 -0
  71. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkStorage.mm +82 -0
  72. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +2 -8
  73. package/vendor/node_modules/@legendapp/spark-desktop-config/config.cjs +6 -8
  74. package/vendor/node_modules/@legendapp/spark-desktop-config/identity.cjs +2 -0
  75. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +300 -71
  76. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +7 -0
  77. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +3 -3
  78. package/vendor/node_modules/@legendapp/spark-desktop-config/patch-registry.cjs +318 -0
  79. package/vendor/node_modules/@legendapp/spark-desktop-config/patch-registry.d.cts +20 -0
  80. package/vendor/node_modules/@legendapp/spark-desktop-config/validation.cjs +66 -9
  81. package/vendor/node_modules/@legendapp/spark-desktop-config/windows.plugin.cjs +1 -0
  82. package/vendor/node_modules/@legendapp/spark-desktop-host/AppDelegate.mm +1 -0
  83. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +2 -2
  84. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +3 -10
  85. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +3 -10
  86. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/RNDesktopWindows.mm +7 -2
  87. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +235 -240
  88. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +4 -11
  89. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/api.ts +9 -3
  90. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +7 -0
  91. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/types.ts +32 -3
  92. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/validation.ts +28 -11
  93. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/createWindowsNavigator.tsx +15 -3
  94. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/primaryWindowLifecycle.ts +12 -3
  95. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/usePrimaryWindowLifecycle.ts +2 -1
  96. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/useWindowFocusEffect.ts +4 -1
  97. package/vendor/node_modules/@legendapp/spark-documents/package.json +7 -7
  98. package/vendor/node_modules/@legendapp/spark-drag-drop/macos/RNDesktopDragView.mm +77 -17
  99. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +3 -8
  100. package/vendor/node_modules/@legendapp/spark-drag-drop/src/DesktopDragViewNativeComponent.ts +1 -0
  101. package/vendor/node_modules/@legendapp/spark-drag-drop/src/contracts.ts +13 -4
  102. package/vendor/node_modules/@legendapp/spark-drag-drop/src/index.tsx +5 -3
  103. package/vendor/node_modules/@legendapp/spark-drag-drop/windows/SparkDragDrop/SparkDragDrop.h +6 -1
  104. package/vendor/node_modules/@legendapp/spark-expo-compat/metro.cjs +44 -0
  105. package/vendor/node_modules/@legendapp/spark-expo-compat/package.json +20 -0
  106. package/vendor/node_modules/@legendapp/spark-expo-compat/src/clipboard.ts +40 -0
  107. package/vendor/node_modules/@legendapp/spark-expo-compat/src/document-picker.ts +52 -0
  108. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +3 -10
  109. package/vendor/node_modules/@legendapp/spark-file-dialog/src/options.ts +5 -2
  110. package/vendor/node_modules/@legendapp/spark-file-dialog/src/types.ts +3 -3
  111. package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +1 -1
  112. package/vendor/node_modules/@legendapp/spark-file-system/package.json +3 -11
  113. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +3 -10
  114. package/vendor/node_modules/@legendapp/spark-html/package.json +2 -2
  115. package/vendor/node_modules/@legendapp/spark-markdown/package.json +2 -2
  116. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +3 -10
  117. package/vendor/node_modules/@legendapp/spark-message-dialog/src/index.ts +1 -0
  118. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +3 -9
  119. package/vendor/node_modules/@legendapp/spark-native-menu/src/hooks.ts +4 -0
  120. package/vendor/node_modules/@legendapp/spark-notifications/package.json +3 -10
  121. package/vendor/node_modules/@legendapp/spark-processes/package.json +3 -10
  122. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +2 -2
  123. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +3 -10
  124. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  125. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +4 -4
  126. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
  127. package/vendor/node_modules/@legendapp/spark-system/package.json +3 -10
  128. package/vendor/node_modules/@legendapp/spark-tray/package.json +3 -10
  129. package/vendor/node_modules/@legendapp/spark-tray/src/index.ts +2 -1
  130. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkButton.mm +82 -14
  131. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkTextInput.h +1 -1
  132. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkTextInput.mm +94 -11
  133. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +235 -18
  134. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkPaneSplitView.h +17 -0
  135. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkPaneSplitView.mm +216 -0
  136. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewComponent.h +4 -0
  137. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewComponent.mm +212 -0
  138. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewUpdates.h +6 -0
  139. package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSegmentedControl.mm +26 -13
  140. package/vendor/node_modules/@legendapp/spark-ui/macos/popover/RNSparkPopover.h +9 -0
  141. package/vendor/node_modules/@legendapp/spark-ui/macos/popover/RNSparkPopover.mm +126 -0
  142. package/vendor/node_modules/@legendapp/spark-ui/macos/progress/RNSparkProgressIndicator.h +9 -0
  143. package/vendor/node_modules/@legendapp/spark-ui/macos/progress/RNSparkProgressIndicator.mm +66 -0
  144. package/vendor/node_modules/@legendapp/spark-ui/macos/radio-group/RNSparkRadioGroup.h +9 -0
  145. package/vendor/node_modules/@legendapp/spark-ui/macos/radio-group/RNSparkRadioGroup.mm +118 -0
  146. package/vendor/node_modules/@legendapp/spark-ui/macos/sf-symbol/RNSFSymbol.mm +4 -12
  147. package/vendor/node_modules/@legendapp/spark-ui/macos/sheet/RNSparkSheet.h +9 -0
  148. package/vendor/node_modules/@legendapp/spark-ui/macos/sheet/RNSparkSheet.mm +109 -0
  149. package/vendor/node_modules/@legendapp/spark-ui/macos/sidebar/RNSidebar.mm +418 -102
  150. package/vendor/node_modules/@legendapp/spark-ui/macos/table/RNSparkTable.h +9 -0
  151. package/vendor/node_modules/@legendapp/spark-ui/macos/table/RNSparkTable.mm +179 -0
  152. package/vendor/node_modules/@legendapp/spark-ui/package.json +9 -8
  153. package/vendor/node_modules/@legendapp/spark-ui/src/SparkButtonNativeComponent.ts +10 -2
  154. package/vendor/node_modules/@legendapp/spark-ui/src/SparkTextInputNativeComponent.ts +2 -0
  155. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +9 -0
  156. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SplitView.tsx +99 -0
  157. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SplitViewNativeComponent.ts +29 -0
  158. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +34 -17
  159. package/vendor/node_modules/@legendapp/spark-ui/src/availability.ts +5 -4
  160. package/vendor/node_modules/@legendapp/spark-ui/src/checkbox-unavailable.tsx +20 -0
  161. package/vendor/node_modules/@legendapp/spark-ui/src/control.ts +24 -3
  162. package/vendor/node_modules/@legendapp/spark-ui/src/desktop.tsx +63 -13
  163. package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +12 -7
  164. package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +12 -7
  165. package/vendor/node_modules/@legendapp/spark-ui/src/index.web.tsx +35 -13
  166. package/vendor/node_modules/@legendapp/spark-ui/src/mobile-input.tsx +2 -2
  167. package/vendor/node_modules/@legendapp/spark-ui/src/native-select/NativeSegmentedControlNativeComponent.ts +3 -1
  168. package/vendor/node_modules/@legendapp/spark-ui/src/popover/PopoverNativeComponent.ts +20 -0
  169. package/vendor/node_modules/@legendapp/spark-ui/src/popover/index.tsx +45 -0
  170. package/vendor/node_modules/@legendapp/spark-ui/src/progress/ProgressIndicatorNativeComponent.ts +13 -0
  171. package/vendor/node_modules/@legendapp/spark-ui/src/progress/index.tsx +32 -0
  172. package/vendor/node_modules/@legendapp/spark-ui/src/radio-group/RadioGroupNativeComponent.ts +17 -0
  173. package/vendor/node_modules/@legendapp/spark-ui/src/sheet/SheetNativeComponent.ts +15 -0
  174. package/vendor/node_modules/@legendapp/spark-ui/src/sheet/index.tsx +38 -0
  175. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/SidebarItemNativeComponent.ts +9 -1
  176. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/SidebarNativeComponent.ts +17 -2
  177. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/index.tsx +106 -22
  178. package/vendor/node_modules/@legendapp/spark-ui/src/table/TableNativeComponent.ts +22 -0
  179. package/vendor/node_modules/@legendapp/spark-ui/src/table/index.tsx +118 -0
  180. package/vendor/node_modules/@legendapp/spark-ui/src/types.ts +39 -6
  181. package/vendor/node_modules/@legendapp/spark-ui/uniwind.ts +3 -1
  182. package/vendor/node_modules/@legendapp/spark-ui/uniwind.web.ts +2 -1
  183. package/vendor/node_modules/@legendapp/spark-ui/windows/SparkUI/SparkUI.h +46 -15
  184. package/vendor/node_modules/@legendapp/spark-updates/package.json +3 -9
  185. package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
  186. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
@@ -0,0 +1,1348 @@
1
+ diff --git a/NitroModules.podspec b/NitroModules.podspec
2
+ index 9163edc..5067d95 100644
3
+ --- a/NitroModules.podspec
4
+ +++ b/NitroModules.podspec
5
+ @@ -51,10 +51,6 @@ Pod::Spec.new do |s|
6
+ "cpp/utils/NitroDefines.hpp",
7
+ "cpp/utils/PropNameIDCache.hpp",
8
+ "cpp/views/CachedProp.hpp",
9
+ - "cpp/views/RawPropsCompat.hpp",
10
+ - "cpp/views/ReactProp.hpp",
11
+ - "cpp/views/ViewComponentDescriptor.hpp",
12
+ - "cpp/views/ViewPropsHolderState.hpp",
13
+ # Public iOS-specific headers that will be exposed in modulemap (for Swift)
14
+ "ios/core/ArrayBufferHolder.hpp",
15
+ "ios/core/PromiseHolder.hpp",
16
+ @@ -65,6 +61,9 @@ Pod::Spec.new do |s|
17
+ "ios/utils/SwiftClosure.hpp",
18
+ ]
19
+
20
+ + # These templates are consumed by generated C++ views, not Swift.
21
+ + s.private_header_files = ["cpp/views/RawPropsCompat.hpp", "cpp/views/ReactProp.hpp", "cpp/views/ViewComponentDescriptor.hpp", "cpp/views/ViewPropsHolderState.hpp"]
22
+ +
23
+ xcconfig = {
24
+ # Use C++ 20
25
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
26
+ diff --git a/cpp/core/AnyMap.hpp b/cpp/core/AnyMap.hpp
27
+ index 8aaf161..7b5ba34 100644
28
+ --- a/cpp/core/AnyMap.hpp
29
+ +++ b/cpp/core/AnyMap.hpp
30
+ @@ -1,3 +1,4 @@
31
+ +#include "NitroDefines.hpp"
32
+ //
33
+ // Created by Marc Rousavy on 30.07.24.
34
+ //
35
+ @@ -36,7 +37,7 @@ struct AnyValue : VariantType {
36
+ * 2. Arrays of primitives
37
+ * 3. Objects of primitives
38
+ */
39
+ -class AnyMap final {
40
+ +class NITRO_WINDOWS_API AnyMap final {
41
+ private:
42
+ AnyMap() = default;
43
+ explicit AnyMap(size_t size) {
44
+ diff --git a/cpp/core/ArrayBuffer.hpp b/cpp/core/ArrayBuffer.hpp
45
+ index 5121a6f..ece8edd 100644
46
+ --- a/cpp/core/ArrayBuffer.hpp
47
+ +++ b/cpp/core/ArrayBuffer.hpp
48
+ @@ -1,3 +1,4 @@
49
+ +#include "NitroDefines.hpp"
50
+ //
51
+ // ArrayBuffer.hpp
52
+ // react-native-nitro
53
+ @@ -34,7 +35,7 @@ using DeleteFn = std::function<void()>;
54
+ * - Borrowed = the `ArrayBuffer`'s `data()` might be deleted at any point from an external source (e.g. the JS garbage collector).
55
+ * When this `ArrayBuffer` gets deleted, the memory will not be freed explicitly, as someone else owns it.
56
+ */
57
+ -class ArrayBuffer : public jsi::MutableBuffer {
58
+ +class NITRO_WINDOWS_API ArrayBuffer : public jsi::MutableBuffer {
59
+ public:
60
+ ArrayBuffer() = default;
61
+ ArrayBuffer(const ArrayBuffer&) = delete;
62
+ @@ -89,7 +90,7 @@ public:
63
+ *
64
+ * It is safe to access `data()` and `size()` from any Thread, but there are no synchronization/mutexes implemented by default.
65
+ */
66
+ -class NativeArrayBuffer final : public ArrayBuffer {
67
+ +class NITRO_WINDOWS_API NativeArrayBuffer final : public ArrayBuffer {
68
+ public:
69
+ /**
70
+ * Create a new **owning** `ArrayBuffer`.
71
+ @@ -124,7 +125,7 @@ private:
72
+ *
73
+ * If the JS ArrayBuffer (or its JS Runtime) have already been deleted, `data()` returns `nullptr`.
74
+ */
75
+ -class JSArrayBuffer final : public ArrayBuffer {
76
+ +class NITRO_WINDOWS_API JSArrayBuffer final : public ArrayBuffer {
77
+ public:
78
+ explicit JSArrayBuffer(jsi::Runtime& runtime, BorrowingReference<jsi::ArrayBuffer> jsReference);
79
+ ~JSArrayBuffer();
80
+ diff --git a/cpp/core/BoxedHybridObject.hpp b/cpp/core/BoxedHybridObject.hpp
81
+ index 2f44481..8d6e3de 100644
82
+ --- a/cpp/core/BoxedHybridObject.hpp
83
+ +++ b/cpp/core/BoxedHybridObject.hpp
84
+ @@ -1,3 +1,4 @@
85
+ +#include "NitroDefines.hpp"
86
+ //
87
+ // Created by Marc Rousavy on 21.02.24.
88
+ //
89
+ @@ -21,7 +22,7 @@ using namespace facebook;
90
+ *
91
+ * Simply call `unbox()` on this `jsi::HostObject` from the new Runtime/context to get the `HybridObject` again.
92
+ */
93
+ -class BoxedHybridObject final : public jsi::HostObject {
94
+ +class NITRO_WINDOWS_API BoxedHybridObject final : public jsi::HostObject {
95
+ public:
96
+ explicit BoxedHybridObject(const std::shared_ptr<HybridObject>& hybridObject) : _hybridObject(hybridObject) {}
97
+
98
+ diff --git a/cpp/core/HybridObject.hpp b/cpp/core/HybridObject.hpp
99
+ index 79307b7..93eeeed 100644
100
+ --- a/cpp/core/HybridObject.hpp
101
+ +++ b/cpp/core/HybridObject.hpp
102
+ @@ -1,3 +1,4 @@
103
+ +#include "NitroDefines.hpp"
104
+ //
105
+ // Created by Marc Rousavy on 21.02.24.
106
+ //
107
+ @@ -24,7 +25,7 @@ using namespace facebook;
108
+ *
109
+ * The new class can then be passed to JS using the `JSIConverter<HybridObject>`.
110
+ */
111
+ -class HybridObject : public virtual jsi::NativeState, public HybridObjectPrototype, public std::enable_shared_from_this<HybridObject> {
112
+ +class NITRO_WINDOWS_API HybridObject : public virtual jsi::NativeState, public HybridObjectPrototype, public std::enable_shared_from_this<HybridObject> {
113
+ public:
114
+ /**
115
+ * Create a new instance of a `HybridObject`.
116
+ diff --git a/cpp/entrypoint/InstallNitro.hpp b/cpp/entrypoint/InstallNitro.hpp
117
+ index 7abbdcb..26909f6 100644
118
+ --- a/cpp/entrypoint/InstallNitro.hpp
119
+ +++ b/cpp/entrypoint/InstallNitro.hpp
120
+ @@ -1,3 +1,4 @@
121
+ +#include "NitroDefines.hpp"
122
+ //
123
+ // InstallNitro.hpp
124
+ // NitroModules
125
+ @@ -26,7 +27,7 @@ namespace margelo::nitro {
126
+ * React's `CallInvoker`), but in a thread-safe Runtime it might just be
127
+ * an implementation that runs the method directly.
128
+ */
129
+ -void install(jsi::Runtime& runtime, std::shared_ptr<Dispatcher> dispatcher);
130
+ +NITRO_WINDOWS_API void install(jsi::Runtime& runtime, std::shared_ptr<Dispatcher> dispatcher);
131
+
132
+ /**
133
+ * Installs Nitro into the given JS `runtime`.
134
+ @@ -36,6 +37,6 @@ void install(jsi::Runtime& runtime, std::shared_ptr<Dispatcher> dispatcher);
135
+ * No `Dispatcher` will be installed, meaning Nitro can only use synchronous
136
+ * methods.
137
+ */
138
+ -void install(jsi::Runtime& runtime);
139
+ +NITRO_WINDOWS_API void install(jsi::Runtime& runtime);
140
+
141
+ } // namespace margelo::nitro
142
+ diff --git a/cpp/jsi/JSICache.hpp b/cpp/jsi/JSICache.hpp
143
+ index 7578579..7cde951 100644
144
+ --- a/cpp/jsi/JSICache.hpp
145
+ +++ b/cpp/jsi/JSICache.hpp
146
+ @@ -1,3 +1,4 @@
147
+ +#include "NitroDefines.hpp"
148
+ //
149
+ // JSICache.hpp
150
+ // NitroModules
151
+ @@ -33,7 +34,7 @@ class JSICacheReference;
152
+ * the same Thread that it was created on. This ensures that the `jsi::Runtime` cannot
153
+ * delete it while you are still using it.
154
+ */
155
+ -class JSICache final : public jsi::NativeState {
156
+ +class NITRO_WINDOWS_API JSICache final : public jsi::NativeState {
157
+ public:
158
+ ~JSICache();
159
+
160
+ diff --git a/cpp/platform/NitroLogger.hpp b/cpp/platform/NitroLogger.hpp
161
+ index 59daefb..574b015 100644
162
+ --- a/cpp/platform/NitroLogger.hpp
163
+ +++ b/cpp/platform/NitroLogger.hpp
164
+ @@ -1,3 +1,4 @@
165
+ +#include "NitroDefines.hpp"
166
+ //
167
+ // Created by Marc Rousavy on 05.03.24.
168
+ //
169
+ @@ -16,7 +17,7 @@ namespace margelo::nitro {
170
+
171
+ enum class LogLevel { Debug, Info, Warning, Error };
172
+
173
+ -class Logger final {
174
+ +class NITRO_WINDOWS_API Logger final {
175
+ private:
176
+ Logger() = delete;
177
+
178
+ diff --git a/cpp/platform/ThreadUtils.hpp b/cpp/platform/ThreadUtils.hpp
179
+ index 6b19ac7..2725bb5 100644
180
+ --- a/cpp/platform/ThreadUtils.hpp
181
+ +++ b/cpp/platform/ThreadUtils.hpp
182
+ @@ -1,3 +1,4 @@
183
+ +#include "NitroDefines.hpp"
184
+ //
185
+ // ThreadUtils.hpp
186
+ // react-native-nitro
187
+ @@ -13,7 +14,7 @@
188
+
189
+ namespace margelo::nitro {
190
+
191
+ -class ThreadUtils final {
192
+ +class NITRO_WINDOWS_API ThreadUtils final {
193
+ public:
194
+ ThreadUtils() = delete;
195
+
196
+ diff --git a/cpp/prototype/HybridObjectPrototype.hpp b/cpp/prototype/HybridObjectPrototype.hpp
197
+ index 522f991..e1bdb7b 100644
198
+ --- a/cpp/prototype/HybridObjectPrototype.hpp
199
+ +++ b/cpp/prototype/HybridObjectPrototype.hpp
200
+ @@ -1,3 +1,4 @@
201
+ +#include "NitroDefines.hpp"
202
+ //
203
+ // HybridObjectPrototype.hpp
204
+ // NitroModules
205
+ @@ -29,7 +30,7 @@ using namespace facebook;
206
+ * When assigned to a jsi::Object, all methods of this prototype can be called on that jsi::Object,
207
+ * as long as it has a valid NativeState (`this`).
208
+ */
209
+ -class HybridObjectPrototype {
210
+ +class NITRO_WINDOWS_API HybridObjectPrototype {
211
+ public:
212
+ HybridObjectPrototype() {}
213
+
214
+ diff --git a/cpp/registry/HybridObjectRegistry.hpp b/cpp/registry/HybridObjectRegistry.hpp
215
+ index 10795e1..56bfac9 100644
216
+ --- a/cpp/registry/HybridObjectRegistry.hpp
217
+ +++ b/cpp/registry/HybridObjectRegistry.hpp
218
+ @@ -1,3 +1,4 @@
219
+ +#include "NitroDefines.hpp"
220
+ //
221
+ // HybridObjectRegistry.hpp
222
+ // react-native-nitro
223
+ @@ -17,7 +18,7 @@ namespace margelo::nitro {
224
+ * A registry that holds initializers for HybridObjects.
225
+ * This will be used to initialize them from JS using `NitroModules.createHybridObject<T>(name)`.
226
+ */
227
+ -class HybridObjectRegistry {
228
+ +class NITRO_WINDOWS_API HybridObjectRegistry {
229
+ public:
230
+ HybridObjectRegistry() = delete;
231
+
232
+ diff --git a/cpp/threading/Dispatcher.hpp b/cpp/threading/Dispatcher.hpp
233
+ index dfe3070..210bd98 100644
234
+ --- a/cpp/threading/Dispatcher.hpp
235
+ +++ b/cpp/threading/Dispatcher.hpp
236
+ @@ -1,3 +1,4 @@
237
+ +#include "NitroDefines.hpp"
238
+ //
239
+ // Created by Marc Rousavy on 12.03.24.
240
+ //
241
+ @@ -15,7 +16,7 @@ namespace margelo::nitro {
242
+
243
+ using namespace facebook;
244
+
245
+ -class Dispatcher : public jsi::NativeState {
246
+ +class NITRO_WINDOWS_API Dispatcher : public jsi::NativeState {
247
+ public:
248
+ /**
249
+ Installs the Dispatcher into the given Runtime.
250
+ diff --git a/cpp/threading/ThreadPool.hpp b/cpp/threading/ThreadPool.hpp
251
+ index d1498be..ce0482a 100644
252
+ --- a/cpp/threading/ThreadPool.hpp
253
+ +++ b/cpp/threading/ThreadPool.hpp
254
+ @@ -1,3 +1,4 @@
255
+ +#include "NitroDefines.hpp"
256
+ //
257
+ // ThreadPool.hpp
258
+ // NitroModules
259
+ @@ -20,7 +21,7 @@
260
+
261
+ namespace margelo::nitro {
262
+
263
+ -class ThreadPool final {
264
+ +class NITRO_WINDOWS_API ThreadPool final {
265
+ public:
266
+ /**
267
+ * Create a new ThreadPool with the given number of minimum workers/threads.
268
+ diff --git a/cpp/utils/CommonGlobals.hpp b/cpp/utils/CommonGlobals.hpp
269
+ index 388e74b..9df8515 100644
270
+ --- a/cpp/utils/CommonGlobals.hpp
271
+ +++ b/cpp/utils/CommonGlobals.hpp
272
+ @@ -1,3 +1,4 @@
273
+ +#include "NitroDefines.hpp"
274
+ //
275
+ // CommonGlobals.hpp
276
+ // react-native-nitro
277
+ @@ -35,7 +36,7 @@ struct ComputedPropertyDescriptor {
278
+
279
+ enum class KnownGlobalPropertyName { DISPATCHER, JSI_CACHE, NITRO_MODULES_PROXY };
280
+
281
+ -class CommonGlobals final {
282
+ +class NITRO_WINDOWS_API CommonGlobals final {
283
+ public:
284
+ CommonGlobals() = delete;
285
+ ~CommonGlobals() = delete;
286
+ diff --git a/cpp/utils/NitroDefines.hpp b/cpp/utils/NitroDefines.hpp
287
+ index ba3ca68..8b06310 100644
288
+ --- a/cpp/utils/NitroDefines.hpp
289
+ +++ b/cpp/utils/NitroDefines.hpp
290
+ @@ -71,3 +71,13 @@
291
+ #endif
292
+
293
+ #endif /* NitroDefines_h */
294
+ +
295
+ +#ifdef _WIN32
296
+ +#ifdef NITRO_WINDOWS_EXPORTS
297
+ +#define NITRO_WINDOWS_API __declspec(dllexport)
298
+ +#else
299
+ +#define NITRO_WINDOWS_API __declspec(dllimport)
300
+ +#endif
301
+ +#else
302
+ +#define NITRO_WINDOWS_API
303
+ +#endif
304
+ diff --git a/cpp/utils/NitroTypeInfo.hpp b/cpp/utils/NitroTypeInfo.hpp
305
+ index 128b807..b0cabce 100644
306
+ --- a/cpp/utils/NitroTypeInfo.hpp
307
+ +++ b/cpp/utils/NitroTypeInfo.hpp
308
+ @@ -1,3 +1,4 @@
309
+ +#include "NitroDefines.hpp"
310
+ //
311
+ // NitroTypeInfo.hpp
312
+ // Nitro
313
+ diff --git a/cpp/utils/PropNameIDCache.hpp b/cpp/utils/PropNameIDCache.hpp
314
+ index 1867ec9..51281db 100644
315
+ --- a/cpp/utils/PropNameIDCache.hpp
316
+ +++ b/cpp/utils/PropNameIDCache.hpp
317
+ @@ -1,3 +1,4 @@
318
+ +#include "NitroDefines.hpp"
319
+ //
320
+ // PropNameIDCache.hpp
321
+ // react-native-nitro
322
+ @@ -24,7 +25,7 @@ using namespace facebook;
323
+ * And is more efficient than the string equivalent overloads of those
324
+ * functions due to caching.
325
+ */
326
+ -class PropNameIDCache final {
327
+ +class NITRO_WINDOWS_API PropNameIDCache final {
328
+ public:
329
+ PropNameIDCache() = delete;
330
+ ~PropNameIDCache() = delete;
331
+ diff --git a/ios/views/HybridView.swift b/ios/views/HybridView.swift
332
+ index 94a422e..88928fd 100644
333
+ --- a/ios/views/HybridView.swift
334
+ +++ b/ios/views/HybridView.swift
335
+ @@ -6,12 +6,18 @@
336
+ //
337
+
338
+ #if canImport(UIKit)
339
+ +import UIKit
340
+ +public typealias NitroPlatformView = UIView
341
+ +#elseif canImport(AppKit)
342
+ +import AppKit
343
+ +public typealias NitroPlatformView = NSView
344
+ +#endif
345
+
346
+ - import UIKit
347
+ +#if canImport(UIKit) || canImport(AppKit)
348
+
349
+ /// A base protocol for all Swift-based Hybrid Views.
350
+ public protocol HybridView: HybridObject {
351
+ - associatedtype ViewType: UIView
352
+ + associatedtype ViewType: NitroPlatformView
353
+ /**
354
+ * Get the ``UIView`` this HybridView is holding.
355
+ *
356
+ diff --git a/package.json b/package.json
357
+ index 6dc44c9..4c28d09 100644
358
+ --- a/package.json
359
+ +++ b/package.json
360
+ @@ -22,7 +22,8 @@
361
+ "app.plugin.js",
362
+ "*.podspec",
363
+ "nitro_pod_utils.rb",
364
+ - "README.md"
365
+ + "README.md",
366
+ + "windows"
367
+ ],
368
+ "keywords": [
369
+ "react-native",
370
+ @@ -125,5 +126,10 @@
371
+ }
372
+ ]
373
+ ]
374
+ + },
375
+ + "spark": {
376
+ + "sdk": true,
377
+ + "upstreamIntegrity": "sha512-ULS2CBZcdwGw5d4Y35EV/tbCOsNsQOnQ9LC9CehMhDNm5c90lwF/LxRamzKuFpjI547G7teTQgD0peqYSGnP9g==",
378
+ + "patchHash": "3be0c6476412dcbd485fd4e340cfbb93daaa98c279a85c9d6f9a0d9678650bb9"
379
+ }
380
+ }
381
+ diff --git a/react-native.config.js b/react-native.config.js
382
+ index 3fdf8ea..e66d7b4 100644
383
+ --- a/react-native.config.js
384
+ +++ b/react-native.config.js
385
+ @@ -14,3 +14,6 @@ module.exports = {
386
+ },
387
+ },
388
+ }
389
+ +
390
+ +module.exports.dependency ??= {}; module.exports.dependency.platforms ??= {};
391
+ +module.exports.dependency.platforms.windows = {"sourceDir":"windows","solutionFile":"SparkNitro.sln","projects":[{"projectFile":"SparkNitro/SparkNitro.vcxproj","directDependency":true}]};
392
+ diff --git a/windows/ExperimentalFeatures.props b/windows/ExperimentalFeatures.props
393
+ new file mode 100644
394
+ index 0000000..d7b6c40
395
+ --- /dev/null
396
+ +++ b/windows/ExperimentalFeatures.props
397
+ @@ -0,0 +1,33 @@
398
+ +<?xml version="1.0" encoding="utf-8"?>
399
+ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
400
+ +
401
+ + <PropertyGroup Label="Microsoft.ReactNative Experimental Features">
402
+ + <!--
403
+ + Required for building a New Architecture project.
404
+ +
405
+ + Library projects can change this value to test against Old and New
406
+ + Architectures when building the library project's local sln file.
407
+ +
408
+ + Otherwise this value will be decided by the consuming RNW app.
409
+ +
410
+ + See https://microsoft.github.io/react-native-windows/docs/new-architecture
411
+ + -->
412
+ + <RnwNewArch>true</RnwNewArch>
413
+ +
414
+ + <!--
415
+ + Changes compilation to assume use of Microsoft.ReactNative NuGet packages
416
+ + instead of building the framework from source. Defaults to true.
417
+ +
418
+ + This is set during library project creation and is used when building
419
+ + the library project's local sln file.
420
+ +
421
+ + Otherwise this value will be decided by the consuming RNW app.
422
+ +
423
+ + See https://microsoft.github.io/react-native-windows/docs/nuget
424
+ + -->
425
+ + <UseExperimentalNuget>true</UseExperimentalNuget>
426
+ +
427
+ + <ReactExperimentalFeaturesSet>true</ReactExperimentalFeaturesSet>
428
+ + </PropertyGroup>
429
+ +
430
+ +</Project>
431
+ diff --git a/windows/LICENSE b/windows/LICENSE
432
+ new file mode 100644
433
+ index 0000000..b4f554e
434
+ --- /dev/null
435
+ +++ b/windows/LICENSE
436
+ @@ -0,0 +1,25 @@
437
+ +The MIT License (MIT)
438
+ +
439
+ +Copyright (c) Microsoft Corporation and contributors. All rights reserved.
440
+ +
441
+ +Portions derived from React Native:
442
+ +
443
+ +Copyright (c) 2015-present, Facebook, Inc.
444
+ +
445
+ +Permission is hereby granted, free of charge, to any person obtaining a copy
446
+ +of this software and associated documentation files (the "Software"), to deal
447
+ +in the Software without restriction, including without limitation the rights
448
+ +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
449
+ +copies of the Software, and to permit persons to whom the Software is
450
+ +furnished to do so, subject to the following conditions:
451
+ +
452
+ +The above copyright notice and this permission notice shall be included in all
453
+ +copies or substantial portions of the Software.
454
+ +
455
+ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
456
+ +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
457
+ +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
458
+ +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
459
+ +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
460
+ +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
461
+ +SOFTWARE.
462
+ diff --git a/windows/SparkNitro/Platform.cpp b/windows/SparkNitro/Platform.cpp
463
+ new file mode 100644
464
+ index 0000000..f88ac62
465
+ --- /dev/null
466
+ +++ b/windows/SparkNitro/Platform.cpp
467
+ @@ -0,0 +1,23 @@
468
+ +#include "pch.h"
469
+ +#include <ThreadUtils.hpp>
470
+ +#include <NitroLogger.hpp>
471
+ +#include <future>
472
+ +#include <mutex>
473
+ +#include <winrt/Microsoft.UI.Dispatching.h>
474
+ +namespace margelo::nitro {
475
+ +static std::mutex uiMutex;
476
+ +static winrt::Microsoft::ReactNative::ReactDispatcher ui{nullptr};
477
+ +void SetWindowsUIDispatcher(winrt::Microsoft::ReactNative::ReactDispatcher const &value) { std::lock_guard lock(uiMutex); ui = value; }
478
+ +std::string ThreadUtils::getThreadName() { PWSTR raw = nullptr; if (FAILED(GetThreadDescription(GetCurrentThread(), &raw))) return {}; std::string name = winrt::to_string(raw); LocalFree(raw); return name; }
479
+ +void ThreadUtils::setThreadName(std::string const &name) { winrt::check_hresult(SetThreadDescription(GetCurrentThread(), winrt::to_hstring(name).c_str())); }
480
+ +bool ThreadUtils::isUIThread() { return winrt::Microsoft::UI::Dispatching::DispatcherQueue::GetForCurrentThread() != nullptr; }
481
+ +class WindowsUIDispatcher final : public Dispatcher {
482
+ + winrt::Microsoft::ReactNative::ReactDispatcher queue{nullptr};
483
+ +public:
484
+ + WindowsUIDispatcher() { std::lock_guard lock(uiMutex); queue = ui; if (!queue) throw std::runtime_error("Windows UI dispatcher is not initialized"); }
485
+ + void runAsync(std::function<void()> &&fn) override { queue.Post([fn = std::move(fn)]() { fn(); }); }
486
+ + void runSync(std::function<void()> &&fn) override { if (queue.HasThreadAccess()) { fn(); return; } auto task = std::make_shared<std::packaged_task<void()>>(std::move(fn)); auto done = task->get_future(); runAsync([task]() { (*task)(); }); done.get(); }
487
+ +};
488
+ +std::shared_ptr<Dispatcher> ThreadUtils::createUIThreadDispatcher() { return std::make_shared<WindowsUIDispatcher>(); }
489
+ +void Logger::nativeLog(LogLevel, char const *tag, std::string const &text) { OutputDebugStringA((std::string(tag) + ": " + text + "\n").c_str()); }
490
+ +}
491
+ diff --git a/windows/SparkNitro/ReactPackageProvider.cpp b/windows/SparkNitro/ReactPackageProvider.cpp
492
+ new file mode 100644
493
+ index 0000000..8c5cf23
494
+ --- /dev/null
495
+ +++ b/windows/SparkNitro/ReactPackageProvider.cpp
496
+ @@ -0,0 +1,20 @@
497
+ +#include "pch.h"
498
+ +
499
+ +#include "ReactPackageProvider.h"
500
+ +#if __has_include("ReactPackageProvider.g.cpp")
501
+ +#include "ReactPackageProvider.g.cpp"
502
+ +#endif
503
+ +
504
+ +#include "SparkNitro.h"
505
+ +
506
+ +using namespace winrt::Microsoft::ReactNative;
507
+ +
508
+ +namespace winrt::SparkNitro::implementation
509
+ +{
510
+ +
511
+ +void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept
512
+ +{
513
+ + AddAttributedModules(packageBuilder, true);
514
+ +}
515
+ +
516
+ +} // namespace winrt::SparkNitro::implementation
517
+ diff --git a/windows/SparkNitro/ReactPackageProvider.h b/windows/SparkNitro/ReactPackageProvider.h
518
+ new file mode 100644
519
+ index 0000000..835f7e3
520
+ --- /dev/null
521
+ +++ b/windows/SparkNitro/ReactPackageProvider.h
522
+ @@ -0,0 +1,24 @@
523
+ +#pragma once
524
+ +
525
+ +#include "ReactPackageProvider.g.h"
526
+ +
527
+ +using namespace winrt::Microsoft::ReactNative;
528
+ +
529
+ +namespace winrt::SparkNitro::implementation
530
+ +{
531
+ +
532
+ +struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
533
+ +{
534
+ + ReactPackageProvider() = default;
535
+ +
536
+ + void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
537
+ +};
538
+ +
539
+ +} // namespace winrt::SparkNitro::implementation
540
+ +
541
+ +namespace winrt::SparkNitro::factory_implementation
542
+ +{
543
+ +
544
+ +struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
545
+ +
546
+ +} // namespace winrt::SparkNitro::factory_implementation
547
+ diff --git a/windows/SparkNitro/ReactPackageProvider.idl b/windows/SparkNitro/ReactPackageProvider.idl
548
+ new file mode 100644
549
+ index 0000000..d2827af
550
+ --- /dev/null
551
+ +++ b/windows/SparkNitro/ReactPackageProvider.idl
552
+ @@ -0,0 +1,9 @@
553
+ +namespace SparkNitro
554
+ +{
555
+ + [webhosthidden]
556
+ + [default_interface]
557
+ + runtimeclass ReactPackageProvider : Microsoft.ReactNative.IReactPackageProvider
558
+ + {
559
+ + ReactPackageProvider();
560
+ + };
561
+ +}
562
+ diff --git a/windows/SparkNitro/SparkNitro.cpp b/windows/SparkNitro/SparkNitro.cpp
563
+ new file mode 100644
564
+ index 0000000..c07a31f
565
+ --- /dev/null
566
+ +++ b/windows/SparkNitro/SparkNitro.cpp
567
+ @@ -0,0 +1,2 @@
568
+ +#include "pch.h"
569
+ +#include "SparkNitro.h"
570
+ diff --git a/windows/SparkNitro/SparkNitro.def b/windows/SparkNitro/SparkNitro.def
571
+ new file mode 100644
572
+ index 0000000..24e7c12
573
+ --- /dev/null
574
+ +++ b/windows/SparkNitro/SparkNitro.def
575
+ @@ -0,0 +1,3 @@
576
+ +EXPORTS
577
+ +DllCanUnloadNow = WINRT_CanUnloadNow PRIVATE
578
+ +DllGetActivationFactory = WINRT_GetActivationFactory PRIVATE
579
+ diff --git a/windows/SparkNitro/SparkNitro.h b/windows/SparkNitro/SparkNitro.h
580
+ new file mode 100644
581
+ index 0000000..f52a0b2
582
+ --- /dev/null
583
+ +++ b/windows/SparkNitro/SparkNitro.h
584
+ @@ -0,0 +1,19 @@
585
+ +#pragma once
586
+ +#include "NativeModules.h"
587
+ +#include <InstallNitro.hpp>
588
+ +#include <CallInvokerDispatcher.hpp>
589
+ +#include <optional>
590
+ +namespace margelo::nitro { void SetWindowsUIDispatcher(winrt::Microsoft::ReactNative::ReactDispatcher const &); }
591
+ +REACT_MODULE(SparkNitroModule, L"NitroModules")
592
+ +struct SparkNitroModule {
593
+ + std::optional<std::string> installError = "The Windows Nitro JSI initializer did not run";
594
+ + REACT_INIT(Initialize) void Initialize(winrt::Microsoft::ReactNative::ReactContext const &context, facebook::jsi::Runtime &runtime) noexcept {
595
+ + try {
596
+ + margelo::nitro::SetWindowsUIDispatcher(context.UIDispatcher());
597
+ + margelo::nitro::install(runtime, std::make_shared<margelo::nitro::CallInvokerDispatcher>(context.CallInvoker()));
598
+ + installError.reset();
599
+ + } catch (std::exception const &error) { installError = error.what(); }
600
+ + catch (winrt::hresult_error const &error) { installError = winrt::to_string(error.message()); }
601
+ + }
602
+ + REACT_SYNC_METHOD(install) std::optional<std::string> install() noexcept { return installError; }
603
+ +};
604
+ diff --git a/windows/SparkNitro/SparkNitro.rc b/windows/SparkNitro/SparkNitro.rc
605
+ new file mode 100644
606
+ index 0000000..23aece1
607
+ --- /dev/null
608
+ +++ b/windows/SparkNitro/SparkNitro.rc
609
+ @@ -0,0 +1,3 @@
610
+ +// Microsoft Visual C++ generated resource script.
611
+ +//
612
+ +#include "resource.h"
613
+ diff --git a/windows/SparkNitro/SparkNitro.vcxproj b/windows/SparkNitro/SparkNitro.vcxproj
614
+ new file mode 100644
615
+ index 0000000..a311622
616
+ --- /dev/null
617
+ +++ b/windows/SparkNitro/SparkNitro.vcxproj
618
+ @@ -0,0 +1,148 @@
619
+ +<?xml version="1.0" encoding="utf-8"?>
620
+ +<!-- This project was created with react-native-windows 0.81.35 -->
621
+ +<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
622
+ + <Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
623
+ + <PropertyGroup Label="Globals">
624
+ + <CppWinRTOptimized>true</CppWinRTOptimized>
625
+ + <MinimalCoreWin>true</MinimalCoreWin>
626
+ + <ProjectGuid>{6A8C5C24-E759-4E69-AE60-36A65693573D}</ProjectGuid>
627
+ + <ProjectName>SparkNitro</ProjectName>
628
+ + <Keyword>Win32Proj</Keyword>
629
+ + <RootNamespace>SparkNitro</RootNamespace>
630
+ + <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
631
+ + <DefaultLanguage>en-US</DefaultLanguage>
632
+ + <MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
633
+ + <AppxPackage>false</AppxPackage>
634
+ + </PropertyGroup>
635
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
636
+ + <PropertyGroup Label="ReactNativeWindowsProps">
637
+ + <ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
638
+ + <RunAutolinkCheck>false</RunAutolinkCheck>
639
+ + </PropertyGroup>
640
+ + <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" />
641
+ + <ItemGroup Label="ProjectConfigurations">
642
+ + <ProjectConfiguration Include="Debug|Win32">
643
+ + <Configuration>Debug</Configuration>
644
+ + <Platform>Win32</Platform>
645
+ + </ProjectConfiguration>
646
+ + <ProjectConfiguration Include="Release|Win32">
647
+ + <Configuration>Release</Configuration>
648
+ + <Platform>Win32</Platform>
649
+ + </ProjectConfiguration>
650
+ + <ProjectConfiguration Include="Debug|x64">
651
+ + <Configuration>Debug</Configuration>
652
+ + <Platform>x64</Platform>
653
+ + </ProjectConfiguration>
654
+ + <ProjectConfiguration Include="Release|x64">
655
+ + <Configuration>Release</Configuration>
656
+ + <Platform>x64</Platform>
657
+ + </ProjectConfiguration>
658
+ + <ProjectConfiguration Include="Debug|ARM64">
659
+ + <Configuration>Debug</Configuration>
660
+ + <Platform>ARM64</Platform>
661
+ + </ProjectConfiguration>
662
+ + <ProjectConfiguration Include="Release|ARM64">
663
+ + <Configuration>Release</Configuration>
664
+ + <Platform>ARM64</Platform>
665
+ + </ProjectConfiguration>
666
+ + </ItemGroup>
667
+ + <PropertyGroup Label="Configuration">
668
+ + <ConfigurationType>DynamicLibrary</ConfigurationType>
669
+ + <CharacterSet>Unicode</CharacterSet>
670
+ + <PlatformToolset>v145</PlatformToolset>
671
+ + <GenerateManifest>false</GenerateManifest>
672
+ + </PropertyGroup>
673
+ + <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
674
+ + <UseDebugLibraries>true</UseDebugLibraries>
675
+ + </PropertyGroup>
676
+ + <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
677
+ + <UseDebugLibraries>false</UseDebugLibraries>
678
+ + <WholeProgramOptimization>true</WholeProgramOptimization>
679
+ + </PropertyGroup>
680
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
681
+ + <ImportGroup Label="ExtensionSettings">
682
+ + </ImportGroup>
683
+ + <ImportGroup Label="PropertySheets">
684
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
685
+ + </ImportGroup>
686
+ + <ImportGroup Label="ReactNativeWindowsPropertySheets">
687
+ + <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" />
688
+ + </ImportGroup>
689
+ + <ItemDefinitionGroup>
690
+ + <ClCompile>
691
+ + <PrecompiledHeader>Use</PrecompiledHeader>
692
+ + <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
693
+ + <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
694
+ + <WarningLevel>Level4</WarningLevel>
695
+ + <SDLCheck>true</SDLCheck>
696
+ + <LanguageStandard>stdcpp20</LanguageStandard>
697
+ + <AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
698
+ + <DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
699
+ + <PreprocessorDefinitions>_WINRT_DLL;NOMINMAX;WIN32_LEAN_AND_MEAN;_CRT_SECURE_NO_WARNINGS;NITRO_WINDOWS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
700
+ + <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
701
+ + <AdditionalIncludeDirectories>
702
+ + $(MSBuildThisFileDirectory);$(MSBuildThisFileDirectory)..\..\cpp\core;$(MSBuildThisFileDirectory)..\..\cpp\jsi;$(MSBuildThisFileDirectory)..\..\cpp\platform;$(MSBuildThisFileDirectory)..\..\cpp\prototype;$(MSBuildThisFileDirectory)..\..\cpp\registry;$(MSBuildThisFileDirectory)..\..\cpp\entrypoint;$(MSBuildThisFileDirectory)..\..\cpp\templates;$(MSBuildThisFileDirectory)..\..\cpp\threading;$(MSBuildThisFileDirectory)..\..\cpp\utils;$(MSBuildThisFileDirectory)..\..\cpp\views;
703
+ + %(AdditionalIncludeDirectories)
704
+ + </AdditionalIncludeDirectories>
705
+ + </ClCompile>
706
+ + <Link>
707
+ + <AdditionalDependencies>shell32.lib;user32.lib;windowsapp.lib;%(AdditionalDependencies)</AdditionalDependencies>
708
+ + <SubSystem>Console</SubSystem>
709
+ + <GenerateWindowsMetadata>true</GenerateWindowsMetadata>
710
+ + <ModuleDefinitionFile>SparkNitro.def</ModuleDefinitionFile>
711
+ + </Link>
712
+ + </ItemDefinitionGroup>
713
+ + <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
714
+ + <ClCompile>
715
+ + <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
716
+ + </ClCompile>
717
+ + </ItemDefinitionGroup>
718
+ + <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
719
+ + <ClCompile>
720
+ + <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
721
+ + </ClCompile>
722
+ + </ItemDefinitionGroup>
723
+ + <PropertyGroup Label="UserMacros" />
724
+ + <ItemGroup>
725
+ + <ClInclude Include="SparkNitro.h" />
726
+ + <ClInclude Include="ReactPackageProvider.h">
727
+ + <DependentUpon>ReactPackageProvider.idl</DependentUpon>
728
+ + </ClInclude>
729
+ + <ClInclude Include="resource.h" />
730
+ + <ClInclude Include="pch.h" />
731
+ + <ClInclude Include="targetver.h" />
732
+ + </ItemGroup>
733
+ + <ItemGroup>
734
+ + <ClCompile Include="SparkNitro.cpp" />
735
+ + <ClCompile Include="pch.cpp">
736
+ + <PrecompiledHeader>Create</PrecompiledHeader>
737
+ + </ClCompile>
738
+ + <ClCompile Include="ReactPackageProvider.cpp">
739
+ + <DependentUpon>ReactPackageProvider.idl</DependentUpon>
740
+ + </ClCompile>
741
+ + <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
742
+ + </ItemGroup>
743
+ + <ItemGroup>
744
+ + <Midl Include="ReactPackageProvider.idl" />
745
+ + </ItemGroup>
746
+ + <ItemGroup>
747
+ + <ResourceCompile Include="SparkNitro.rc" />
748
+ + </ItemGroup>
749
+ + <ItemGroup>
750
+ +<ClCompile Include="$(MSBuildThisFileDirectory)..\..\cpp\**\*.cpp"><PrecompiledHeader>NotUsing</PrecompiledHeader></ClCompile>
751
+ +<ClCompile Include="Platform.cpp" />
752
+ +</ItemGroup>
753
+ +<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
754
+ + <ImportGroup Label="ReactNativeWindowsTargets">
755
+ + <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" />
756
+ + </ImportGroup>
757
+ + <ItemGroup>
758
+ + </ItemGroup>
759
+ + <Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
760
+ + <PropertyGroup>
761
+ + <ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
762
+ + </PropertyGroup>
763
+ + <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props'))" />
764
+ + <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets'))" />
765
+ + </Target>
766
+ +</Project>
767
+
768
+ diff --git a/windows/SparkNitro/SparkNitro.vcxproj.filters b/windows/SparkNitro/SparkNitro.vcxproj.filters
769
+ new file mode 100644
770
+ index 0000000..b9faa0a
771
+ --- /dev/null
772
+ +++ b/windows/SparkNitro/SparkNitro.vcxproj.filters
773
+ @@ -0,0 +1,44 @@
774
+ +<?xml version="1.0" encoding="utf-8"?>
775
+ +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
776
+ + <ItemGroup>
777
+ + <Filter Include="Source Files">
778
+ + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
779
+ + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
780
+ + </Filter>
781
+ + <Filter Include="Header Files">
782
+ + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
783
+ + <Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
784
+ + </Filter>
785
+ + <Filter Include="Resource Files">
786
+ + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
787
+ + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
788
+ + </Filter>
789
+ + </ItemGroup>
790
+ + <ItemGroup>
791
+ + <ClInclude Include="targetver.h">
792
+ + <Filter>Header Files</Filter>
793
+ + </ClInclude>
794
+ + <ClInclude Include="resource.h">
795
+ + <Filter>Header Files</Filter>
796
+ + </ClInclude>
797
+ + <ClInclude Include="SparkNitro.h">
798
+ + <Filter>Header Files</Filter>
799
+ + </ClInclude>
800
+ + <ClInclude Include="pch.h">
801
+ + <Filter>Header Files</Filter>
802
+ + </ClInclude>
803
+ + </ItemGroup>
804
+ + <ItemGroup>
805
+ + <ClCompile Include="SparkNitro.cpp">
806
+ + <Filter>Source Files</Filter>
807
+ + </ClCompile>
808
+ + <ClCompile Include="pch.cpp">
809
+ + <Filter>Source Files</Filter>
810
+ + </ClCompile>
811
+ + </ItemGroup>
812
+ + <ItemGroup>
813
+ + <ResourceCompile Include="SparkNitro.rc">
814
+ + <Filter>Resource Files</Filter>
815
+ + </ResourceCompile>
816
+ + </ItemGroup>
817
+ +</Project>
818
+
819
+ diff --git a/windows/SparkNitro/pch.cpp b/windows/SparkNitro/pch.cpp
820
+ new file mode 100644
821
+ index 0000000..1d9f38c
822
+ --- /dev/null
823
+ +++ b/windows/SparkNitro/pch.cpp
824
+ @@ -0,0 +1 @@
825
+ +#include "pch.h"
826
+ diff --git a/windows/SparkNitro/pch.h b/windows/SparkNitro/pch.h
827
+ new file mode 100644
828
+ index 0000000..61d356d
829
+ --- /dev/null
830
+ +++ b/windows/SparkNitro/pch.h
831
+ @@ -0,0 +1,30 @@
832
+ +// pch.h : include file for standard system include files,
833
+ +// or project specific include files that are used frequently, but
834
+ +// are changed infrequently
835
+ +//
836
+ +
837
+ +#pragma once
838
+ +
839
+ +#include "targetver.h"
840
+ +
841
+ +#define NOMINMAX 1
842
+ +#define WIN32_LEAN_AND_MEAN 1
843
+ +#define WINRT_LEAN_AND_MEAN 1
844
+ +
845
+ +// Windows Header Files
846
+ +#include <windows.h>
847
+ +#undef GetCurrentTime
848
+ +#include <unknwn.h>
849
+ +
850
+ +// WinRT Header Files
851
+ +#include <winrt/base.h>
852
+ +#include <CppWinRTIncludes.h>
853
+ +#include <winrt/Microsoft.ReactNative.h>
854
+ +
855
+ +// C RunTime Header Files
856
+ +#include <malloc.h>
857
+ +#include <memory.h>
858
+ +#include <stdlib.h>
859
+ +#include <tchar.h>
860
+ +
861
+ +// Reference additional headers your project requires here
862
+ diff --git a/windows/SparkNitro/resource.h b/windows/SparkNitro/resource.h
863
+ new file mode 100644
864
+ index 0000000..6d291a6
865
+ --- /dev/null
866
+ +++ b/windows/SparkNitro/resource.h
867
+ @@ -0,0 +1,5 @@
868
+ +//
869
+ +// Microsoft Visual C++ generated include file.
870
+ +// Used by SparkNitro.rc
871
+ +
872
+ +#pragma once
873
+ diff --git a/windows/SparkNitro/targetver.h b/windows/SparkNitro/targetver.h
874
+ new file mode 100644
875
+ index 0000000..87c0086
876
+ --- /dev/null
877
+ +++ b/windows/SparkNitro/targetver.h
878
+ @@ -0,0 +1,8 @@
879
+ +#pragma once
880
+ +
881
+ +// Including SDKDDKVer.h defines the highest available Windows platform.
882
+ +
883
+ +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
884
+ +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
885
+ +
886
+ +#include <SDKDDKVer.h>
887
+ diff --git a/windows/SparkNitro.sln b/windows/SparkNitro.sln
888
+ new file mode 100644
889
+ index 0000000..2c2c8c3
890
+ --- /dev/null
891
+ +++ b/windows/SparkNitro.sln
892
+ @@ -0,0 +1,43 @@
893
+ +
894
+ +Microsoft Visual Studio Solution File, Format Version 12.00
895
+ +# Visual Studio Version 17
896
+ +VisualStudioVersion = 17.3.32929.385
897
+ +MinimumVisualStudioVersion = 10.0.40219.1
898
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SparkNitro", "SparkNitro\SparkNitro.vcxproj", "{6A8C5C24-E759-4E69-AE60-36A65693573D}"
899
+ +EndProject
900
+ +Global
901
+ + GlobalSection(SolutionConfigurationPlatforms) = preSolution
902
+ + Debug|x64 = Debug|x64
903
+ + Debug|x86 = Debug|x86
904
+ + Debug|ARM64 = Debug|ARM64
905
+ + Release|x64 = Release|x64
906
+ + Release|x86 = Release|x86
907
+ + Release|ARM64 = Release|ARM64
908
+ + EndGlobalSection
909
+ + GlobalSection(ProjectConfigurationPlatforms) = postSolution
910
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x64.ActiveCfg = Debug|x64
911
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x64.Build.0 = Debug|x64
912
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x64.Deploy.0 = Debug|x64
913
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x86.ActiveCfg = Debug|Win32
914
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x86.Build.0 = Debug|Win32
915
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|x86.Deploy.0 = Debug|Win32
916
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|ARM64.ActiveCfg = Debug|ARM64
917
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|ARM64.Build.0 = Debug|ARM64
918
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Debug|ARM64.Deploy.0 = Debug|ARM64
919
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x64.ActiveCfg = Release|x64
920
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x64.Build.0 = Release|x64
921
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x64.Deploy.0 = Release|x64
922
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x86.ActiveCfg = Release|Win32
923
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x86.Build.0 = Release|Win32
924
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|x86.Deploy.0 = Release|Win32
925
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|ARM64.ActiveCfg = Release|ARM64
926
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|ARM64.Build.0 = Release|ARM64
927
+ + {6A8C5C24-E759-4E69-AE60-36A65693573D}.Release|ARM64.Deploy.0 = Release|ARM64
928
+ + EndGlobalSection
929
+ + GlobalSection(SolutionProperties) = preSolution
930
+ + HideSolutionNode = FALSE
931
+ + EndGlobalSection
932
+ + GlobalSection(ExtensibilityGlobals) = postSolution
933
+ + SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
934
+ + EndGlobalSection
935
+ +EndGlobal
936
+ diff --git a/windows/include/NitroModules/AnyMap.hpp b/windows/include/NitroModules/AnyMap.hpp
937
+ new file mode 100644
938
+ index 0000000..bec56cc
939
+ --- /dev/null
940
+ +++ b/windows/include/NitroModules/AnyMap.hpp
941
+ @@ -0,0 +1 @@
942
+ +#include "../../../cpp/core/AnyMap.hpp"
943
+ diff --git a/windows/include/NitroModules/ArrayBuffer.hpp b/windows/include/NitroModules/ArrayBuffer.hpp
944
+ new file mode 100644
945
+ index 0000000..401e788
946
+ --- /dev/null
947
+ +++ b/windows/include/NitroModules/ArrayBuffer.hpp
948
+ @@ -0,0 +1 @@
949
+ +#include "../../../cpp/core/ArrayBuffer.hpp"
950
+ diff --git a/windows/include/NitroModules/AssertPromiseState.hpp b/windows/include/NitroModules/AssertPromiseState.hpp
951
+ new file mode 100644
952
+ index 0000000..855330e
953
+ --- /dev/null
954
+ +++ b/windows/include/NitroModules/AssertPromiseState.hpp
955
+ @@ -0,0 +1 @@
956
+ +#include "../../../cpp/utils/AssertPromiseState.hpp"
957
+ diff --git a/windows/include/NitroModules/BorrowingReference.hpp b/windows/include/NitroModules/BorrowingReference.hpp
958
+ new file mode 100644
959
+ index 0000000..4456e08
960
+ --- /dev/null
961
+ +++ b/windows/include/NitroModules/BorrowingReference.hpp
962
+ @@ -0,0 +1 @@
963
+ +#include "../../../cpp/utils/BorrowingReference.hpp"
964
+ diff --git a/windows/include/NitroModules/BoxedHybridObject.hpp b/windows/include/NitroModules/BoxedHybridObject.hpp
965
+ new file mode 100644
966
+ index 0000000..0788f88
967
+ --- /dev/null
968
+ +++ b/windows/include/NitroModules/BoxedHybridObject.hpp
969
+ @@ -0,0 +1 @@
970
+ +#include "../../../cpp/core/BoxedHybridObject.hpp"
971
+ diff --git a/windows/include/NitroModules/CachedProp.hpp b/windows/include/NitroModules/CachedProp.hpp
972
+ new file mode 100644
973
+ index 0000000..d2278d1
974
+ --- /dev/null
975
+ +++ b/windows/include/NitroModules/CachedProp.hpp
976
+ @@ -0,0 +1 @@
977
+ +#include "../../../cpp/views/CachedProp.hpp"
978
+ diff --git a/windows/include/NitroModules/CallInvokerDispatcher.hpp b/windows/include/NitroModules/CallInvokerDispatcher.hpp
979
+ new file mode 100644
980
+ index 0000000..032358e
981
+ --- /dev/null
982
+ +++ b/windows/include/NitroModules/CallInvokerDispatcher.hpp
983
+ @@ -0,0 +1 @@
984
+ +#include "../../../cpp/threading/CallInvokerDispatcher.hpp"
985
+ diff --git a/windows/include/NitroModules/CommonGlobals.hpp b/windows/include/NitroModules/CommonGlobals.hpp
986
+ new file mode 100644
987
+ index 0000000..6698678
988
+ --- /dev/null
989
+ +++ b/windows/include/NitroModules/CommonGlobals.hpp
990
+ @@ -0,0 +1 @@
991
+ +#include "../../../cpp/utils/CommonGlobals.hpp"
992
+ diff --git a/windows/include/NitroModules/CountTrailingOptionals.hpp b/windows/include/NitroModules/CountTrailingOptionals.hpp
993
+ new file mode 100644
994
+ index 0000000..9db2e75
995
+ --- /dev/null
996
+ +++ b/windows/include/NitroModules/CountTrailingOptionals.hpp
997
+ @@ -0,0 +1 @@
998
+ +#include "../../../cpp/templates/CountTrailingOptionals.hpp"
999
+ diff --git a/windows/include/NitroModules/Dispatcher.hpp b/windows/include/NitroModules/Dispatcher.hpp
1000
+ new file mode 100644
1001
+ index 0000000..6683867
1002
+ --- /dev/null
1003
+ +++ b/windows/include/NitroModules/Dispatcher.hpp
1004
+ @@ -0,0 +1 @@
1005
+ +#include "../../../cpp/threading/Dispatcher.hpp"
1006
+ diff --git a/windows/include/NitroModules/FastVectorCopy.hpp b/windows/include/NitroModules/FastVectorCopy.hpp
1007
+ new file mode 100644
1008
+ index 0000000..3757d09
1009
+ --- /dev/null
1010
+ +++ b/windows/include/NitroModules/FastVectorCopy.hpp
1011
+ @@ -0,0 +1 @@
1012
+ +#include "../../../cpp/utils/FastVectorCopy.hpp"
1013
+ diff --git a/windows/include/NitroModules/FutureType.hpp b/windows/include/NitroModules/FutureType.hpp
1014
+ new file mode 100644
1015
+ index 0000000..70455c4
1016
+ --- /dev/null
1017
+ +++ b/windows/include/NitroModules/FutureType.hpp
1018
+ @@ -0,0 +1 @@
1019
+ +#include "../../../cpp/templates/FutureType.hpp"
1020
+ diff --git a/windows/include/NitroModules/HybridFunction.hpp b/windows/include/NitroModules/HybridFunction.hpp
1021
+ new file mode 100644
1022
+ index 0000000..c2c787c
1023
+ --- /dev/null
1024
+ +++ b/windows/include/NitroModules/HybridFunction.hpp
1025
+ @@ -0,0 +1 @@
1026
+ +#include "../../../cpp/core/HybridFunction.hpp"
1027
+ diff --git a/windows/include/NitroModules/HybridNitroModulesProxy.hpp b/windows/include/NitroModules/HybridNitroModulesProxy.hpp
1028
+ new file mode 100644
1029
+ index 0000000..5da70bd
1030
+ --- /dev/null
1031
+ +++ b/windows/include/NitroModules/HybridNitroModulesProxy.hpp
1032
+ @@ -0,0 +1 @@
1033
+ +#include "../../../cpp/entrypoint/HybridNitroModulesProxy.hpp"
1034
+ diff --git a/windows/include/NitroModules/HybridObject.hpp b/windows/include/NitroModules/HybridObject.hpp
1035
+ new file mode 100644
1036
+ index 0000000..fc59b62
1037
+ --- /dev/null
1038
+ +++ b/windows/include/NitroModules/HybridObject.hpp
1039
+ @@ -0,0 +1 @@
1040
+ +#include "../../../cpp/core/HybridObject.hpp"
1041
+ diff --git a/windows/include/NitroModules/HybridObjectPrototype.hpp b/windows/include/NitroModules/HybridObjectPrototype.hpp
1042
+ new file mode 100644
1043
+ index 0000000..d9791dd
1044
+ --- /dev/null
1045
+ +++ b/windows/include/NitroModules/HybridObjectPrototype.hpp
1046
+ @@ -0,0 +1 @@
1047
+ +#include "../../../cpp/prototype/HybridObjectPrototype.hpp"
1048
+ diff --git a/windows/include/NitroModules/HybridObjectRegistry.hpp b/windows/include/NitroModules/HybridObjectRegistry.hpp
1049
+ new file mode 100644
1050
+ index 0000000..ca47d00
1051
+ --- /dev/null
1052
+ +++ b/windows/include/NitroModules/HybridObjectRegistry.hpp
1053
+ @@ -0,0 +1 @@
1054
+ +#include "../../../cpp/registry/HybridObjectRegistry.hpp"
1055
+ diff --git a/windows/include/NitroModules/InstallNitro.hpp b/windows/include/NitroModules/InstallNitro.hpp
1056
+ new file mode 100644
1057
+ index 0000000..c64e5c9
1058
+ --- /dev/null
1059
+ +++ b/windows/include/NitroModules/InstallNitro.hpp
1060
+ @@ -0,0 +1 @@
1061
+ +#include "../../../cpp/entrypoint/InstallNitro.hpp"
1062
+ diff --git a/windows/include/NitroModules/InstanceMethod.hpp b/windows/include/NitroModules/InstanceMethod.hpp
1063
+ new file mode 100644
1064
+ index 0000000..2a989f8
1065
+ --- /dev/null
1066
+ +++ b/windows/include/NitroModules/InstanceMethod.hpp
1067
+ @@ -0,0 +1 @@
1068
+ +#include "../../../cpp/templates/InstanceMethod.hpp"
1069
+ diff --git a/windows/include/NitroModules/IsFunctionProp.hpp b/windows/include/NitroModules/IsFunctionProp.hpp
1070
+ new file mode 100644
1071
+ index 0000000..7c9c39b
1072
+ --- /dev/null
1073
+ +++ b/windows/include/NitroModules/IsFunctionProp.hpp
1074
+ @@ -0,0 +1 @@
1075
+ +#include "../../../cpp/templates/IsFunctionProp.hpp"
1076
+ diff --git a/windows/include/NitroModules/IsSharedPtrTo.hpp b/windows/include/NitroModules/IsSharedPtrTo.hpp
1077
+ new file mode 100644
1078
+ index 0000000..6a0fab2
1079
+ --- /dev/null
1080
+ +++ b/windows/include/NitroModules/IsSharedPtrTo.hpp
1081
+ @@ -0,0 +1 @@
1082
+ +#include "../../../cpp/templates/IsSharedPtrTo.hpp"
1083
+ diff --git a/windows/include/NitroModules/JSCallback.hpp b/windows/include/NitroModules/JSCallback.hpp
1084
+ new file mode 100644
1085
+ index 0000000..a8cf61b
1086
+ --- /dev/null
1087
+ +++ b/windows/include/NitroModules/JSCallback.hpp
1088
+ @@ -0,0 +1 @@
1089
+ +#include "../../../cpp/utils/JSCallback.hpp"
1090
+ diff --git a/windows/include/NitroModules/JSICache.hpp b/windows/include/NitroModules/JSICache.hpp
1091
+ new file mode 100644
1092
+ index 0000000..b1cfc10
1093
+ --- /dev/null
1094
+ +++ b/windows/include/NitroModules/JSICache.hpp
1095
+ @@ -0,0 +1 @@
1096
+ +#include "../../../cpp/jsi/JSICache.hpp"
1097
+ diff --git a/windows/include/NitroModules/JSIConverter+AnyMap.hpp b/windows/include/NitroModules/JSIConverter+AnyMap.hpp
1098
+ new file mode 100644
1099
+ index 0000000..3fc3edf
1100
+ --- /dev/null
1101
+ +++ b/windows/include/NitroModules/JSIConverter+AnyMap.hpp
1102
+ @@ -0,0 +1 @@
1103
+ +#include "../../../cpp/jsi/JSIConverter+AnyMap.hpp"
1104
+ diff --git a/windows/include/NitroModules/JSIConverter+ArrayBuffer.hpp b/windows/include/NitroModules/JSIConverter+ArrayBuffer.hpp
1105
+ new file mode 100644
1106
+ index 0000000..93fc05d
1107
+ --- /dev/null
1108
+ +++ b/windows/include/NitroModules/JSIConverter+ArrayBuffer.hpp
1109
+ @@ -0,0 +1 @@
1110
+ +#include "../../../cpp/jsi/JSIConverter+ArrayBuffer.hpp"
1111
+ diff --git a/windows/include/NitroModules/JSIConverter+Date.hpp b/windows/include/NitroModules/JSIConverter+Date.hpp
1112
+ new file mode 100644
1113
+ index 0000000..8ee2dcd
1114
+ --- /dev/null
1115
+ +++ b/windows/include/NitroModules/JSIConverter+Date.hpp
1116
+ @@ -0,0 +1 @@
1117
+ +#include "../../../cpp/jsi/JSIConverter+Date.hpp"
1118
+ diff --git a/windows/include/NitroModules/JSIConverter+Exception.hpp b/windows/include/NitroModules/JSIConverter+Exception.hpp
1119
+ new file mode 100644
1120
+ index 0000000..6ef7703
1121
+ --- /dev/null
1122
+ +++ b/windows/include/NitroModules/JSIConverter+Exception.hpp
1123
+ @@ -0,0 +1 @@
1124
+ +#include "../../../cpp/jsi/JSIConverter+Exception.hpp"
1125
+ diff --git a/windows/include/NitroModules/JSIConverter+Function.hpp b/windows/include/NitroModules/JSIConverter+Function.hpp
1126
+ new file mode 100644
1127
+ index 0000000..32ce339
1128
+ --- /dev/null
1129
+ +++ b/windows/include/NitroModules/JSIConverter+Function.hpp
1130
+ @@ -0,0 +1 @@
1131
+ +#include "../../../cpp/jsi/JSIConverter+Function.hpp"
1132
+ diff --git a/windows/include/NitroModules/JSIConverter+HostObject.hpp b/windows/include/NitroModules/JSIConverter+HostObject.hpp
1133
+ new file mode 100644
1134
+ index 0000000..68c0a13
1135
+ --- /dev/null
1136
+ +++ b/windows/include/NitroModules/JSIConverter+HostObject.hpp
1137
+ @@ -0,0 +1 @@
1138
+ +#include "../../../cpp/jsi/JSIConverter+HostObject.hpp"
1139
+ diff --git a/windows/include/NitroModules/JSIConverter+NativeState.hpp b/windows/include/NitroModules/JSIConverter+NativeState.hpp
1140
+ new file mode 100644
1141
+ index 0000000..e4bc7be
1142
+ --- /dev/null
1143
+ +++ b/windows/include/NitroModules/JSIConverter+NativeState.hpp
1144
+ @@ -0,0 +1 @@
1145
+ +#include "../../../cpp/jsi/JSIConverter+NativeState.hpp"
1146
+ diff --git a/windows/include/NitroModules/JSIConverter+Null.hpp b/windows/include/NitroModules/JSIConverter+Null.hpp
1147
+ new file mode 100644
1148
+ index 0000000..69e3a01
1149
+ --- /dev/null
1150
+ +++ b/windows/include/NitroModules/JSIConverter+Null.hpp
1151
+ @@ -0,0 +1 @@
1152
+ +#include "../../../cpp/jsi/JSIConverter+Null.hpp"
1153
+ diff --git a/windows/include/NitroModules/JSIConverter+Optional.hpp b/windows/include/NitroModules/JSIConverter+Optional.hpp
1154
+ new file mode 100644
1155
+ index 0000000..a47ffce
1156
+ --- /dev/null
1157
+ +++ b/windows/include/NitroModules/JSIConverter+Optional.hpp
1158
+ @@ -0,0 +1 @@
1159
+ +#include "../../../cpp/jsi/JSIConverter+Optional.hpp"
1160
+ diff --git a/windows/include/NitroModules/JSIConverter+Promise.hpp b/windows/include/NitroModules/JSIConverter+Promise.hpp
1161
+ new file mode 100644
1162
+ index 0000000..2fea65f
1163
+ --- /dev/null
1164
+ +++ b/windows/include/NitroModules/JSIConverter+Promise.hpp
1165
+ @@ -0,0 +1 @@
1166
+ +#include "../../../cpp/jsi/JSIConverter+Promise.hpp"
1167
+ diff --git a/windows/include/NitroModules/JSIConverter+Tuple.hpp b/windows/include/NitroModules/JSIConverter+Tuple.hpp
1168
+ new file mode 100644
1169
+ index 0000000..6576fdb
1170
+ --- /dev/null
1171
+ +++ b/windows/include/NitroModules/JSIConverter+Tuple.hpp
1172
+ @@ -0,0 +1 @@
1173
+ +#include "../../../cpp/jsi/JSIConverter+Tuple.hpp"
1174
+ diff --git a/windows/include/NitroModules/JSIConverter+UnorderedMap.hpp b/windows/include/NitroModules/JSIConverter+UnorderedMap.hpp
1175
+ new file mode 100644
1176
+ index 0000000..29c6120
1177
+ --- /dev/null
1178
+ +++ b/windows/include/NitroModules/JSIConverter+UnorderedMap.hpp
1179
+ @@ -0,0 +1 @@
1180
+ +#include "../../../cpp/jsi/JSIConverter+UnorderedMap.hpp"
1181
+ diff --git a/windows/include/NitroModules/JSIConverter+Variant.hpp b/windows/include/NitroModules/JSIConverter+Variant.hpp
1182
+ new file mode 100644
1183
+ index 0000000..bc0101d
1184
+ --- /dev/null
1185
+ +++ b/windows/include/NitroModules/JSIConverter+Variant.hpp
1186
+ @@ -0,0 +1 @@
1187
+ +#include "../../../cpp/jsi/JSIConverter+Variant.hpp"
1188
+ diff --git a/windows/include/NitroModules/JSIConverter+Vector.hpp b/windows/include/NitroModules/JSIConverter+Vector.hpp
1189
+ new file mode 100644
1190
+ index 0000000..d3ff05d
1191
+ --- /dev/null
1192
+ +++ b/windows/include/NitroModules/JSIConverter+Vector.hpp
1193
+ @@ -0,0 +1 @@
1194
+ +#include "../../../cpp/jsi/JSIConverter+Vector.hpp"
1195
+ diff --git a/windows/include/NitroModules/JSIConverter.hpp b/windows/include/NitroModules/JSIConverter.hpp
1196
+ new file mode 100644
1197
+ index 0000000..26bcb03
1198
+ --- /dev/null
1199
+ +++ b/windows/include/NitroModules/JSIConverter.hpp
1200
+ @@ -0,0 +1 @@
1201
+ +#include "../../../cpp/jsi/JSIConverter.hpp"
1202
+ diff --git a/windows/include/NitroModules/JSIHelpers.hpp b/windows/include/NitroModules/JSIHelpers.hpp
1203
+ new file mode 100644
1204
+ index 0000000..3740256
1205
+ --- /dev/null
1206
+ +++ b/windows/include/NitroModules/JSIHelpers.hpp
1207
+ @@ -0,0 +1 @@
1208
+ +#include "../../../cpp/jsi/JSIHelpers.hpp"
1209
+ diff --git a/windows/include/NitroModules/NitroDefines.hpp b/windows/include/NitroModules/NitroDefines.hpp
1210
+ new file mode 100644
1211
+ index 0000000..55e7fc3
1212
+ --- /dev/null
1213
+ +++ b/windows/include/NitroModules/NitroDefines.hpp
1214
+ @@ -0,0 +1 @@
1215
+ +#include "../../../cpp/utils/NitroDefines.hpp"
1216
+ diff --git a/windows/include/NitroModules/NitroHash.hpp b/windows/include/NitroModules/NitroHash.hpp
1217
+ new file mode 100644
1218
+ index 0000000..f67ad6d
1219
+ --- /dev/null
1220
+ +++ b/windows/include/NitroModules/NitroHash.hpp
1221
+ @@ -0,0 +1 @@
1222
+ +#include "../../../cpp/utils/NitroHash.hpp"
1223
+ diff --git a/windows/include/NitroModules/NitroLogger.hpp b/windows/include/NitroModules/NitroLogger.hpp
1224
+ new file mode 100644
1225
+ index 0000000..bf0fe36
1226
+ --- /dev/null
1227
+ +++ b/windows/include/NitroModules/NitroLogger.hpp
1228
+ @@ -0,0 +1 @@
1229
+ +#include "../../../cpp/platform/NitroLogger.hpp"
1230
+ diff --git a/windows/include/NitroModules/NitroTypeInfo.hpp b/windows/include/NitroModules/NitroTypeInfo.hpp
1231
+ new file mode 100644
1232
+ index 0000000..11757e6
1233
+ --- /dev/null
1234
+ +++ b/windows/include/NitroModules/NitroTypeInfo.hpp
1235
+ @@ -0,0 +1 @@
1236
+ +#include "../../../cpp/utils/NitroTypeInfo.hpp"
1237
+ diff --git a/windows/include/NitroModules/Null.hpp b/windows/include/NitroModules/Null.hpp
1238
+ new file mode 100644
1239
+ index 0000000..fb5d3b3
1240
+ --- /dev/null
1241
+ +++ b/windows/include/NitroModules/Null.hpp
1242
+ @@ -0,0 +1 @@
1243
+ +#include "../../../cpp/core/Null.hpp"
1244
+ diff --git a/windows/include/NitroModules/Promise.hpp b/windows/include/NitroModules/Promise.hpp
1245
+ new file mode 100644
1246
+ index 0000000..76dfcdf
1247
+ --- /dev/null
1248
+ +++ b/windows/include/NitroModules/Promise.hpp
1249
+ @@ -0,0 +1 @@
1250
+ +#include "../../../cpp/core/Promise.hpp"
1251
+ diff --git a/windows/include/NitroModules/PromiseType.hpp b/windows/include/NitroModules/PromiseType.hpp
1252
+ new file mode 100644
1253
+ index 0000000..25bf89c
1254
+ --- /dev/null
1255
+ +++ b/windows/include/NitroModules/PromiseType.hpp
1256
+ @@ -0,0 +1 @@
1257
+ +#include "../../../cpp/templates/PromiseType.hpp"
1258
+ diff --git a/windows/include/NitroModules/PropNameIDCache.hpp b/windows/include/NitroModules/PropNameIDCache.hpp
1259
+ new file mode 100644
1260
+ index 0000000..c5f4547
1261
+ --- /dev/null
1262
+ +++ b/windows/include/NitroModules/PropNameIDCache.hpp
1263
+ @@ -0,0 +1 @@
1264
+ +#include "../../../cpp/utils/PropNameIDCache.hpp"
1265
+ diff --git a/windows/include/NitroModules/Prototype.hpp b/windows/include/NitroModules/Prototype.hpp
1266
+ new file mode 100644
1267
+ index 0000000..854e063
1268
+ --- /dev/null
1269
+ +++ b/windows/include/NitroModules/Prototype.hpp
1270
+ @@ -0,0 +1 @@
1271
+ +#include "../../../cpp/prototype/Prototype.hpp"
1272
+ diff --git a/windows/include/NitroModules/PrototypeChain.hpp b/windows/include/NitroModules/PrototypeChain.hpp
1273
+ new file mode 100644
1274
+ index 0000000..30dffa2
1275
+ --- /dev/null
1276
+ +++ b/windows/include/NitroModules/PrototypeChain.hpp
1277
+ @@ -0,0 +1 @@
1278
+ +#include "../../../cpp/prototype/PrototypeChain.hpp"
1279
+ diff --git a/windows/include/NitroModules/RawPropsCompat.hpp b/windows/include/NitroModules/RawPropsCompat.hpp
1280
+ new file mode 100644
1281
+ index 0000000..be1011f
1282
+ --- /dev/null
1283
+ +++ b/windows/include/NitroModules/RawPropsCompat.hpp
1284
+ @@ -0,0 +1 @@
1285
+ +#include "../../../cpp/views/RawPropsCompat.hpp"
1286
+ diff --git a/windows/include/NitroModules/ReactProp.hpp b/windows/include/NitroModules/ReactProp.hpp
1287
+ new file mode 100644
1288
+ index 0000000..218163f
1289
+ --- /dev/null
1290
+ +++ b/windows/include/NitroModules/ReactProp.hpp
1291
+ @@ -0,0 +1 @@
1292
+ +#include "../../../cpp/views/ReactProp.hpp"
1293
+ diff --git a/windows/include/NitroModules/ReferenceState.hpp b/windows/include/NitroModules/ReferenceState.hpp
1294
+ new file mode 100644
1295
+ index 0000000..be85ce2
1296
+ --- /dev/null
1297
+ +++ b/windows/include/NitroModules/ReferenceState.hpp
1298
+ @@ -0,0 +1 @@
1299
+ +#include "../../../cpp/utils/ReferenceState.hpp"
1300
+ diff --git a/windows/include/NitroModules/ThreadPool.hpp b/windows/include/NitroModules/ThreadPool.hpp
1301
+ new file mode 100644
1302
+ index 0000000..8bd2cd4
1303
+ --- /dev/null
1304
+ +++ b/windows/include/NitroModules/ThreadPool.hpp
1305
+ @@ -0,0 +1 @@
1306
+ +#include "../../../cpp/threading/ThreadPool.hpp"
1307
+ diff --git a/windows/include/NitroModules/ThreadUtils.hpp b/windows/include/NitroModules/ThreadUtils.hpp
1308
+ new file mode 100644
1309
+ index 0000000..d033cf5
1310
+ --- /dev/null
1311
+ +++ b/windows/include/NitroModules/ThreadUtils.hpp
1312
+ @@ -0,0 +1 @@
1313
+ +#include "../../../cpp/platform/ThreadUtils.hpp"
1314
+ diff --git a/windows/include/NitroModules/TypeIndex.hpp b/windows/include/NitroModules/TypeIndex.hpp
1315
+ new file mode 100644
1316
+ index 0000000..13f14c2
1317
+ --- /dev/null
1318
+ +++ b/windows/include/NitroModules/TypeIndex.hpp
1319
+ @@ -0,0 +1 @@
1320
+ +#include "../../../cpp/templates/TypeIndex.hpp"
1321
+ diff --git a/windows/include/NitroModules/ViewComponentDescriptor.hpp b/windows/include/NitroModules/ViewComponentDescriptor.hpp
1322
+ new file mode 100644
1323
+ index 0000000..906e265
1324
+ --- /dev/null
1325
+ +++ b/windows/include/NitroModules/ViewComponentDescriptor.hpp
1326
+ @@ -0,0 +1 @@
1327
+ +#include "../../../cpp/views/ViewComponentDescriptor.hpp"
1328
+ diff --git a/windows/include/NitroModules/ViewPropsHolderState.hpp b/windows/include/NitroModules/ViewPropsHolderState.hpp
1329
+ new file mode 100644
1330
+ index 0000000..301a138
1331
+ --- /dev/null
1332
+ +++ b/windows/include/NitroModules/ViewPropsHolderState.hpp
1333
+ @@ -0,0 +1 @@
1334
+ +#include "../../../cpp/views/ViewPropsHolderState.hpp"
1335
+ diff --git a/windows/include/NitroModules/WeakReference+Borrowing.hpp b/windows/include/NitroModules/WeakReference+Borrowing.hpp
1336
+ new file mode 100644
1337
+ index 0000000..67db3e5
1338
+ --- /dev/null
1339
+ +++ b/windows/include/NitroModules/WeakReference+Borrowing.hpp
1340
+ @@ -0,0 +1 @@
1341
+ +#include "../../../cpp/utils/WeakReference+Borrowing.hpp"
1342
+ diff --git a/windows/include/NitroModules/WeakReference.hpp b/windows/include/NitroModules/WeakReference.hpp
1343
+ new file mode 100644
1344
+ index 0000000..dcb5b9b
1345
+ --- /dev/null
1346
+ +++ b/windows/include/NitroModules/WeakReference.hpp
1347
+ @@ -0,0 +1 @@
1348
+ +#include "../../../cpp/utils/WeakReference.hpp"