@legendapp/spark 0.0.2 → 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 (224) hide show
  1. package/init-template.cjs +7 -1
  2. package/package.json +10 -5
  3. package/patches/dependencies.json +252 -0
  4. package/patches/expo-application@55.0.19.patch +54 -0
  5. package/patches/expo-blur@55.0.18.patch +130 -0
  6. package/patches/expo-device@55.0.21.patch +149 -0
  7. package/patches/expo-font@55.0.8.patch +55 -0
  8. package/patches/expo-glass-effect@55.0.11.patch +304 -0
  9. package/patches/expo-haptics@55.0.18.patch +54 -0
  10. package/patches/expo-image-manipulator@55.0.21.patch +312 -0
  11. package/patches/expo-image-picker@55.0.24.patch +327 -0
  12. package/patches/expo-image@55.0.11.patch +158 -0
  13. package/patches/expo-keep-awake@55.0.8.patch +41 -0
  14. package/patches/expo-localization@55.0.19.patch +32 -0
  15. package/patches/expo-location@55.1.15.patch +190 -0
  16. package/patches/expo-symbols@55.0.9.patch +286 -0
  17. package/patches/expo-system-ui@55.0.22.patch +61 -0
  18. package/patches/expo-web-browser@55.0.20.patch +13 -0
  19. package/patches/react-native-app-logs@0.3.1.patch +20 -0
  20. package/patches/react-native-blurhash@2.1.3.patch +318 -0
  21. package/patches/react-native-community-blur@4.4.1.patch +415 -0
  22. package/patches/react-native-community-datetimepicker@9.2.2.patch +320 -0
  23. package/patches/react-native-fast-image@10.9.9.patch +131 -0
  24. package/patches/react-native-graph@1.4.0.patch +157 -0
  25. package/patches/react-native-keyboard-controller@1.22.9.patch +16 -0
  26. package/patches/react-native-masked-view-masked-view@0.3.2.patch +140 -0
  27. package/patches/react-native-mmkv@4.3.2.patch +40 -0
  28. package/patches/react-native-nitro-fetch@1.9.0.patch +130 -0
  29. package/patches/react-native-nitro-zxing@0.3.0.patch +13 -0
  30. package/patches/react-native-nitro-zxing@0.3.1.patch +22 -0
  31. package/patches/react-native-quick-base64@3.0.1.patch +13 -0
  32. package/patches/react-native-quick-crypto@1.1.9.patch +31 -0
  33. package/patches/react-native-release-profiler@0.4.5.patch +37 -0
  34. package/patches/react-native-screen-corner-radius@0.2.3.patch +13 -0
  35. package/patches/react-native-screens@4.23.0.patch +160 -0
  36. package/patches/react-native-svg@15.15.3.patch +31 -0
  37. package/patches/react-native-unistyles@3.6.0.patch +203 -0
  38. package/patches/react-native-worklets-core@1.6.3.patch +13 -0
  39. package/patches/react-navigation-native-stack@7.21.0.patch +16 -0
  40. package/patches/registry.json +615 -0
  41. package/patches/sentry-react-native@8.32.0.patch +76 -0
  42. package/patches/workspace/expo-audio@55.0.18.patch +159 -0
  43. package/patches/workspace/op-engineering-op-sqlite@18.2.1.patch +796 -0
  44. package/patches/workspace/react-native-nitro-modules@0.37.0.patch +1348 -0
  45. package/patches/workspace/react-native-runtimes-core@0.1.0-alpha.2.patch +276 -0
  46. package/patches/workspace/react-native-webview@16.0.0.patch +208 -0
  47. package/postinstall.cjs +10 -1
  48. package/skills/spark/SKILL.md +37 -4
  49. package/skills/spark/UPGRADING.md +150 -1
  50. package/skills/spark/ai-customize.md +39 -0
  51. package/skills/spark/app-and-documents.md +56 -0
  52. package/skills/spark/external-libraries.md +87 -0
  53. package/skills/spark/files.md +64 -0
  54. package/skills/spark/integrations.md +69 -0
  55. package/skills/spark/keyboard.md +54 -0
  56. package/skills/spark/library-compat.md +76 -0
  57. package/skills/spark/menus-tray-dock.md +83 -0
  58. package/skills/spark/storage-settings.md +85 -0
  59. package/skills/spark/ui.md +57 -0
  60. package/skills/spark/windows.md +91 -0
  61. package/ui-popover.ts +1 -0
  62. package/ui-progress.ts +1 -0
  63. package/ui-sheet.ts +1 -0
  64. package/ui-split-view.ts +1 -0
  65. package/ui-table.ts +1 -0
  66. package/vendor/node_modules/@legendapp/spark-ai/package.json +3 -3
  67. package/vendor/node_modules/@legendapp/spark-audio/package.json +3 -13
  68. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -10
  69. package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +5 -0
  70. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +139 -104
  71. package/vendor/node_modules/@legendapp/spark-cli/dist/cli-arguments.js +4 -1
  72. package/vendor/node_modules/@legendapp/spark-cli/dist/commands.js +16 -7
  73. package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +19 -3
  74. package/vendor/node_modules/@legendapp/spark-cli/dist/dev-command.js +2 -0
  75. package/vendor/node_modules/@legendapp/spark-cli/dist/dev.js +10 -2
  76. package/vendor/node_modules/@legendapp/spark-cli/dist/enriched-html-pins.js +2 -0
  77. package/vendor/node_modules/@legendapp/spark-cli/dist/errors.js +1 -1
  78. package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +57 -9
  79. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.cjs +12 -2
  80. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.d.cts +1 -1
  81. package/vendor/node_modules/@legendapp/spark-cli/dist/metro.cjs +1 -0
  82. package/vendor/node_modules/@legendapp/spark-cli/dist/migrate.js +65 -0
  83. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +4 -4
  84. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +2 -2
  85. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +15 -8
  86. package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +35 -7
  87. package/vendor/node_modules/@legendapp/spark-cli/dist/patch.js +92 -0
  88. package/vendor/node_modules/@legendapp/spark-cli/dist/project-version.js +12 -4
  89. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +20 -1
  90. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +20 -20
  91. package/vendor/node_modules/@legendapp/spark-cli/dist/runtime-input-cache.js +140 -0
  92. package/vendor/node_modules/@legendapp/spark-cli/dist/upgrade.js +1 -1
  93. package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +3 -0
  94. package/vendor/node_modules/@legendapp/spark-cli/package.json +5 -4
  95. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +2 -2
  96. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +2 -2
  97. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +2 -2
  98. package/vendor/node_modules/@legendapp/spark-clipboard/macos/RNDesktopClipboard.mm +1 -1
  99. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +3 -10
  100. package/vendor/node_modules/@legendapp/spark-clipboard/src/desktop.ts +1 -0
  101. package/vendor/node_modules/@legendapp/spark-codex/package.json +3 -7
  102. package/vendor/node_modules/@legendapp/spark-commands/package.json +5 -5
  103. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +3 -10
  104. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.h +3 -1
  105. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +51 -10
  106. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkStorage.h +4 -0
  107. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkStorage.mm +82 -0
  108. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.mm +64 -2
  109. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +2 -8
  110. package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +3 -2
  111. package/vendor/node_modules/@legendapp/spark-desktop-config/config.cjs +6 -8
  112. package/vendor/node_modules/@legendapp/spark-desktop-config/identity.cjs +2 -0
  113. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +315 -68
  114. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +7 -0
  115. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +3 -3
  116. package/vendor/node_modules/@legendapp/spark-desktop-config/patch-registry.cjs +318 -0
  117. package/vendor/node_modules/@legendapp/spark-desktop-config/patch-registry.d.cts +20 -0
  118. package/vendor/node_modules/@legendapp/spark-desktop-config/validation.cjs +66 -9
  119. package/vendor/node_modules/@legendapp/spark-desktop-config/windows.plugin.cjs +1 -0
  120. package/vendor/node_modules/@legendapp/spark-desktop-host/AppDelegate.mm +1 -0
  121. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +2 -2
  122. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +3 -10
  123. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +3 -10
  124. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/RNDesktopWindows.mm +7 -2
  125. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +235 -240
  126. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +4 -11
  127. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/api.ts +9 -3
  128. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +7 -0
  129. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/types.ts +32 -3
  130. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/validation.ts +28 -11
  131. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/createWindowsNavigator.tsx +15 -3
  132. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/primaryWindowLifecycle.ts +12 -3
  133. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/usePrimaryWindowLifecycle.ts +2 -1
  134. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/windows/useWindowFocusEffect.ts +4 -1
  135. package/vendor/node_modules/@legendapp/spark-documents/package.json +7 -7
  136. package/vendor/node_modules/@legendapp/spark-drag-drop/macos/RNDesktopDragView.mm +77 -17
  137. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +3 -8
  138. package/vendor/node_modules/@legendapp/spark-drag-drop/src/DesktopDragViewNativeComponent.ts +1 -0
  139. package/vendor/node_modules/@legendapp/spark-drag-drop/src/contracts.ts +13 -4
  140. package/vendor/node_modules/@legendapp/spark-drag-drop/src/index.tsx +5 -3
  141. package/vendor/node_modules/@legendapp/spark-drag-drop/windows/SparkDragDrop/SparkDragDrop.h +6 -1
  142. package/vendor/node_modules/@legendapp/spark-expo-compat/metro.cjs +44 -0
  143. package/vendor/node_modules/@legendapp/spark-expo-compat/package.json +20 -0
  144. package/vendor/node_modules/@legendapp/spark-expo-compat/src/clipboard.ts +40 -0
  145. package/vendor/node_modules/@legendapp/spark-expo-compat/src/document-picker.ts +52 -0
  146. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +3 -10
  147. package/vendor/node_modules/@legendapp/spark-file-dialog/src/options.ts +5 -2
  148. package/vendor/node_modules/@legendapp/spark-file-dialog/src/types.ts +3 -3
  149. package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +1 -1
  150. package/vendor/node_modules/@legendapp/spark-file-system/package.json +3 -11
  151. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +3 -10
  152. package/vendor/node_modules/@legendapp/spark-html/package.json +2 -2
  153. package/vendor/node_modules/@legendapp/spark-markdown/package.json +2 -2
  154. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +3 -10
  155. package/vendor/node_modules/@legendapp/spark-message-dialog/src/index.ts +1 -0
  156. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +3 -9
  157. package/vendor/node_modules/@legendapp/spark-native-menu/src/hooks.ts +4 -0
  158. package/vendor/node_modules/@legendapp/spark-notifications/package.json +3 -10
  159. package/vendor/node_modules/@legendapp/spark-processes/package.json +3 -10
  160. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +2 -2
  161. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +3 -10
  162. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  163. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +4 -4
  164. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
  165. package/vendor/node_modules/@legendapp/spark-system/package.json +3 -10
  166. package/vendor/node_modules/@legendapp/spark-tray/package.json +3 -10
  167. package/vendor/node_modules/@legendapp/spark-tray/src/index.ts +2 -1
  168. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkButton.mm +82 -14
  169. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkTextInput.h +1 -1
  170. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkTextInput.mm +94 -11
  171. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +235 -18
  172. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkPaneSplitView.h +17 -0
  173. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkPaneSplitView.mm +216 -0
  174. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewComponent.h +4 -0
  175. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewComponent.mm +212 -0
  176. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSparkSplitViewUpdates.h +6 -0
  177. package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSegmentedControl.mm +26 -13
  178. package/vendor/node_modules/@legendapp/spark-ui/macos/popover/RNSparkPopover.h +9 -0
  179. package/vendor/node_modules/@legendapp/spark-ui/macos/popover/RNSparkPopover.mm +126 -0
  180. package/vendor/node_modules/@legendapp/spark-ui/macos/progress/RNSparkProgressIndicator.h +9 -0
  181. package/vendor/node_modules/@legendapp/spark-ui/macos/progress/RNSparkProgressIndicator.mm +66 -0
  182. package/vendor/node_modules/@legendapp/spark-ui/macos/radio-group/RNSparkRadioGroup.h +9 -0
  183. package/vendor/node_modules/@legendapp/spark-ui/macos/radio-group/RNSparkRadioGroup.mm +118 -0
  184. package/vendor/node_modules/@legendapp/spark-ui/macos/sf-symbol/RNSFSymbol.mm +4 -12
  185. package/vendor/node_modules/@legendapp/spark-ui/macos/sheet/RNSparkSheet.h +9 -0
  186. package/vendor/node_modules/@legendapp/spark-ui/macos/sheet/RNSparkSheet.mm +109 -0
  187. package/vendor/node_modules/@legendapp/spark-ui/macos/sidebar/RNSidebar.mm +418 -102
  188. package/vendor/node_modules/@legendapp/spark-ui/macos/table/RNSparkTable.h +9 -0
  189. package/vendor/node_modules/@legendapp/spark-ui/macos/table/RNSparkTable.mm +179 -0
  190. package/vendor/node_modules/@legendapp/spark-ui/package.json +9 -8
  191. package/vendor/node_modules/@legendapp/spark-ui/src/SparkButtonNativeComponent.ts +10 -2
  192. package/vendor/node_modules/@legendapp/spark-ui/src/SparkTextInputNativeComponent.ts +2 -0
  193. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +9 -0
  194. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SplitView.tsx +99 -0
  195. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SplitViewNativeComponent.ts +29 -0
  196. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +34 -17
  197. package/vendor/node_modules/@legendapp/spark-ui/src/availability.ts +5 -4
  198. package/vendor/node_modules/@legendapp/spark-ui/src/checkbox-unavailable.tsx +20 -0
  199. package/vendor/node_modules/@legendapp/spark-ui/src/control.ts +24 -3
  200. package/vendor/node_modules/@legendapp/spark-ui/src/desktop.tsx +63 -13
  201. package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +12 -7
  202. package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +12 -7
  203. package/vendor/node_modules/@legendapp/spark-ui/src/index.web.tsx +35 -13
  204. package/vendor/node_modules/@legendapp/spark-ui/src/mobile-input.tsx +2 -2
  205. package/vendor/node_modules/@legendapp/spark-ui/src/native-select/NativeSegmentedControlNativeComponent.ts +3 -1
  206. package/vendor/node_modules/@legendapp/spark-ui/src/popover/PopoverNativeComponent.ts +20 -0
  207. package/vendor/node_modules/@legendapp/spark-ui/src/popover/index.tsx +45 -0
  208. package/vendor/node_modules/@legendapp/spark-ui/src/progress/ProgressIndicatorNativeComponent.ts +13 -0
  209. package/vendor/node_modules/@legendapp/spark-ui/src/progress/index.tsx +32 -0
  210. package/vendor/node_modules/@legendapp/spark-ui/src/radio-group/RadioGroupNativeComponent.ts +17 -0
  211. package/vendor/node_modules/@legendapp/spark-ui/src/sheet/SheetNativeComponent.ts +15 -0
  212. package/vendor/node_modules/@legendapp/spark-ui/src/sheet/index.tsx +38 -0
  213. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/SidebarItemNativeComponent.ts +9 -1
  214. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/SidebarNativeComponent.ts +17 -2
  215. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/index.tsx +106 -22
  216. package/vendor/node_modules/@legendapp/spark-ui/src/table/TableNativeComponent.ts +22 -0
  217. package/vendor/node_modules/@legendapp/spark-ui/src/table/index.tsx +118 -0
  218. package/vendor/node_modules/@legendapp/spark-ui/src/types.ts +39 -6
  219. package/vendor/node_modules/@legendapp/spark-ui/uniwind.ts +3 -1
  220. package/vendor/node_modules/@legendapp/spark-ui/uniwind.web.ts +2 -1
  221. package/vendor/node_modules/@legendapp/spark-ui/windows/SparkUI/SparkUI.h +46 -15
  222. package/vendor/node_modules/@legendapp/spark-updates/package.json +3 -9
  223. package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
  224. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
package/init-template.cjs CHANGED
@@ -1,2 +1,8 @@
1
1
  module.exports = require("./vendor/node_modules/@legendapp/spark-cli/dist/init-template.cjs");
2
- if (require.main === module) module.exports.initializeTemplate(process.cwd());
2
+ if (require.main === module) {
3
+ const root = process.cwd();
4
+ require("./vendor/node_modules/@legendapp/spark-desktop-config/patch-registry.cjs").ensurePatchRegistry(root).then(() => {
5
+ module.exports.initializeTemplate(root);
6
+ require("./vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs").prepareNativePatches(root);
7
+ }).catch(error => { console.error(error.message); process.exitCode = 1; });
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -63,6 +63,10 @@
63
63
  "./ui/glass": "./ui-glass.ts",
64
64
  "./ui/swipe": "./ui-swipe.ts",
65
65
  "./ui/symbol": "./ui-symbol.ts",
66
+ "./ui/popover": "./ui-popover.ts",
67
+ "./ui/sheet": "./ui-sheet.ts",
68
+ "./ui/table": "./ui-table.ts",
69
+ "./ui/progress": "./ui-progress.ts",
66
70
  "./ui/search": "./ui-search.ts",
67
71
  "./settings/window": "./settings-window.ts",
68
72
  "./settings/observable": "./settings-observable.ts",
@@ -184,7 +188,7 @@
184
188
  "spark": {
185
189
  "nativePatchRequirements": {
186
190
  "schema": 1,
187
- "frameworkVersion": "0.0.2",
191
+ "frameworkVersion": "0.0.4",
188
192
  "packages": {
189
193
  "@react-native-runtimes/core": {
190
194
  "version": "0.1.0-alpha.2",
@@ -193,17 +197,17 @@
193
197
  },
194
198
  "react-native-nitro-modules": {
195
199
  "version": "0.37.0",
196
- "patchHash": "ed6a1b06388b53b8d6bf04506faec02edb455032a3595db40f0f2cdfa3ed9564",
200
+ "patchHash": "2baedc8e2b79533f215059b2fb5d02f9813e2ee7505d799b038cb66216428282",
197
201
  "upstreamIntegrity": "sha512-ULS2CBZcdwGw5d4Y35EV/tbCOsNsQOnQ9LC9CehMhDNm5c90lwF/LxRamzKuFpjI547G7teTQgD0peqYSGnP9g=="
198
202
  },
199
203
  "@op-engineering/op-sqlite": {
200
204
  "version": "18.2.1",
201
- "patchHash": "d9ac2b3aaea926aac4c70804e6d687afc10f851d9addd2c23e77b4f62a211842",
205
+ "patchHash": "6132dbdfb11e775d02c581a4dcb445a3f59f2a1d286df4ede31a5f0194dcbc2d",
202
206
  "upstreamIntegrity": "sha512-atVOtXyFzO0e454eVS27AMwRs515URCKrkvLLG+mGKcyiF5UPfC53oukpNp2UmVzlLebyTEXNkTYs6n0dVGd0g=="
203
207
  },
204
208
  "react-native-webview": {
205
209
  "version": "16.0.0",
206
- "patchHash": "5fc68e6431c48c6cf1cc15db6ac84cdfe50a73c5e99b405eebbe9aabffc71a2b",
210
+ "patchHash": "3848bb32ccbbe17f788c8678b984bebad232f0123a48d803c451d28642f043e9",
207
211
  "upstreamIntegrity": "sha512-KIg5Yhy04lQfHdXC1JQPM+0kftMfPnH6AqDH7v6YskQ9kzfUacooofOFRmbaZHASq/0WY87Fx0peiFETFjOcCg=="
208
212
  },
209
213
  "expo-audio": {
@@ -230,6 +234,7 @@
230
234
  "@legendapp/spark-desktop-windows",
231
235
  "@legendapp/spark-documents",
232
236
  "@legendapp/spark-drag-drop",
237
+ "@legendapp/spark-expo-compat",
233
238
  "@legendapp/spark-file-dialog",
234
239
  "@legendapp/spark-file-system",
235
240
  "@legendapp/spark-global-shortcuts",
@@ -10,5 +10,257 @@
10
10
  "url": "https://registry.npmjs.org/react-native-enriched-html/-/react-native-enriched-html-1.1.1.tgz",
11
11
  "integrity": "sha512-OlJLESOgA4eqgWQe3BXOK9kFk7iypOnQo22sIce5k/x2eGsOtnAwDPqHnaVfnOZlzzNWh+wXRzxuSL1tSBOkgA==",
12
12
  "patch": "react-native-enriched-html@1.1.1.patch"
13
+ },
14
+ "react-native-mmkv": {
15
+ "version": "4.3.2",
16
+ "url": "https://registry.npmjs.org/react-native-mmkv/-/react-native-mmkv-4.3.2.tgz",
17
+ "integrity": "sha512-49OAyfkg0/TMWiWELZN6VuVQPZPhizwL4DTmp8b7B1md3dB/s3LH3mGfC3T+lp9W0y/rqxZMEnotLFTIbOAenQ==",
18
+ "patch": "react-native-mmkv@4.3.2.patch",
19
+ "optional": true
20
+ },
21
+ "react-native-unistyles": {
22
+ "version": "3.6.0",
23
+ "url": "https://registry.npmjs.org/react-native-unistyles/-/react-native-unistyles-3.6.0.tgz",
24
+ "integrity": "sha512-eYqixPy6auBj6k/ica9fCYIPgFQsLzUwRoxGZ04hX3hkANTNjaz3/LzNfXPfgJbwF/fQrhaK0qII4nhtSqUPfA==",
25
+ "patch": "react-native-unistyles@3.6.0.patch",
26
+ "optional": true
27
+ },
28
+ "react-native-quick-crypto": {
29
+ "version": "1.1.9",
30
+ "url": "https://registry.npmjs.org/react-native-quick-crypto/-/react-native-quick-crypto-1.1.9.tgz",
31
+ "integrity": "sha512-u60Kr4EdAYI1ksGq7uwJfOXNJR/iWkCQ1AxfoVbjM/pEpiydddzsFXFYqwyv7EeB7eTDgg5/LiCGwNxA7W7NKA==",
32
+ "patch": "react-native-quick-crypto@1.1.9.patch",
33
+ "optional": true
34
+ },
35
+ "react-native-quick-base64": {
36
+ "version": "3.0.1",
37
+ "url": "https://registry.npmjs.org/react-native-quick-base64/-/react-native-quick-base64-3.0.1.tgz",
38
+ "integrity": "sha512-EjUP2U7WqKmlMmoY7XGyHomy8bM0q4+yCDCRg4ZezQ6zedYRwc7yVk4V2O/iSftKaLEzhuW98lpyPMdk1iPHXQ==",
39
+ "patch": "react-native-quick-base64@3.0.1.patch",
40
+ "optional": true
41
+ },
42
+ "react-native-nitro-fetch": {
43
+ "version": "1.9.0",
44
+ "url": "https://registry.npmjs.org/react-native-nitro-fetch/-/react-native-nitro-fetch-1.9.0.tgz",
45
+ "integrity": "sha512-4rxaPcXKudZW1Ma1Y63rHF8/7hbanOyqr01Gac6ROUYApcCH8/YtS0d02cm0ZEbSzwPvmcvFRzPoT4cHWxhJGA==",
46
+ "patch": "react-native-nitro-fetch@1.9.0.patch",
47
+ "optional": true
48
+ },
49
+ "@react-native-community/blur": {
50
+ "version": "4.4.1",
51
+ "url": "https://registry.npmjs.org/@react-native-community/blur/-/blur-4.4.1.tgz",
52
+ "integrity": "sha512-XBSsRiYxE/MOEln2ayunShfJtWztHwUxLFcSL20o+HNNRnuUDv+GXkF6FmM2zE8ZUfrnhQ/zeTqvnuDPGw6O8A==",
53
+ "patch": "react-native-community-blur@4.4.1.patch",
54
+ "optional": true
55
+ },
56
+ "react-native-worklets-core": {
57
+ "version": "1.6.3",
58
+ "url": "https://registry.npmjs.org/react-native-worklets-core/-/react-native-worklets-core-1.6.3.tgz",
59
+ "integrity": "sha512-r3Q40XQBccx/iAI5tlyiua+micvO1UGzzUOskNweZUXyfrrE+rb5aqxqruBPqXf90rO+bBiplylLMEAXCLTyGA==",
60
+ "patch": "react-native-worklets-core@1.6.3.patch",
61
+ "optional": true
62
+ },
63
+ "react-native-fast-image": {
64
+ "version": "10.9.9",
65
+ "url": "https://registry.npmjs.org/react-native-fast-image/-/react-native-fast-image-10.9.9.tgz",
66
+ "integrity": "sha512-Dev69p1kcTxx7qLLFwax5hB/3X5wMNpviUIXS6K6KnITyhu+O2AEUhenZoq2OmGnT9UzHBIYHkEKoFebZNK/lA==",
67
+ "patch": "react-native-fast-image@10.9.9.patch",
68
+ "optional": true
69
+ },
70
+ "react-native-release-profiler": {
71
+ "version": "0.4.5",
72
+ "url": "https://registry.npmjs.org/react-native-release-profiler/-/react-native-release-profiler-0.4.5.tgz",
73
+ "integrity": "sha512-1w05jDlKRdIMxTuSPep67eMc+FW805SJZjWJwBVsPIQHmRYttxBdrdbzF0mG5XVvMVRNji4RHLidu54+V54lRQ==",
74
+ "patch": "react-native-release-profiler@0.4.5.patch",
75
+ "optional": true
76
+ },
77
+ "react-native-blurhash": {
78
+ "version": "2.1.3",
79
+ "url": "https://registry.npmjs.org/react-native-blurhash/-/react-native-blurhash-2.1.3.tgz",
80
+ "integrity": "sha512-tYyFketZkrrEIABJ5Z1Pt6N2dqPqtSp7w4Lce17sx1bvspdppgVu/ehtZoPRZu02fYyX92RkyCeGXtCbtUNntg==",
81
+ "patch": "react-native-blurhash@2.1.3.patch",
82
+ "optional": true
83
+ },
84
+ "react-native-screen-corner-radius": {
85
+ "version": "0.2.3",
86
+ "url": "https://registry.npmjs.org/react-native-screen-corner-radius/-/react-native-screen-corner-radius-0.2.3.tgz",
87
+ "integrity": "sha512-8JgiHI/S2Xf6swquEjopHW//wI4a/nV/dEImJMR8YXQVWVdnjbhcMi0NGk1s1cW8xuunwlFT173PozsS3Gvgxg==",
88
+ "patch": "react-native-screen-corner-radius@0.2.3.patch",
89
+ "optional": true
90
+ },
91
+ "react-native-app-logs": {
92
+ "version": "0.3.1",
93
+ "url": "https://registry.npmjs.org/react-native-app-logs/-/react-native-app-logs-0.3.1.tgz",
94
+ "integrity": "sha512-Nyxwx92vJRTIBdIRiHlFrz0IFJq+rKIsq6XFRiYT7ZBA1jQIPBYX/kx9kCRwqLDGnSBzec2oYwPScGEllRpNCw==",
95
+ "patch": "react-native-app-logs@0.3.1.patch",
96
+ "optional": true
97
+ },
98
+ "react-native-nitro-zxing": {
99
+ "version": "0.3.1",
100
+ "url": "https://registry.npmjs.org/react-native-nitro-zxing/-/react-native-nitro-zxing-0.3.1.tgz",
101
+ "integrity": "sha512-KBQaNqsme3K1Fk02V+Pbkb30cjl4CiBF9oHNHMAcX1r8c4aS665BYqLoE067MYklOCc1MLlG0/bw1eDK8mW6Xg==",
102
+ "patch": "react-native-nitro-zxing@0.3.1.patch",
103
+ "optional": true
104
+ },
105
+ "expo-keep-awake": {
106
+ "version": "55.0.8",
107
+ "url": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-55.0.8.tgz",
108
+ "integrity": "sha512-PfIpMfM+STOBwkR5XOE+yVtER86c44MD+W8QD8JxuO0sT9pF7Y1SJYakWlpvX8xsGA+bjKLxftm9403s9kQhKA==",
109
+ "patch": "expo-keep-awake@55.0.8.patch",
110
+ "optional": true
111
+ },
112
+ "react-native-screens": {
113
+ "version": "4.23.0",
114
+ "url": "https://registry.npmjs.org/react-native-screens/-/react-native-screens-4.23.0.tgz",
115
+ "integrity": "sha512-XhO3aK0UeLpBn4kLecd+J+EDeRRJlI/Ro9Fze06vo1q163VeYtzfU9QS09/VyDFMWR1qxDC1iazCArTPSFFiPw==",
116
+ "patch": "react-native-screens@4.23.0.patch",
117
+ "optional": true
118
+ },
119
+ "@react-navigation/native-stack": {
120
+ "version": "7.21.0",
121
+ "url": "https://registry.npmjs.org/@react-navigation/native-stack/-/native-stack-7.21.0.tgz",
122
+ "integrity": "sha512-bYrNW87nDtbMXAJsosYwu59xwTqeuaurfCDA+62MQ6hY4+2Iv71+Sik3ulW92fOqg8s2SZinOJosHEWoi9Ayqw==",
123
+ "patch": "react-navigation-native-stack@7.21.0.patch",
124
+ "optional": true
125
+ },
126
+ "expo-web-browser": {
127
+ "version": "55.0.20",
128
+ "url": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-55.0.20.tgz",
129
+ "integrity": "sha512-masGrfbi/jqMezm/8cHHZ8chW+ifxumzt7QOCPiL+9aix0BSwuwDIBryEm2QPVmqJX51jckS0n245vWhwheQuQ==",
130
+ "patch": "expo-web-browser@55.0.20.patch",
131
+ "optional": true
132
+ },
133
+ "expo-application": {
134
+ "version": "55.0.19",
135
+ "url": "https://registry.npmjs.org/expo-application/-/expo-application-55.0.19.tgz",
136
+ "integrity": "sha512-RFer4T46/OaIkNQEweA9PQj6xlXKor71IPNydWxlupx/XG05Yv/269HJJ3Q9zejdY9M7R3jTeTlAYYmXwbLBgA==",
137
+ "patch": "expo-application@55.0.19.patch",
138
+ "optional": true
139
+ },
140
+ "expo-device": {
141
+ "version": "55.0.21",
142
+ "url": "https://registry.npmjs.org/expo-device/-/expo-device-55.0.21.tgz",
143
+ "integrity": "sha512-W2DNWWnjk3KSdAy2BtK9ie1lByO6IsJIpriQAnvS1+d/e12wXhq14iZLUB5iA0CCVftU3eliQRIzkyT2cdL9Ng==",
144
+ "patch": "expo-device@55.0.21.patch",
145
+ "optional": true
146
+ },
147
+ "expo-localization": {
148
+ "version": "55.0.19",
149
+ "url": "https://registry.npmjs.org/expo-localization/-/expo-localization-55.0.19.tgz",
150
+ "integrity": "sha512-rw8pcC4QL8HC3K8Vs5pdVCB+ayFkaVD0f+Ul+jHgM6W7XdzGtCzd0x7rI3M/9PzP1YpAgQ4jYZid/g+UKi9IIA==",
151
+ "patch": "expo-localization@55.0.19.patch",
152
+ "optional": true
153
+ },
154
+ "expo-haptics": {
155
+ "version": "55.0.18",
156
+ "url": "https://registry.npmjs.org/expo-haptics/-/expo-haptics-55.0.18.tgz",
157
+ "integrity": "sha512-bEH0bf5bBGn7U2eTZVdiXBUk4vTfNGbfv9/9PCYLg3gL7L/WE2g8WKs2vYg1B4/BDSucyO8prZofH3IgvLJojQ==",
158
+ "patch": "expo-haptics@55.0.18.patch",
159
+ "optional": true
160
+ },
161
+ "react-native-svg": {
162
+ "version": "15.15.3",
163
+ "url": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.15.3.tgz",
164
+ "integrity": "sha512-/k4KYwPBLGcx2f5d4FjE+vCScK7QOX14cl2lIASJ28u4slHHtIhL0SZKU7u9qmRBHxTCKPoPBtN6haT1NENJNA==",
165
+ "patch": "react-native-svg@15.15.3.patch",
166
+ "optional": true
167
+ },
168
+ "expo-font": {
169
+ "version": "55.0.8",
170
+ "url": "https://registry.npmjs.org/expo-font/-/expo-font-55.0.8.tgz",
171
+ "integrity": "sha512-WyP75pnKqhLNktYwDn3xKAUNt5rLihRDv8XWGhhz6VEhVqypixpT86NA3uGtiDTlM3gGjhrYCY7o7ypXgCUOZg==",
172
+ "patch": "expo-font@55.0.8.patch",
173
+ "optional": true
174
+ },
175
+ "expo-blur": {
176
+ "version": "55.0.18",
177
+ "url": "https://registry.npmjs.org/expo-blur/-/expo-blur-55.0.18.tgz",
178
+ "integrity": "sha512-eXuVAahonZXLrXa//isvq72ed1to/MmbHUyd2WTkRH2/FjC9X91rZ4BUNIFBZnAxaNXQrKw/ITfG/VMVz1DIhQ==",
179
+ "patch": "expo-blur@55.0.18.patch",
180
+ "optional": true
181
+ },
182
+ "expo-image": {
183
+ "version": "55.0.11",
184
+ "url": "https://registry.npmjs.org/expo-image/-/expo-image-55.0.11.tgz",
185
+ "integrity": "sha512-PVIBYQJW/h1f6Zb9xnoWlgfqyOPVm2yb6eo6ZogaKbvMrhb/Q/fiERbagi4oqmR6IPljWPEpkXXQyFBUh7TjpQ==",
186
+ "patch": "expo-image@55.0.11.patch",
187
+ "optional": true
188
+ },
189
+ "expo-symbols": {
190
+ "version": "55.0.9",
191
+ "url": "https://registry.npmjs.org/expo-symbols/-/expo-symbols-55.0.9.tgz",
192
+ "integrity": "sha512-F85C/8ExQjd2gYjasLVKMT8wPj+1+19TVTqg4jAeVjVZklqiQtLO72io9Ji1xAjYNgmDeUI0diVHlFMMTC4Ekg==",
193
+ "patch": "expo-symbols@55.0.9.patch",
194
+ "optional": true
195
+ },
196
+ "@react-native-masked-view/masked-view": {
197
+ "version": "0.3.2",
198
+ "url": "https://registry.npmjs.org/@react-native-masked-view/masked-view/-/masked-view-0.3.2.tgz",
199
+ "integrity": "sha512-XwuQoW7/GEgWRMovOQtX3A4PrXhyaZm0lVUiY8qJDvdngjLms9Cpdck6SmGAUNqQwcj2EadHC1HwL0bEyoa/SQ==",
200
+ "patch": "react-native-masked-view-masked-view@0.3.2.patch",
201
+ "optional": true
202
+ },
203
+ "expo-glass-effect": {
204
+ "version": "55.0.11",
205
+ "url": "https://registry.npmjs.org/expo-glass-effect/-/expo-glass-effect-55.0.11.tgz",
206
+ "integrity": "sha512-wqq7GUOqSkfoFJzreZvBG0jzjsq5c582m3glhWSjcmIuByxXXWp6j6GY6hyFuYKzpOXhbuvusVxGCQi0yWnp3g==",
207
+ "patch": "expo-glass-effect@55.0.11.patch",
208
+ "optional": true
209
+ },
210
+ "expo-system-ui": {
211
+ "version": "55.0.22",
212
+ "url": "https://registry.npmjs.org/expo-system-ui/-/expo-system-ui-55.0.22.tgz",
213
+ "integrity": "sha512-/ma8XGdwXvWkeZN++pHQt66jEQ4ZsaV9B5nP/+PAmXa4hAukPxG2bXjZaNOOOlTssWlaJRclJgGeC+Wo2uJlXQ==",
214
+ "patch": "expo-system-ui@55.0.22.patch",
215
+ "optional": true
216
+ },
217
+ "expo-image-picker": {
218
+ "version": "55.0.24",
219
+ "url": "https://registry.npmjs.org/expo-image-picker/-/expo-image-picker-55.0.24.tgz",
220
+ "integrity": "sha512-scbtvQIgiqiOxQx/lFEocJkWPzYANHjwFLnzfKjdZNWh3RJjjMmtHaEoeu7lM9RzqE3EwF+JQecgy+FATXNfiQ==",
221
+ "patch": "expo-image-picker@55.0.24.patch",
222
+ "optional": true
223
+ },
224
+ "expo-image-manipulator": {
225
+ "version": "55.0.21",
226
+ "url": "https://registry.npmjs.org/expo-image-manipulator/-/expo-image-manipulator-55.0.21.tgz",
227
+ "integrity": "sha512-BlVl692hVDKuWzOCnbUsfp1u0XqujOABm/Kv3ISMg0qRMchvD6vUSJ/XOIj80+6B9CCm1hNgklgeJ0SIEHiCVQ==",
228
+ "patch": "expo-image-manipulator@55.0.21.patch",
229
+ "optional": true
230
+ },
231
+ "expo-location": {
232
+ "version": "55.1.15",
233
+ "url": "https://registry.npmjs.org/expo-location/-/expo-location-55.1.15.tgz",
234
+ "integrity": "sha512-4wTDpVZg2/ZH4FnLkobY+PeIrfPz0uFTQqx7LIkxgviucNcRUPGstODBd+XRBOd8mIU1tN1vf6TSs8qEzOOJAw==",
235
+ "patch": "expo-location@55.1.15.patch",
236
+ "optional": true
237
+ },
238
+ "@react-native-community/datetimepicker": {
239
+ "version": "9.2.2",
240
+ "url": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-9.2.2.tgz",
241
+ "integrity": "sha512-0cZGrK61UZ8VxpKKV/lun/L/b5wKus55IhvqqdewUayHwIc73lrLI0l5CIlHw8tA0/yQEzHEMEdtHQglAD+hKA==",
242
+ "patch": "react-native-community-datetimepicker@9.2.2.patch",
243
+ "optional": true
244
+ },
245
+ "react-native-keyboard-controller": {
246
+ "version": "1.22.9",
247
+ "url": "https://registry.npmjs.org/react-native-keyboard-controller/-/react-native-keyboard-controller-1.22.9.tgz",
248
+ "integrity": "sha512-nLoXvTbIy/9cI4p/bAXUP7Vfi6Mf2Q7g/gsh2H29C7hgUSQQLdoQjl8inhKC25oxaEibB0CMR++h3HP/k/+BVw==",
249
+ "patch": "react-native-keyboard-controller@1.22.9.patch",
250
+ "optional": true
251
+ },
252
+ "@sentry/react-native": {
253
+ "version": "8.32.0",
254
+ "url": "https://registry.npmjs.org/@sentry/react-native/-/react-native-8.32.0.tgz",
255
+ "integrity": "sha512-Z7W2t0oDrm46JU+FgdB0AL+Ru5urBVmFhYl/RjuPi2AnAjddmbNyDZGzpOLSYtl6oWqqz2u4zGuj3ZFjrCMJOg==",
256
+ "patch": "sentry-react-native@8.32.0.patch",
257
+ "optional": true
258
+ },
259
+ "react-native-graph": {
260
+ "version": "1.4.0",
261
+ "url": "https://registry.npmjs.org/react-native-graph/-/react-native-graph-1.4.0.tgz",
262
+ "integrity": "sha512-Mh0P3kXWrbg9WxPAgce3a+XzKSE36sE9lSi+VwXw/5Ps1VChsa4eApI8LHqpcdvlWH7qjCNk5cSdFkGDuA8Kgw==",
263
+ "patch": "react-native-graph@1.4.0.patch",
264
+ "optional": true
13
265
  }
14
266
  }
@@ -0,0 +1,54 @@
1
+ diff --git a/ios/ApplicationModule.swift b/ios/ApplicationModule.swift
2
+ index 30eebcb..9626a66 100644
3
+ --- a/ios/ApplicationModule.swift
4
+ +++ b/ios/ApplicationModule.swift
5
+ @@ -24,13 +24,23 @@ public class ApplicationModule: Module {
6
+ }
7
+
8
+ AsyncFunction("getIosIdForVendorAsync") { () -> String? in
9
+ + #if os(macOS)
10
+ + // macOS has no identifier for vendor.
11
+ + return nil
12
+ + #else
13
+ return UIDevice.current.identifierForVendor?.uuidString
14
+ + #endif
15
+ }
16
+
17
+ AsyncFunction("getInstallationTimeAsync") { () -> Double in
18
+ + #if os(macOS)
19
+ + // ~/Documents is the user's folder on a Mac (shared and privacy-protected); the app bundle is the installation.
20
+ + let urlToDocumentsFolder = Bundle.main.bundleURL
21
+ + #else
22
+ guard let urlToDocumentsFolder = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last else {
23
+ throw UrlDocumentDirectoryException()
24
+ }
25
+ + #endif
26
+
27
+ do {
28
+ let fileAttributes = try FileManager.default.attributesOfItem(atPath: urlToDocumentsFolder.path)
29
+ diff --git a/ios/EXApplication/EXProvisioningProfile.m b/ios/EXApplication/EXProvisioningProfile.m
30
+ index 5c06b26..b88d888 100644
31
+ --- a/ios/EXApplication/EXProvisioningProfile.m
32
+ +++ b/ios/EXApplication/EXProvisioningProfile.m
33
+ @@ -42,6 +42,9 @@ - (EXAppReleaseType)appReleaseType {
34
+ // provisioning profile does not exist
35
+ #if TARGET_IPHONE_SIMULATOR
36
+ return EXAppReleaseSimulator;
37
+ +#elif TARGET_OS_OSX
38
+ + // Mac apps carry embedded.provisionprofile, not embedded.mobileprovision.
39
+ + return EXAppReleaseTypeUnknown;
40
+ #else
41
+ return EXAppReleaseAppStore;
42
+ #endif
43
+ diff --git a/ios/EXApplication.podspec b/ios/EXApplication.podspec
44
+ index 3c178ae..6f4e6d7 100644
45
+ --- a/ios/EXApplication.podspec
46
+ +++ b/ios/EXApplication.podspec
47
+ @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
48
+ s.homepage = package['homepage']
49
+ s.platforms = {
50
+ :ios => '15.1',
51
+ + :osx => '14.0',
52
+ :tvos => '15.1'
53
+ }
54
+ s.swift_version = '5.9'
@@ -0,0 +1,130 @@
1
+ diff --git a/ios/BlurEffectView.swift b/ios/BlurEffectView.swift
2
+ index 185f69a..b1e0ed6 100644
3
+ --- a/ios/BlurEffectView.swift
4
+ +++ b/ios/BlurEffectView.swift
5
+ @@ -1,8 +1,41 @@
6
+ // Copyright 2015-present 650 Industries. All rights reserved.
7
+
8
+ -import UIKit
9
+ import ExpoModulesCore
10
+
11
+ +#if os(macOS)
12
+ +import AppKit
13
+ +
14
+ +/**
15
+ + AppKit has no blur radius: intensity fades the material in, and the tint picks a material and appearance.
16
+ + */
17
+ +final class BlurEffectView: NSVisualEffectView {
18
+ + @Clamping(lowerBound: 0.01, upperBound: 1)
19
+ + var intensity: Double = 0.5 {
20
+ + didSet {
21
+ + alphaValue = CGFloat(intensity)
22
+ + }
23
+ + }
24
+ +
25
+ + var tint: TintStyle = .light {
26
+ + didSet {
27
+ + material = tint.toMaterial()
28
+ + appearance = tint.toAppearance()
29
+ + }
30
+ + }
31
+ +
32
+ + init() {
33
+ + super.init(frame: .zero)
34
+ + blendingMode = .withinWindow
35
+ + state = .active
36
+ + material = TintStyle.default.toMaterial()
37
+ + alphaValue = CGFloat(intensity)
38
+ + }
39
+ +
40
+ + required init?(coder aDecoder: NSCoder) { nil }
41
+ +}
42
+ +#else
43
+ +import UIKit
44
+ +
45
+ /**
46
+ This class is based on https://gist.github.com/darrarski/29a2a4515508e385c90b3ffe6f975df7
47
+ */
48
+ @@ -57,6 +90,8 @@ final class BlurEffectView: UIVisualEffectView {
49
+ }
50
+ }
51
+
52
+ +#endif
53
+ +
54
+ private func isDetoxPresent() -> Bool {
55
+ let args = ProcessInfo.processInfo.arguments
56
+
57
+ diff --git a/ios/ExpoBlur.podspec b/ios/ExpoBlur.podspec
58
+ index e4fb69d..33dcde0 100644
59
+ --- a/ios/ExpoBlur.podspec
60
+ +++ b/ios/ExpoBlur.podspec
61
+ @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
62
+ s.homepage = package['homepage']
63
+ s.platforms = {
64
+ :ios => '15.1',
65
+ + :osx => '14.0',
66
+ :tvos => '15.1'
67
+ }
68
+ s.source = { git: 'https://github.com/expo/expo.git' }
69
+ diff --git a/ios/ExpoBlurView.swift b/ios/ExpoBlurView.swift
70
+ index e0dd06b..b357b6f 100644
71
+ --- a/ios/ExpoBlurView.swift
72
+ +++ b/ios/ExpoBlurView.swift
73
+ @@ -8,7 +8,11 @@ public final class ExpoBlurView: ExpoView {
74
+ public required init(appContext: AppContext? = nil) {
75
+ super.init(appContext: appContext)
76
+
77
+ + #if os(macOS)
78
+ + blurEffectView.autoresizingMask = [.width, .height]
79
+ + #else
80
+ blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
81
+ + #endif
82
+ clipsToBounds = true
83
+
84
+ addSubview(blurEffectView)
85
+ diff --git a/ios/TintStyle.swift b/ios/TintStyle.swift
86
+ index ca79ed4..144d5f5 100644
87
+ --- a/ios/TintStyle.swift
88
+ +++ b/ios/TintStyle.swift
89
+ @@ -23,6 +23,35 @@ public enum TintStyle: String, Enumerable {
90
+ case systemThickMaterialDark
91
+ case systemChromeMaterialDark
92
+
93
+ +#if os(macOS)
94
+ + func toMaterial() -> NSVisualEffectView.Material {
95
+ + switch self {
96
+ + case .systemUltraThinMaterial, .systemUltraThinMaterialLight, .systemUltraThinMaterialDark:
97
+ + return .hudWindow
98
+ + case .systemThinMaterial, .systemThinMaterialLight, .systemThinMaterialDark:
99
+ + return .popover
100
+ + case .systemThickMaterial, .systemThickMaterialLight, .systemThickMaterialDark:
101
+ + return .windowBackground
102
+ + case .systemChromeMaterial, .systemChromeMaterialLight, .systemChromeMaterialDark:
103
+ + return .titlebar
104
+ + case .systemMaterial, .systemMaterialLight, .systemMaterialDark, .regular, .prominent, .default:
105
+ + return .contentBackground
106
+ + case .extraLight, .light, .dark:
107
+ + return .fullScreenUI
108
+ + }
109
+ + }
110
+ +
111
+ + func toAppearance() -> NSAppearance? {
112
+ + switch self {
113
+ + case .dark, .systemUltraThinMaterialDark, .systemThinMaterialDark, .systemMaterialDark, .systemThickMaterialDark, .systemChromeMaterialDark:
114
+ + return NSAppearance(named: .darkAqua)
115
+ + case .extraLight, .light, .systemUltraThinMaterialLight, .systemThinMaterialLight, .systemMaterialLight, .systemThickMaterialLight, .systemChromeMaterialLight:
116
+ + return NSAppearance(named: .aqua)
117
+ + default:
118
+ + return nil
119
+ + }
120
+ + }
121
+ +#else
122
+ func toBlurEffect() -> UIBlurEffect.Style {
123
+ #if os(tvOS)
124
+ switch self {
125
+ @@ -116,4 +145,5 @@ public enum TintStyle: String, Enumerable {
126
+ }
127
+ #endif
128
+ }
129
+ +#endif
130
+ }
@@ -0,0 +1,149 @@
1
+ diff --git a/ios/DeviceModule.swift b/ios/DeviceModule.swift
2
+ index 899b214..c5a3d45 100644
3
+ --- a/ios/DeviceModule.swift
4
+ +++ b/ios/DeviceModule.swift
5
+ @@ -1,5 +1,9 @@
6
+ import ExpoModulesCore
7
+ +#if canImport(UIKit)
8
+ import UIKit
9
+ +#else
10
+ +import SystemConfiguration
11
+ +#endif
12
+ import MachO
13
+
14
+ public class DeviceModule: Module {
15
+ @@ -19,15 +23,27 @@ public class DeviceModule: Module {
16
+ }
17
+
18
+ Constant("modelId") {
19
+ +#if os(macOS)
20
+ + sysctlString("hw.model")
21
+ +#else
22
+ UIDevice.modelIdentifier
23
+ +#endif
24
+ }
25
+
26
+ Constant("modelName") {
27
+ +#if os(macOS)
28
+ + nil as String?
29
+ +#else
30
+ UIDevice.DeviceMap.modelName
31
+ +#endif
32
+ }
33
+
34
+ Constant("deviceYearClass") {
35
+ +#if os(macOS)
36
+ + nil as Int?
37
+ +#else
38
+ UIDevice.DeviceMap.deviceYearClass
39
+ +#endif
40
+ }
41
+
42
+ Constant("totalMemory") {
43
+ @@ -35,11 +51,19 @@ public class DeviceModule: Module {
44
+ }
45
+
46
+ Constant("osName") {
47
+ +#if os(macOS)
48
+ + "macOS"
49
+ +#else
50
+ UIDevice.current.systemName
51
+ +#endif
52
+ }
53
+
54
+ Constant("osVersion") {
55
+ +#if os(macOS)
56
+ + ProcessInfo.processInfo.operatingSystemVersion.versionString
57
+ +#else
58
+ UIDevice.current.systemVersion
59
+ +#endif
60
+ }
61
+
62
+ Constant("osBuildId") {
63
+ @@ -51,7 +75,11 @@ public class DeviceModule: Module {
64
+ }
65
+
66
+ Constant("deviceName") {
67
+ +#if os(macOS)
68
+ + SCDynamicStoreCopyComputerName(nil, nil) as String?
69
+ +#else
70
+ UIDevice.current.name
71
+ +#endif
72
+ }
73
+
74
+ Constant("deviceType") {
75
+ @@ -72,12 +100,19 @@ public class DeviceModule: Module {
76
+ }
77
+
78
+ AsyncFunction("isRootedExperimentalAsync") { () -> Bool in
79
+ +#if os(macOS)
80
+ + return false
81
+ +#else
82
+ return UIDevice.current.isJailbroken
83
+ +#endif
84
+ }
85
+ }
86
+ }
87
+
88
+ func getDeviceType() -> Int {
89
+ + #if os(macOS)
90
+ + return DeviceType.desktop.rawValue
91
+ + #else
92
+ // if it's a macOS Catalyst app
93
+ if ProcessInfo.processInfo.isMacCatalystApp {
94
+ return DeviceType.desktop.rawValue
95
+ @@ -100,6 +135,7 @@ func getDeviceType() -> Int {
96
+ default:
97
+ return DeviceType.unknown.rawValue
98
+ }
99
+ + #endif
100
+ }
101
+
102
+ func isDevice() -> Bool {
103
+ @@ -141,6 +177,20 @@ func cpuArchitectures() -> [String]? {
104
+ return [String(cString: archRaw)]
105
+ }
106
+
107
+ +#if os(macOS)
108
+ +func sysctlString(_ name: String) -> String? {
109
+ + var size = 0
110
+ + guard sysctlbyname(name, nil, &size, nil, 0) == 0, size > 0 else { return nil }
111
+ + var buffer = [CChar](repeating: 0, count: size)
112
+ + guard sysctlbyname(name, &buffer, &size, nil, 0) == 0 else { return nil }
113
+ + return String(cString: buffer)
114
+ +}
115
+ +
116
+ +extension OperatingSystemVersion {
117
+ + var versionString: String { "\(majorVersion).\(minorVersion).\(patchVersion)" }
118
+ +}
119
+ +#endif
120
+ +
121
+ enum DeviceType: Int {
122
+ case unknown = 0
123
+ case phone = 1
124
+ diff --git a/ios/ExpoDevice.podspec b/ios/ExpoDevice.podspec
125
+ index 1b0c81f..0283bf0 100644
126
+ --- a/ios/ExpoDevice.podspec
127
+ +++ b/ios/ExpoDevice.podspec
128
+ @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
129
+ s.homepage = package['homepage']
130
+ s.platforms = {
131
+ :ios => '15.1',
132
+ + :osx => '14.0',
133
+ :tvos => '15.1'
134
+ }
135
+ s.swift_version = '5.9'
136
+ diff --git a/ios/UIDevice.swift b/ios/UIDevice.swift
137
+ index 336c648..709c496 100644
138
+ --- a/ios/UIDevice.swift
139
+ +++ b/ios/UIDevice.swift
140
+ @@ -1,3 +1,4 @@
141
+ +#if !os(macOS)
142
+ import UIKit
143
+
144
+ struct ExpoDeviceType {
145
+ @@ -305,3 +306,4 @@ private struct JailbreakHelper {
146
+ ]
147
+ }
148
+ }
149
+ +#endif