@legendapp/spark 0.0.1 → 0.0.3
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/native.d.cts +6 -3
- package/package.json +36 -28
- package/patches/dependencies.json +252 -0
- package/patches/expo-application@55.0.19.patch +54 -0
- package/patches/expo-blur@55.0.18.patch +130 -0
- package/patches/expo-device@55.0.21.patch +149 -0
- package/patches/expo-font@55.0.8.patch +55 -0
- package/patches/expo-glass-effect@55.0.11.patch +304 -0
- package/patches/expo-haptics@55.0.18.patch +54 -0
- package/patches/expo-image-manipulator@55.0.21.patch +312 -0
- package/patches/expo-image-picker@55.0.24.patch +327 -0
- package/patches/expo-image@55.0.11.patch +158 -0
- package/patches/expo-keep-awake@55.0.8.patch +41 -0
- package/patches/expo-localization@55.0.19.patch +32 -0
- package/patches/expo-location@55.1.15.patch +190 -0
- package/patches/expo-symbols@55.0.9.patch +286 -0
- package/patches/expo-system-ui@55.0.22.patch +61 -0
- package/patches/expo-web-browser@55.0.20.patch +13 -0
- package/patches/react-native-app-logs@0.3.1.patch +20 -0
- package/patches/react-native-blurhash@2.1.3.patch +318 -0
- package/patches/react-native-community-blur@4.4.1.patch +415 -0
- package/patches/react-native-community-datetimepicker@9.2.2.patch +320 -0
- package/patches/react-native-enriched-markdown@1.1.1.patch +141 -10
- package/patches/react-native-fast-image@10.9.9.patch +131 -0
- package/patches/react-native-graph@1.4.0.patch +157 -0
- package/patches/react-native-keyboard-controller@1.22.9.patch +16 -0
- package/patches/react-native-masked-view-masked-view@0.3.2.patch +140 -0
- package/patches/react-native-mmkv@4.3.2.patch +40 -0
- package/patches/react-native-nitro-fetch@1.9.0.patch +130 -0
- package/patches/react-native-nitro-zxing@0.3.0.patch +13 -0
- package/patches/react-native-quick-base64@3.0.1.patch +13 -0
- package/patches/react-native-quick-crypto@1.1.9.patch +31 -0
- package/patches/react-native-release-profiler@0.4.5.patch +37 -0
- package/patches/react-native-screen-corner-radius@0.2.3.patch +13 -0
- package/patches/react-native-screens@4.23.0.patch +160 -0
- package/patches/react-native-svg@15.15.3.patch +31 -0
- package/patches/react-native-unistyles@3.6.0.patch +203 -0
- package/patches/react-native-worklets-core@1.6.3.patch +13 -0
- package/patches/react-navigation-native-stack@7.21.0.patch +16 -0
- package/patches/sentry-react-native@8.32.0.patch +76 -0
- package/skills/spark/UPGRADING.md +122 -3
- package/vendor/node_modules/@legendapp/spark-ai/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-audio/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-audio/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-auth-session/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-auth-session/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +17 -5
- package/vendor/node_modules/@legendapp/spark-cli/dist/cli-arguments.js +4 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/create.js +8 -4
- package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +45 -1
- package/vendor/node_modules/@legendapp/spark-cli/dist/dev.js +15 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/examples.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-patch.cjs +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-preload.cjs +3 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +26 -7
- package/vendor/node_modules/@legendapp/spark-cli/dist/metro.cjs +3 -1
- package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +20 -5
- package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +1 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +10 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +28 -10
- package/vendor/node_modules/@legendapp/spark-cli/dist/release-runner-root.js +108 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +13 -13
- package/vendor/node_modules/@legendapp/spark-cli/dist/runtime-input-cache.js +140 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/watchman.js +12 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/windows-geometry.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/desktop.config.json +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +27 -25
- package/vendor/node_modules/@legendapp/spark-cli/templates/universal/desktop.config.json +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +35 -33
- package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +29 -27
- package/vendor/node_modules/@legendapp/spark-clipboard/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-clipboard/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-codex/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-commands/package.json +7 -7
- package/vendor/node_modules/@legendapp/spark-context-menu/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +7 -2
- package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.mm +64 -2
- package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-desktop-config/accessibility-state.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +12 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +7 -6
- package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +1 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/fabric-lifecycle.cjs +1 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/keyboard-events.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/macos-host.cjs +39 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +73 -20
- package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +2 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +8 -6
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-scroll-view.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-alignment.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-input-alignment.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/text-input-accessibility.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/AppDelegate.h +6 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/Main.storyboard +684 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/main.m +5 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +3 -2
- package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-desktop-links/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +68 -17
- package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +2 -1
- package/vendor/node_modules/@legendapp/spark-documents/package.json +9 -9
- package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +14 -5
- package/vendor/node_modules/@legendapp/spark-file-system/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-system/src/index.ts +1 -1
- package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-html/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-markdown/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-native-menu/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-notifications/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-processes/macos/RNDesktopProcesses.mm +110 -19
- package/vendor/node_modules/@legendapp/spark-processes/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-processes/src/index.ts +17 -3
- package/vendor/node_modules/@legendapp/spark-processes/src/types.ts +6 -0
- package/vendor/node_modules/@legendapp/spark-rich-text/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-secure-storage/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-sqlite/package.json +12 -5
- package/vendor/node_modules/@legendapp/spark-system/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-tray/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +82 -18
- package/vendor/node_modules/@legendapp/spark-ui/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +4 -0
- package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +11 -9
- package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +20 -10
- package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +15 -10
- package/vendor/node_modules/@legendapp/spark-ui/src/index.macos.tsx +1 -0
- package/vendor/node_modules/@legendapp/spark-updates/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-webview/package.json +11 -4
- package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
- package/camera.ts +0 -13
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
diff --git a/src/components/DebugContainer.macos.tsx b/src/components/DebugContainer.macos.tsx
|
|
2
|
+
new file mode 100644
|
|
3
|
+
index 0000000..7526909
|
|
4
|
+
--- /dev/null
|
|
5
|
+
+++ b/src/components/DebugContainer.macos.tsx
|
|
6
|
+
@@ -0,0 +1,3 @@
|
|
7
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
8
|
+
+export * from './DebugContainer.web';
|
|
9
|
+
+export { default } from './DebugContainer.web';
|
|
10
|
+
diff --git a/src/components/FullWindowOverlay.macos.tsx b/src/components/FullWindowOverlay.macos.tsx
|
|
11
|
+
new file mode 100644
|
|
12
|
+
index 0000000..43c70ba
|
|
13
|
+
--- /dev/null
|
|
14
|
+
+++ b/src/components/FullWindowOverlay.macos.tsx
|
|
15
|
+
@@ -0,0 +1,3 @@
|
|
16
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
17
|
+
+export * from './FullWindowOverlay.web';
|
|
18
|
+
+export { default } from './FullWindowOverlay.web';
|
|
19
|
+
diff --git a/src/components/Screen.macos.tsx b/src/components/Screen.macos.tsx
|
|
20
|
+
new file mode 100644
|
|
21
|
+
index 0000000..2cd1f2a
|
|
22
|
+
--- /dev/null
|
|
23
|
+
+++ b/src/components/Screen.macos.tsx
|
|
24
|
+
@@ -0,0 +1,3 @@
|
|
25
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
26
|
+
+export * from './Screen.web';
|
|
27
|
+
+export { default } from './Screen.web';
|
|
28
|
+
diff --git a/src/components/ScreenContainer.macos.tsx b/src/components/ScreenContainer.macos.tsx
|
|
29
|
+
new file mode 100644
|
|
30
|
+
index 0000000..710309d
|
|
31
|
+
--- /dev/null
|
|
32
|
+
+++ b/src/components/ScreenContainer.macos.tsx
|
|
33
|
+
@@ -0,0 +1,3 @@
|
|
34
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
35
|
+
+export * from './ScreenContainer.web';
|
|
36
|
+
+export { default } from './ScreenContainer.web';
|
|
37
|
+
diff --git a/src/components/ScreenContentWrapper.macos.tsx b/src/components/ScreenContentWrapper.macos.tsx
|
|
38
|
+
new file mode 100644
|
|
39
|
+
index 0000000..ff03c98
|
|
40
|
+
--- /dev/null
|
|
41
|
+
+++ b/src/components/ScreenContentWrapper.macos.tsx
|
|
42
|
+
@@ -0,0 +1,3 @@
|
|
43
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
44
|
+
+export * from './ScreenContentWrapper.web';
|
|
45
|
+
+export { default } from './ScreenContentWrapper.web';
|
|
46
|
+
diff --git a/src/components/ScreenFooter.macos.tsx b/src/components/ScreenFooter.macos.tsx
|
|
47
|
+
new file mode 100644
|
|
48
|
+
index 0000000..8a6e94e
|
|
49
|
+
--- /dev/null
|
|
50
|
+
+++ b/src/components/ScreenFooter.macos.tsx
|
|
51
|
+
@@ -0,0 +1,3 @@
|
|
52
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
53
|
+
+export * from './ScreenFooter.web';
|
|
54
|
+
+export { default } from './ScreenFooter.web';
|
|
55
|
+
diff --git a/src/components/ScreenStack.macos.tsx b/src/components/ScreenStack.macos.tsx
|
|
56
|
+
new file mode 100644
|
|
57
|
+
index 0000000..48b1e73
|
|
58
|
+
--- /dev/null
|
|
59
|
+
+++ b/src/components/ScreenStack.macos.tsx
|
|
60
|
+
@@ -0,0 +1,3 @@
|
|
61
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
62
|
+
+export * from './ScreenStack.web';
|
|
63
|
+
+export { default } from './ScreenStack.web';
|
|
64
|
+
diff --git a/src/components/ScreenStackHeaderConfig.macos.tsx b/src/components/ScreenStackHeaderConfig.macos.tsx
|
|
65
|
+
new file mode 100644
|
|
66
|
+
index 0000000..b613332
|
|
67
|
+
--- /dev/null
|
|
68
|
+
+++ b/src/components/ScreenStackHeaderConfig.macos.tsx
|
|
69
|
+
@@ -0,0 +1,2 @@
|
|
70
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
71
|
+
+export * from './ScreenStackHeaderConfig.web';
|
|
72
|
+
diff --git a/src/components/SearchBar.macos.tsx b/src/components/SearchBar.macos.tsx
|
|
73
|
+
new file mode 100644
|
|
74
|
+
index 0000000..939c989
|
|
75
|
+
--- /dev/null
|
|
76
|
+
+++ b/src/components/SearchBar.macos.tsx
|
|
77
|
+
@@ -0,0 +1,3 @@
|
|
78
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
79
|
+
+export * from './SearchBar.web';
|
|
80
|
+
+export { default } from './SearchBar.web';
|
|
81
|
+
diff --git a/src/components/gamma/split/SplitHost.macos.tsx b/src/components/gamma/split/SplitHost.macos.tsx
|
|
82
|
+
new file mode 100644
|
|
83
|
+
index 0000000..7f7f91a
|
|
84
|
+
--- /dev/null
|
|
85
|
+
+++ b/src/components/gamma/split/SplitHost.macos.tsx
|
|
86
|
+
@@ -0,0 +1,3 @@
|
|
87
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
88
|
+
+export * from './SplitHost.web';
|
|
89
|
+
+export { default } from './SplitHost.web';
|
|
90
|
+
diff --git a/src/components/gamma/split/SplitScreen.macos.tsx b/src/components/gamma/split/SplitScreen.macos.tsx
|
|
91
|
+
new file mode 100644
|
|
92
|
+
index 0000000..049aa9f
|
|
93
|
+
--- /dev/null
|
|
94
|
+
+++ b/src/components/gamma/split/SplitScreen.macos.tsx
|
|
95
|
+
@@ -0,0 +1,3 @@
|
|
96
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
97
|
+
+export * from './SplitScreen.web';
|
|
98
|
+
+export { default } from './SplitScreen.web';
|
|
99
|
+
diff --git a/src/components/gamma/stack/StackHost.macos.tsx b/src/components/gamma/stack/StackHost.macos.tsx
|
|
100
|
+
new file mode 100644
|
|
101
|
+
index 0000000..ea6c2a9
|
|
102
|
+
--- /dev/null
|
|
103
|
+
+++ b/src/components/gamma/stack/StackHost.macos.tsx
|
|
104
|
+
@@ -0,0 +1,3 @@
|
|
105
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
106
|
+
+export * from './StackHost.web';
|
|
107
|
+
+export { default } from './StackHost.web';
|
|
108
|
+
diff --git a/src/components/gamma/stack/StackScreen.macos.tsx b/src/components/gamma/stack/StackScreen.macos.tsx
|
|
109
|
+
new file mode 100644
|
|
110
|
+
index 0000000..f6b6910
|
|
111
|
+
--- /dev/null
|
|
112
|
+
+++ b/src/components/gamma/stack/StackScreen.macos.tsx
|
|
113
|
+
@@ -0,0 +1,3 @@
|
|
114
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
115
|
+
+export * from './StackScreen.web';
|
|
116
|
+
+export { default } from './StackScreen.web';
|
|
117
|
+
diff --git a/src/components/safe-area/SafeAreaView.macos.tsx b/src/components/safe-area/SafeAreaView.macos.tsx
|
|
118
|
+
new file mode 100644
|
|
119
|
+
index 0000000..e96a644
|
|
120
|
+
--- /dev/null
|
|
121
|
+
+++ b/src/components/safe-area/SafeAreaView.macos.tsx
|
|
122
|
+
@@ -0,0 +1,3 @@
|
|
123
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
124
|
+
+export * from './SafeAreaView.web';
|
|
125
|
+
+export { default } from './SafeAreaView.web';
|
|
126
|
+
diff --git a/src/components/tabs/TabsHost.macos.tsx b/src/components/tabs/TabsHost.macos.tsx
|
|
127
|
+
new file mode 100644
|
|
128
|
+
index 0000000..fa5d559
|
|
129
|
+
--- /dev/null
|
|
130
|
+
+++ b/src/components/tabs/TabsHost.macos.tsx
|
|
131
|
+
@@ -0,0 +1,3 @@
|
|
132
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
133
|
+
+export * from './TabsHost.web';
|
|
134
|
+
+export { default } from './TabsHost.web';
|
|
135
|
+
diff --git a/src/components/tabs/TabsScreen.macos.tsx b/src/components/tabs/TabsScreen.macos.tsx
|
|
136
|
+
new file mode 100644
|
|
137
|
+
index 0000000..8d72134
|
|
138
|
+
--- /dev/null
|
|
139
|
+
+++ b/src/components/tabs/TabsScreen.macos.tsx
|
|
140
|
+
@@ -0,0 +1,3 @@
|
|
141
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
142
|
+
+export * from './TabsScreen.web';
|
|
143
|
+
+export { default } from './TabsScreen.web';
|
|
144
|
+
diff --git a/src/fabric/NativeScreensModule.macos.ts b/src/fabric/NativeScreensModule.macos.ts
|
|
145
|
+
new file mode 100644
|
|
146
|
+
index 0000000..f242de2
|
|
147
|
+
--- /dev/null
|
|
148
|
+
+++ b/src/fabric/NativeScreensModule.macos.ts
|
|
149
|
+
@@ -0,0 +1,3 @@
|
|
150
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
151
|
+
+export * from './NativeScreensModule.web';
|
|
152
|
+
+export { default } from './NativeScreensModule.web';
|
|
153
|
+
diff --git a/src/gesture-handler/fabricUtils.macos.ts b/src/gesture-handler/fabricUtils.macos.ts
|
|
154
|
+
new file mode 100644
|
|
155
|
+
index 0000000..56afb7a
|
|
156
|
+
--- /dev/null
|
|
157
|
+
+++ b/src/gesture-handler/fabricUtils.macos.ts
|
|
158
|
+
@@ -0,0 +1,2 @@
|
|
159
|
+
+// macOS has no native screens: use the web implementation's plain views.
|
|
160
|
+
+export * from './fabricUtils.web';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
diff --git a/apple/Elements/RNSVGSvgView.mm b/apple/Elements/RNSVGSvgView.mm
|
|
2
|
+
index d03d5c0..a3e679f 100644
|
|
3
|
+
--- a/apple/Elements/RNSVGSvgView.mm
|
|
4
|
+
+++ b/apple/Elements/RNSVGSvgView.mm
|
|
5
|
+
@@ -315,6 +315,15 @@ - (void)drawToContext:(CGContextRef)context withRect:(CGRect)rect
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
+#if TARGET_OS_OSX
|
|
10
|
+
+// React Native macOS component views draw through updateLayer, so AppKit never calls drawRect:,
|
|
11
|
+
+// which is where the SVG renders.
|
|
12
|
+
+- (BOOL)wantsUpdateLayer
|
|
13
|
+
+{
|
|
14
|
+
+ return NO;
|
|
15
|
+
+}
|
|
16
|
+
+#endif
|
|
17
|
+
+
|
|
18
|
+
- (void)drawRect:(CGRect)rect
|
|
19
|
+
{
|
|
20
|
+
RNSVGPlatformView *parent = self.superview;
|
|
21
|
+
diff --git a/apple/RNSVGUIKit.macos.mm b/apple/RNSVGUIKit.macos.mm
|
|
22
|
+
index aa9f94b..f3bbf76 100644
|
|
23
|
+
--- a/apple/RNSVGUIKit.macos.mm
|
|
24
|
+
+++ b/apple/RNSVGUIKit.macos.mm
|
|
25
|
+
@@ -1,5 +1,6 @@
|
|
26
|
+
#import "RNSVGUIKit.h"
|
|
27
|
+
#import <objc/runtime.h>
|
|
28
|
+
+#import <React/RCTAssert.h>
|
|
29
|
+
|
|
30
|
+
#if TARGET_OS_OSX
|
|
31
|
+
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
diff --git a/Unistyles.podspec b/Unistyles.podspec
|
|
2
|
+
index adf83bf..ba3ba7f 100644
|
|
3
|
+
--- a/Unistyles.podspec
|
|
4
|
+
+++ b/Unistyles.podspec
|
|
5
|
+
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
6
|
+
s.license = package["license"]
|
|
7
|
+
s.authors = package["author"]
|
|
8
|
+
|
|
9
|
+
- s.platforms = { :ios => min_ios_version_supported }
|
|
10
|
+
+ s.platforms = { :ios => min_ios_version_supported, :osx => "14.0" }
|
|
11
|
+
s.source = { :git => package["repository"], :tag => "#{s.version}" }
|
|
12
|
+
|
|
13
|
+
s.source_files = [
|
|
14
|
+
diff --git a/ios/Extensions.swift b/ios/Extensions.swift
|
|
15
|
+
index 9b38a32..a707de7 100644
|
|
16
|
+
--- a/ios/Extensions.swift
|
|
17
|
+
+++ b/ios/Extensions.swift
|
|
18
|
+
@@ -1,5 +1,7 @@
|
|
19
|
+
import Foundation
|
|
20
|
+
|
|
21
|
+
+#if os(iOS)
|
|
22
|
+
+
|
|
23
|
+
extension UIColor {
|
|
24
|
+
// int is universal way of color representation
|
|
25
|
+
// iOS API expects UIColor, so we need to translate it
|
|
26
|
+
@@ -11,3 +13,4 @@ extension UIColor {
|
|
27
|
+
return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
+#endif
|
|
31
|
+
diff --git a/ios/NativePlatform+keyboard.swift b/ios/NativePlatform+keyboard.swift
|
|
32
|
+
index 0237e76..b95f651 100644
|
|
33
|
+
--- a/ios/NativePlatform+keyboard.swift
|
|
34
|
+
+++ b/ios/NativePlatform+keyboard.swift
|
|
35
|
+
@@ -1,3 +1,4 @@
|
|
36
|
+
+#if os(iOS)
|
|
37
|
+
import Foundation
|
|
38
|
+
|
|
39
|
+
struct KeyboardAnimation {
|
|
40
|
+
@@ -103,3 +104,5 @@ extension NativeIOSPlatform {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
+
|
|
45
|
+
+#endif
|
|
46
|
+
diff --git a/ios/NativePlatform+macos.swift b/ios/NativePlatform+macos.swift
|
|
47
|
+
new file mode 100644
|
|
48
|
+
index 0000000..ac219cf
|
|
49
|
+
--- /dev/null
|
|
50
|
+
+++ b/ios/NativePlatform+macos.swift
|
|
51
|
+
@@ -0,0 +1,124 @@
|
|
52
|
+
+#if os(macOS)
|
|
53
|
+
+
|
|
54
|
+
+import AppKit
|
|
55
|
+
+import NitroModules
|
|
56
|
+
+
|
|
57
|
+
+// AppKit counterpart of NativeIOSPlatform: a desktop window has no safe-area, status bar,
|
|
58
|
+
+// navigation bar or software keyboard, so those report zero; the window is the "screen".
|
|
59
|
+
+class NativeMacOSPlatform: HybridNativePlatformSpec {
|
|
60
|
+
+ var miniRuntime: UnistylesNativeMiniRuntime?
|
|
61
|
+
+ var dependencyListeners: Array<(Array<UnistyleDependency>, UnistylesNativeMiniRuntime) -> Void> = []
|
|
62
|
+
+ var observers: [NSObjectProtocol] = []
|
|
63
|
+
+ var appearanceObservation: NSKeyValueObservation?
|
|
64
|
+
+
|
|
65
|
+
+ override init() {
|
|
66
|
+
+ super.init()
|
|
67
|
+
+ self.miniRuntime = onMain { self.buildMiniRuntime() }
|
|
68
|
+
+ let center = NotificationCenter.default
|
|
69
|
+
+ for name in [NSWindow.didResizeNotification, NSWindow.didBecomeMainNotification, NSWindow.didChangeBackingPropertiesNotification] {
|
|
70
|
+
+ observers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] _ in self?.onNativePlatformChange() })
|
|
71
|
+
+ }
|
|
72
|
+
+ appearanceObservation = NSApplication.shared.observe(\.effectiveAppearance) { [weak self] _, _ in
|
|
73
|
+
+ DispatchQueue.main.async { self?.onNativePlatformChange() }
|
|
74
|
+
+ }
|
|
75
|
+
+ }
|
|
76
|
+
+
|
|
77
|
+
+ deinit {
|
|
78
|
+
+ observers.forEach { NotificationCenter.default.removeObserver($0) }
|
|
79
|
+
+ }
|
|
80
|
+
+
|
|
81
|
+
+ func onMain<T>(_ body: () -> T) -> T {
|
|
82
|
+
+ Thread.isMainThread ? body() : DispatchQueue.main.sync(execute: body)
|
|
83
|
+
+ }
|
|
84
|
+
+
|
|
85
|
+
+ var mainWindow: NSWindow? { NSApplication.shared.mainWindow ?? NSApplication.shared.keyWindow ?? NSApplication.shared.windows.first { $0.isVisible } }
|
|
86
|
+
+
|
|
87
|
+
+ func buildMiniRuntime() -> UnistylesNativeMiniRuntime {
|
|
88
|
+
+ let screen = getScreenDimensions()
|
|
89
|
+
+ return UnistylesNativeMiniRuntime(
|
|
90
|
+
+ colorScheme: getColorScheme(),
|
|
91
|
+
+ screen: screen,
|
|
92
|
+
+ contentSizeCategory: getContentSizeCategory(),
|
|
93
|
+
+ insets: getInsets(),
|
|
94
|
+
+ pixelRatio: getPixelRatio(),
|
|
95
|
+
+ fontScale: getFontScale(),
|
|
96
|
+
+ rtl: getPrefersRtlDirection(),
|
|
97
|
+
+ statusBar: getStatusBarDimensions(),
|
|
98
|
+
+ navigationBar: getNavigationBarDimensions(),
|
|
99
|
+
+ isPortrait: screen.height >= screen.width,
|
|
100
|
+
+ isLandscape: screen.width > screen.height
|
|
101
|
+
+ )
|
|
102
|
+
+ }
|
|
103
|
+
+
|
|
104
|
+
+ func getMiniRuntime() -> UnistylesNativeMiniRuntime { miniRuntime! }
|
|
105
|
+
+
|
|
106
|
+
+ func getColorScheme() -> ColorScheme {
|
|
107
|
+
+ onMain { NSApplication.shared.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua ? .dark : .light }
|
|
108
|
+
+ }
|
|
109
|
+
+
|
|
110
|
+
+ func getFontScale() -> Double { 1 }
|
|
111
|
+
+
|
|
112
|
+
+ func getContentSizeCategory() -> String { "unspecified" }
|
|
113
|
+
+
|
|
114
|
+
+ func getScreenDimensions() -> Dimensions {
|
|
115
|
+
+ onMain {
|
|
116
|
+
+ let size = mainWindow?.contentView?.bounds.size ?? NSScreen.main?.frame.size ?? .zero
|
|
117
|
+
+ return Dimensions(width: size.width, height: size.height)
|
|
118
|
+
+ }
|
|
119
|
+
+ }
|
|
120
|
+
+
|
|
121
|
+
+ func getOrientation() -> Orientation {
|
|
122
|
+
+ let screen = getScreenDimensions()
|
|
123
|
+
+ return screen.width > screen.height ? .landscape : .portrait
|
|
124
|
+
+ }
|
|
125
|
+
+
|
|
126
|
+
+ func getInsets() -> Insets { Insets(top: 0, bottom: 0, left: 0, right: 0, ime: 0) }
|
|
127
|
+
+
|
|
128
|
+
+ func getPrefersRtlDirection() -> Bool {
|
|
129
|
+
+ onMain { UserDefaults.standard.bool(forKey: "RCTI18nUtil_forceRTL") || NSApplication.shared.userInterfaceLayoutDirection == .rightToLeft }
|
|
130
|
+
+ }
|
|
131
|
+
+
|
|
132
|
+
+ func getStatusBarDimensions() -> Dimensions { Dimensions(width: 0, height: 0) }
|
|
133
|
+
+
|
|
134
|
+
+ func getNavigationBarDimensions() -> Dimensions { Dimensions(width: 0, height: 0) }
|
|
135
|
+
+
|
|
136
|
+
+ func getPixelRatio() -> Double {
|
|
137
|
+
+ onMain { Double(mainWindow?.backingScaleFactor ?? NSScreen.main?.backingScaleFactor ?? 1) }
|
|
138
|
+
+ }
|
|
139
|
+
+
|
|
140
|
+
+ func setRootViewBackgroundColor(color: Double) throws {
|
|
141
|
+
+ let value = Int(color)
|
|
142
|
+
+ DispatchQueue.main.async {
|
|
143
|
+
+ self.mainWindow?.backgroundColor = NSColor(red: CGFloat((value >> 16) & 0xFF) / 255, green: CGFloat((value >> 8) & 0xFF) / 255, blue: CGFloat(value & 0xFF) / 255, alpha: 1)
|
|
144
|
+
+ }
|
|
145
|
+
+ }
|
|
146
|
+
+
|
|
147
|
+
+ func setStatusBarHidden(isHidden: Bool) throws {}
|
|
148
|
+
+
|
|
149
|
+
+ func setNavigationBarHidden(isHidden: Bool) throws {}
|
|
150
|
+
+
|
|
151
|
+
+ func setImmersiveMode(isEnabled: Bool) throws {}
|
|
152
|
+
+
|
|
153
|
+
+ func registerPlatformListener(callback: @escaping (Array<UnistyleDependency>, UnistylesNativeMiniRuntime) -> Void) throws {
|
|
154
|
+
+ dependencyListeners.append(callback)
|
|
155
|
+
+ }
|
|
156
|
+
+
|
|
157
|
+
+ // Desktop windows have no software keyboard, so the IME inset never changes.
|
|
158
|
+
+ func registerImeListener(callback: @escaping (UnistylesNativeMiniRuntime) -> Void) throws {}
|
|
159
|
+
+
|
|
160
|
+
+ func unregisterPlatformListeners() throws {
|
|
161
|
+
+ dependencyListeners.removeAll()
|
|
162
|
+
+ }
|
|
163
|
+
+
|
|
164
|
+
+ func onNativePlatformChange() {
|
|
165
|
+
+ guard let current = miniRuntime else { return }
|
|
166
|
+
+ let next = buildMiniRuntime()
|
|
167
|
+
+ let changed = UnistylesNativeMiniRuntime.diff(lhs: current, rhs: next)
|
|
168
|
+
+ if !changed.isEmpty {
|
|
169
|
+
+ miniRuntime = next
|
|
170
|
+
+ dependencyListeners.forEach { $0(changed, next) }
|
|
171
|
+
+ }
|
|
172
|
+
+ }
|
|
173
|
+
+}
|
|
174
|
+
+
|
|
175
|
+
+#endif
|
|
176
|
+
diff --git a/ios/NativePlatform.swift b/ios/NativePlatform.swift
|
|
177
|
+
index d8b86a1..90288a2 100644
|
|
178
|
+
--- a/ios/NativePlatform.swift
|
|
179
|
+
+++ b/ios/NativePlatform.swift
|
|
180
|
+
@@ -8,6 +8,8 @@ public class NativePlatform {
|
|
181
|
+
public static func create() -> HybridNativePlatformSpec_cxx {
|
|
182
|
+
#if os(iOS)
|
|
183
|
+
let nativePlatform = NativeIOSPlatform()
|
|
184
|
+
+ #elseif os(macOS)
|
|
185
|
+
+ let nativePlatform = NativeMacOSPlatform()
|
|
186
|
+
#else
|
|
187
|
+
throw PlatformError.UnsupportedPlatform
|
|
188
|
+
#endif
|
|
189
|
+
diff --git a/ios/NativePlatformListener+ios.swift b/ios/NativePlatformListener+ios.swift
|
|
190
|
+
index ac7db8f..8968117 100644
|
|
191
|
+
--- a/ios/NativePlatformListener+ios.swift
|
|
192
|
+
+++ b/ios/NativePlatformListener+ios.swift
|
|
193
|
+
@@ -1,3 +1,4 @@
|
|
194
|
+
+#if os(iOS)
|
|
195
|
+
import Foundation
|
|
196
|
+
import Combine
|
|
197
|
+
|
|
198
|
+
@@ -65,3 +66,5 @@ extension NativeIOSPlatform {
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
+
|
|
203
|
+
+#endif
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
diff --git a/react-native-worklets-core.podspec b/react-native-worklets-core.podspec
|
|
2
|
+
index f5b58d7..c9bcfea 100644
|
|
3
|
+
--- a/react-native-worklets-core.podspec
|
|
4
|
+
+++ b/react-native-worklets-core.podspec
|
|
5
|
+
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
6
|
+
s.license = package["license"]
|
|
7
|
+
s.authors = package["author"]
|
|
8
|
+
|
|
9
|
+
- s.platforms = { :ios => "11.0" }
|
|
10
|
+
+ s.platforms = { :ios => "11.0", :osx => "14.0" }
|
|
11
|
+
s.source = { :git => "https://github.com/margelo/react-native-worklets-core.git", :tag => "#{s.version}" }
|
|
12
|
+
|
|
13
|
+
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{h,cpp}"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
diff --git a/lib/module/views/NativeStackView.macos.js b/lib/module/views/NativeStackView.macos.js
|
|
2
|
+
new file mode 100644
|
|
3
|
+
index 0000000..c42b5d6
|
|
4
|
+
--- /dev/null
|
|
5
|
+
+++ b/lib/module/views/NativeStackView.macos.js
|
|
6
|
+
@@ -0,0 +1,2 @@
|
|
7
|
+
+// macOS has no native stack: use the JavaScript stack view, which draws headers with @react-navigation/elements.
|
|
8
|
+
+export * from "./NativeStackView.js";
|
|
9
|
+
diff --git a/src/views/NativeStackView.macos.tsx b/src/views/NativeStackView.macos.tsx
|
|
10
|
+
new file mode 100644
|
|
11
|
+
index 0000000..82511c8
|
|
12
|
+
--- /dev/null
|
|
13
|
+
+++ b/src/views/NativeStackView.macos.tsx
|
|
14
|
+
@@ -0,0 +1,2 @@
|
|
15
|
+
+// macOS has no native stack: use the JavaScript stack view, which draws headers with @react-navigation/elements.
|
|
16
|
+
+export * from './NativeStackView.tsx';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
diff --git a/ios/Replay/RNSentryReplayMask.h b/ios/Replay/RNSentryReplayMask.h
|
|
2
|
+
index 3903d41..61dd169 100644
|
|
3
|
+
--- a/ios/Replay/RNSentryReplayMask.h
|
|
4
|
+
+++ b/ios/Replay/RNSentryReplayMask.h
|
|
5
|
+
@@ -1,6 +1,8 @@
|
|
6
|
+
#import <Sentry/SentryDefines.h>
|
|
7
|
+
|
|
8
|
+
-#if SENTRY_HAS_UIKIT
|
|
9
|
+
+// macOS has no replay, but codegen's component provider still names this view: without the class, its
|
|
10
|
+
+// registry gets a nil entry and the app aborts at launch. On macOS it is a plain container.
|
|
11
|
+
+#if SENTRY_HAS_UIKIT || TARGET_OS_OSX
|
|
12
|
+
|
|
13
|
+
# import <React/RCTViewManager.h>
|
|
14
|
+
|
|
15
|
+
diff --git a/ios/Replay/RNSentryReplayMask.mm b/ios/Replay/RNSentryReplayMask.mm
|
|
16
|
+
index 3dad47a..de9bd40 100644
|
|
17
|
+
--- a/ios/Replay/RNSentryReplayMask.mm
|
|
18
|
+
+++ b/ios/Replay/RNSentryReplayMask.mm
|
|
19
|
+
@@ -1,6 +1,6 @@
|
|
20
|
+
#import <Sentry/SentryDefines.h>
|
|
21
|
+
|
|
22
|
+
-#if SENTRY_HAS_UIKIT
|
|
23
|
+
+#if SENTRY_HAS_UIKIT || TARGET_OS_OSX
|
|
24
|
+
|
|
25
|
+
# import "RNSentryReplayMask.h"
|
|
26
|
+
|
|
27
|
+
@@ -16,7 +16,11 @@ @implementation RNSentryReplayMaskManager
|
|
28
|
+
|
|
29
|
+
RCT_EXPORT_MODULE(RNSentryReplayMask)
|
|
30
|
+
|
|
31
|
+
+# if TARGET_OS_OSX
|
|
32
|
+
+- (RCTPlatformView *)view
|
|
33
|
+
+# else
|
|
34
|
+
- (UIView *)view
|
|
35
|
+
+# endif
|
|
36
|
+
{
|
|
37
|
+
return [RNSentryReplayMask new];
|
|
38
|
+
}
|
|
39
|
+
diff --git a/ios/Replay/RNSentryReplayUnmask.h b/ios/Replay/RNSentryReplayUnmask.h
|
|
40
|
+
index c1dc8a3..d28497e 100644
|
|
41
|
+
--- a/ios/Replay/RNSentryReplayUnmask.h
|
|
42
|
+
+++ b/ios/Replay/RNSentryReplayUnmask.h
|
|
43
|
+
@@ -1,6 +1,8 @@
|
|
44
|
+
#import <Sentry/SentryDefines.h>
|
|
45
|
+
|
|
46
|
+
-#if SENTRY_HAS_UIKIT
|
|
47
|
+
+// macOS has no replay, but codegen's component provider still names this view: without the class, its
|
|
48
|
+
+// registry gets a nil entry and the app aborts at launch. On macOS it is a plain container.
|
|
49
|
+
+#if SENTRY_HAS_UIKIT || TARGET_OS_OSX
|
|
50
|
+
|
|
51
|
+
# import <React/RCTViewManager.h>
|
|
52
|
+
|
|
53
|
+
diff --git a/ios/Replay/RNSentryReplayUnmask.mm b/ios/Replay/RNSentryReplayUnmask.mm
|
|
54
|
+
index 0fc0248..c445a78 100644
|
|
55
|
+
--- a/ios/Replay/RNSentryReplayUnmask.mm
|
|
56
|
+
+++ b/ios/Replay/RNSentryReplayUnmask.mm
|
|
57
|
+
@@ -1,6 +1,6 @@
|
|
58
|
+
#import <Sentry/SentryDefines.h>
|
|
59
|
+
|
|
60
|
+
-#if SENTRY_HAS_UIKIT
|
|
61
|
+
+#if SENTRY_HAS_UIKIT || TARGET_OS_OSX
|
|
62
|
+
|
|
63
|
+
# import "RNSentryReplayUnmask.h"
|
|
64
|
+
|
|
65
|
+
@@ -16,7 +16,11 @@ @implementation RNSentryReplayUnmaskManager
|
|
66
|
+
|
|
67
|
+
RCT_EXPORT_MODULE(RNSentryReplayUnmask)
|
|
68
|
+
|
|
69
|
+
+# if TARGET_OS_OSX
|
|
70
|
+
+- (RCTPlatformView *)view
|
|
71
|
+
+# else
|
|
72
|
+
- (UIView *)view
|
|
73
|
+
+# endif
|
|
74
|
+
{
|
|
75
|
+
return [RNSentryReplayUnmask new];
|
|
76
|
+
}
|
|
@@ -211,9 +211,10 @@ After (for this release):
|
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
Camera and enriched Markdown native dependency patches are applied by the SDK.
|
|
214
|
-
Use public `/camera`
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
Use public `/camera` (removed in 0.0.2 — import `react-native-vision-camera`
|
|
215
|
+
directly) and `/markdown` imports; stop manually patching their bundled dependencies.
|
|
216
|
+
Existing custom runtimes must rebuild to include changed native code. Native
|
|
217
|
+
production builds fail when app source imports an excluded module:
|
|
217
218
|
check `spark analyze` and native-only `include` requirements rather than weakening
|
|
218
219
|
the selection. SidebarSplitView gained a native content-list column and swipe
|
|
219
220
|
actions; review customized pane composition if affected. Windows notification
|
|
@@ -320,3 +321,121 @@ desktop app by itself, such as with `--no-open`.
|
|
|
320
321
|
|
|
321
322
|
No changes are needed in existing apps. Update `@legendapp/spark` to `0.0.1`
|
|
322
323
|
and reinstall.
|
|
324
|
+
|
|
325
|
+
## 0.0.2
|
|
326
|
+
|
|
327
|
+
Breaking: yes. Spark moves from Expo SDK 54 / React Native 0.81 to **Expo SDK 55
|
|
328
|
+
and React Native 0.83**, and `@legendapp/spark/camera` was removed.
|
|
329
|
+
|
|
330
|
+
### Expo SDK 55 and React Native 0.83
|
|
331
|
+
|
|
332
|
+
The SDK now pins Expo 55.0.32, React Native 0.83.10, React 19.2.0, React Native
|
|
333
|
+
macOS 0.83.0 and React Native Windows 0.83.2, with the Expo Desktop SDK 55
|
|
334
|
+
packages (`expo-desktop-metro-config` 55.83.3, `expo-desktop-template-bare-minimum`
|
|
335
|
+
55.83.10, `expo-desktop-modules-core` and `expo-desktop-stubs` 55.0.2). Expo
|
|
336
|
+
Desktop CLI, prebuild-config and config-plugins stay on their 1.x releases.
|
|
337
|
+
React peer ranges are now `^19.2.0`.
|
|
338
|
+
|
|
339
|
+
`spark upgrade` updates the SDK-pinned dependencies and overrides in
|
|
340
|
+
`package.json`. For example:
|
|
341
|
+
|
|
342
|
+
Before:
|
|
343
|
+
```json
|
|
344
|
+
{ "dependencies": { "expo": "54.0.37", "react": "19.1.4", "react-native": "0.81.6", "react-native-macos": "0.81.7" } }
|
|
345
|
+
```
|
|
346
|
+
After:
|
|
347
|
+
```json
|
|
348
|
+
{ "dependencies": { "expo": "55.0.32", "react": "19.2.0", "react-native": "0.83.10", "react-native-macos": "0.83.0" } }
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
It does not move Expo modules that only your app depends on (for example
|
|
352
|
+
`expo-image` or `expo-camera`). Move those to their Expo SDK 55 versions, then
|
|
353
|
+
review the Expo SDK 55 and React Native
|
|
354
|
+
0.83 changelogs for APIs your app code and custom native modules use. Run
|
|
355
|
+
`spark doctor`, your typecheck and tests, rebuild custom runtimes
|
|
356
|
+
(`spark build --dev`), and exercise your app's desktop flows.
|
|
357
|
+
|
|
358
|
+
On Android, `@legendapp/spark/ui` `Select` segments now expose radio-button
|
|
359
|
+
accessibility semantics, so screen readers announce the selected option.
|
|
360
|
+
|
|
361
|
+
The `--universal` hint printed by the creator now names an exact
|
|
362
|
+
`npx @legendapp/create-spark@<version>` command.
|
|
363
|
+
|
|
364
|
+
### Camera and optional backends
|
|
365
|
+
|
|
366
|
+
`@legendapp/spark/camera` was removed. Install
|
|
367
|
+
`react-native-vision-camera@5.2.3` and `react-native-nitro-image@0.15.2` in your
|
|
368
|
+
app, with `react-native-nitro-modules@0.37.0`. Import camera APIs directly from
|
|
369
|
+
`react-native-vision-camera`, and `NitroImage` / `Image` from
|
|
370
|
+
`react-native-nitro-image`. Spark still applies its version-pinned native patches
|
|
371
|
+
automatically when your app depends on these libraries. Rebuild custom runtimes.
|
|
372
|
+
|
|
373
|
+
The `/markdown`, `/html`, `/webview`, and `/sqlite` APIs remain available, but
|
|
374
|
+
Spark no longer installs their backends. Add only the libraries your app uses
|
|
375
|
+
to its own `dependencies`, retaining the SDK's tested overrides:
|
|
376
|
+
|
|
377
|
+
| Spark import | App dependency |
|
|
378
|
+
| --- | --- |
|
|
379
|
+
| `@legendapp/spark/markdown` | `react-native-enriched-markdown@1.1.1` |
|
|
380
|
+
| `@legendapp/spark/html` | `react-native-enriched-html@1.1.1` |
|
|
381
|
+
| `@legendapp/spark/webview` | `react-native-webview@16.0.0` |
|
|
382
|
+
| `@legendapp/spark/sqlite` | `@op-engineering/op-sqlite@18.2.1` |
|
|
383
|
+
|
|
384
|
+
For WebView and SQLite, keep the matching patched SDK archive override supplied
|
|
385
|
+
by `spark upgrade` or `spark add desktop`. Run your package manager's install,
|
|
386
|
+
then `spark doctor` and rebuild custom runtimes. Native discovery and patching
|
|
387
|
+
activate only for installed app dependencies; optional peers alone do not select
|
|
388
|
+
native code. Nitro Modules and Runtimes remain hard dependencies.
|
|
389
|
+
|
|
390
|
+
Universal apps targeting Windows must exclude `react-native-enriched-html` and
|
|
391
|
+
`react-native-enriched-markdown` in `expoByPlatform.windows.autolinking.exclude`
|
|
392
|
+
in `desktop.config.json`, because these backends have no Windows implementation.
|
|
393
|
+
|
|
394
|
+
The `/native` `NativeConfiguration` type now describes only Spark's emitted
|
|
395
|
+
`platforms` and `dependencies` overrides; use your own CLI configuration type for
|
|
396
|
+
extra project or dependency fields, preserved by `withSparkNative`.
|
|
397
|
+
|
|
398
|
+
New apps now get a placeholder bundle ID, `com.example.<app-name>`, instead of
|
|
399
|
+
`so.legend.spark.prototype.<app-name>`. Pass `--bundle-id com.yourcompany.myapp`
|
|
400
|
+
to `create` to choose one up front, or change `bundleIdentifier` in
|
|
401
|
+
`desktop.config.json` before you ship. Release builds warn while the ID still
|
|
402
|
+
starts with `com.example.`. Existing apps keep their ID.
|
|
403
|
+
|
|
404
|
+
`spark dev` no longer hangs on "Waiting for Watchman `watch-project`" when
|
|
405
|
+
Watchman stops responding. After 10 seconds it starts Metro without Watchman
|
|
406
|
+
for that session and suggests `watchman watch-del-all && watchman shutdown-server`
|
|
407
|
+
to fix it.
|
|
408
|
+
|
|
409
|
+
## 0.0.3
|
|
410
|
+
|
|
411
|
+
Breaking: yes. Spark's macOS patch for app-installed `react-native-mmkv@4.3.2`
|
|
412
|
+
changes its default storage location. Other MMKV versions are not patched.
|
|
413
|
+
|
|
414
|
+
Before: `~/Documents/mmkv` (shared by apps using the upstream default).
|
|
415
|
+
After: `~/Library/Application Support/<Spark namespace>/mmkv` (scoped to the app).
|
|
416
|
+
An explicit custom MMKV path is unaffected. Existing default-store files are not
|
|
417
|
+
moved automatically, so an upgraded app can appear to have empty storage.
|
|
418
|
+
|
|
419
|
+
Before deploying to existing users, back up their store and design an app-owned
|
|
420
|
+
data migration or retain an explicit legacy path until migration is ready. The
|
|
421
|
+
old folder may contain other apps' data: do not blindly move or delete it. Preserve
|
|
422
|
+
store IDs, encryption keys and MMKV companion files, and migrate while the store
|
|
423
|
+
is closed. Validate existing values, writes, relaunch persistence and recovery
|
|
424
|
+
from an interrupted migration on a copy of real data.
|
|
425
|
+
|
|
426
|
+
New version-pinned macOS integrations include MMKV, Unistyles, Quick Crypto,
|
|
427
|
+
Nitro Fetch, Blur, Worklets Core, image libraries, Expo modules, date pickers,
|
|
428
|
+
React Navigation and Expo Router. Declare libraries imported by the app directly
|
|
429
|
+
in its dependencies; Spark applies compatibility patches only at the tested
|
|
430
|
+
versions. Read `docs/external-libraries.md` in the matching release for exact pins,
|
|
431
|
+
setup and limitations. Some integrations use JavaScript stand-ins and do not
|
|
432
|
+
implement every upstream native feature. Location requires
|
|
433
|
+
`NSLocationWhenInUseUsageDescription` in the macOS Info.plist before requesting
|
|
434
|
+
permission. Windows support remains preview and is not yet verified; exclude
|
|
435
|
+
macOS-only dependencies from Windows autolinking as needed.
|
|
436
|
+
|
|
437
|
+
Run `spark upgrade`, `spark doctor`, and the app's typecheck and tests. Rebuild
|
|
438
|
+
custom runtimes with `spark build --dev`, then exercise installed desktop-library
|
|
439
|
+
flows, permissions and storage persistence on each app target. The CLI now caches
|
|
440
|
+
native compatibility inputs between dev refreshes to reduce idle CPU work
|
|
441
|
+
(#535); no app source change is required for that cache.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
9
|
-
"@legendapp/spark-processes": "0.0.
|
|
8
|
+
"@legendapp/spark-desktop-app": "0.0.3",
|
|
9
|
+
"@legendapp/spark-processes": "0.0.3"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"react": "^19.
|
|
13
|
-
"react-native": "0.
|
|
12
|
+
"react": "^19.2.0",
|
|
13
|
+
"react-native": "0.83.10"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"files": [
|