@legendapp/spark 0.0.1-next.9 → 0.0.2
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/react-native-enriched-markdown@1.1.1.patch +2000 -3379
- package/skills/spark/UPGRADING.md +106 -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 +11 -2
- 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 +13 -2
- 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 +7 -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 +16 -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/runner-install.js +4 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/session-status.js +7 -3
- 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/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 +4 -4
- 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 +47 -12
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-template-universal",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -17,50 +17,50 @@
|
|
|
17
17
|
"postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"expo": "
|
|
20
|
+
"expo": "55.0.32",
|
|
21
21
|
"expo-desktop": "1.0.6",
|
|
22
22
|
"expo-desktop-prebuild-config": "1.1.3",
|
|
23
23
|
"expo-desktop-config-plugins": "1.3.2",
|
|
24
|
-
"expo-desktop-metro-config": "
|
|
25
|
-
"expo-desktop-template-bare-minimum": "
|
|
26
|
-
"react": "19.
|
|
27
|
-
"react-native": "0.
|
|
28
|
-
"react-native-macos": "0.
|
|
24
|
+
"expo-desktop-metro-config": "55.83.3",
|
|
25
|
+
"expo-desktop-template-bare-minimum": "55.83.10",
|
|
26
|
+
"react": "19.2.0",
|
|
27
|
+
"react-native": "0.83.10",
|
|
28
|
+
"react-native-macos": "0.83.0",
|
|
29
29
|
"@react-native-community/cli": "20.1.3",
|
|
30
30
|
"typescript": "5.9.3",
|
|
31
|
-
"@types/react": "19.
|
|
32
|
-
"react-native-windows": "0.
|
|
33
|
-
"expo-desktop-modules-core": "
|
|
34
|
-
"expo-desktop-stubs": "
|
|
35
|
-
"@expo/ui": "
|
|
36
|
-
"expo-dev-client": "
|
|
37
|
-
"expo-clipboard": "
|
|
38
|
-
"expo-secure-store": "
|
|
39
|
-
"expo-linking": "
|
|
40
|
-
"react-dom": "19.
|
|
31
|
+
"@types/react": "19.2.18",
|
|
32
|
+
"react-native-windows": "0.83.2",
|
|
33
|
+
"expo-desktop-modules-core": "55.0.2",
|
|
34
|
+
"expo-desktop-stubs": "55.0.2",
|
|
35
|
+
"@expo/ui": "55.0.17",
|
|
36
|
+
"expo-dev-client": "55.0.41",
|
|
37
|
+
"expo-clipboard": "55.0.17",
|
|
38
|
+
"expo-secure-store": "55.0.18",
|
|
39
|
+
"expo-linking": "55.0.17",
|
|
40
|
+
"react-dom": "19.2.0",
|
|
41
41
|
"react-native-web": "0.21.0",
|
|
42
42
|
"uniwind": "1.6.3",
|
|
43
43
|
"tailwindcss": "4.2.4",
|
|
44
|
-
"@legendapp/spark": "0.0.
|
|
44
|
+
"@legendapp/spark": "0.0.2"
|
|
45
45
|
},
|
|
46
46
|
"overrides": {
|
|
47
|
-
"expo": "
|
|
48
|
-
"@expo/cli": "
|
|
47
|
+
"expo": "55.0.32",
|
|
48
|
+
"@expo/cli": "55.0.37",
|
|
49
49
|
"react-native-nitro-modules": "0.37.0",
|
|
50
50
|
"react-native-webview": "16.0.0",
|
|
51
51
|
"@op-engineering/op-sqlite": "18.2.1",
|
|
52
|
-
"expo-asset": "
|
|
53
|
-
"expo-constants": "
|
|
54
|
-
"expo-file-system": "
|
|
55
|
-
"expo-font": "
|
|
56
|
-
"expo-keep-awake": "
|
|
57
|
-
"expo-modules-core": "
|
|
58
|
-
"expo-desktop-modules-core": "
|
|
59
|
-
"expo-desktop-stubs": "
|
|
60
|
-
"react": "19.
|
|
61
|
-
"react-native": "0.
|
|
62
|
-
"react-native-macos": "0.
|
|
63
|
-
"react-native-windows": "0.
|
|
52
|
+
"expo-asset": "55.0.20",
|
|
53
|
+
"expo-constants": "55.0.17",
|
|
54
|
+
"expo-file-system": "55.0.26",
|
|
55
|
+
"expo-font": "55.0.8",
|
|
56
|
+
"expo-keep-awake": "55.0.8",
|
|
57
|
+
"expo-modules-core": "55.0.27",
|
|
58
|
+
"expo-desktop-modules-core": "55.0.2",
|
|
59
|
+
"expo-desktop-stubs": "55.0.2",
|
|
60
|
+
"react": "19.2.0",
|
|
61
|
+
"react-native": "0.83.10",
|
|
62
|
+
"react-native-macos": "0.83.0",
|
|
63
|
+
"react-native-windows": "0.83.2",
|
|
64
64
|
"postcss": "8.5.31",
|
|
65
65
|
"dompurify": "3.4.17",
|
|
66
66
|
"@tiptap/core": "3.32.0",
|
|
@@ -85,7 +85,9 @@
|
|
|
85
85
|
"@tiptap/extension-bubble-menu": "3.32.0",
|
|
86
86
|
"@tiptap/extension-floating-menu": "3.32.0",
|
|
87
87
|
"fast-xml-parser": "5.11.2",
|
|
88
|
-
"react-dom": "19.
|
|
88
|
+
"react-dom": "19.2.0",
|
|
89
|
+
"react-native-enriched-markdown": "1.1.1",
|
|
90
|
+
"react-native-enriched-html": "1.1.1"
|
|
89
91
|
},
|
|
90
92
|
"expo": {
|
|
91
93
|
"install": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-template-windows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -13,41 +13,41 @@
|
|
|
13
13
|
"postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"expo": "
|
|
16
|
+
"expo": "55.0.32",
|
|
17
17
|
"expo-desktop": "1.0.6",
|
|
18
18
|
"expo-desktop-prebuild-config": "1.1.3",
|
|
19
19
|
"expo-desktop-config-plugins": "1.3.2",
|
|
20
|
-
"expo-desktop-metro-config": "
|
|
21
|
-
"expo-desktop-template-bare-minimum": "
|
|
22
|
-
"react": "19.
|
|
23
|
-
"react-dom": "19.
|
|
24
|
-
"react-native": "0.
|
|
20
|
+
"expo-desktop-metro-config": "55.83.3",
|
|
21
|
+
"expo-desktop-template-bare-minimum": "55.83.10",
|
|
22
|
+
"react": "19.2.0",
|
|
23
|
+
"react-dom": "19.2.0",
|
|
24
|
+
"react-native": "0.83.10",
|
|
25
25
|
"@react-native-community/cli": "20.1.3",
|
|
26
26
|
"typescript": "5.9.3",
|
|
27
|
-
"@types/react": "19.
|
|
28
|
-
"react-native-windows": "0.
|
|
29
|
-
"expo-desktop-modules-core": "
|
|
30
|
-
"expo-desktop-stubs": "
|
|
31
|
-
"@legendapp/spark": "0.0.
|
|
27
|
+
"@types/react": "19.2.18",
|
|
28
|
+
"react-native-windows": "0.83.2",
|
|
29
|
+
"expo-desktop-modules-core": "55.0.2",
|
|
30
|
+
"expo-desktop-stubs": "55.0.2",
|
|
31
|
+
"@legendapp/spark": "0.0.2"
|
|
32
32
|
},
|
|
33
33
|
"overrides": {
|
|
34
|
-
"expo": "
|
|
35
|
-
"@expo/cli": "
|
|
34
|
+
"expo": "55.0.32",
|
|
35
|
+
"@expo/cli": "55.0.37",
|
|
36
36
|
"react-native-nitro-modules": "0.37.0",
|
|
37
37
|
"react-native-webview": "16.0.0",
|
|
38
38
|
"@op-engineering/op-sqlite": "18.2.1",
|
|
39
|
-
"expo-asset": "
|
|
40
|
-
"expo-constants": "
|
|
41
|
-
"expo-file-system": "
|
|
42
|
-
"expo-font": "
|
|
43
|
-
"expo-keep-awake": "
|
|
44
|
-
"expo-modules-core": "
|
|
45
|
-
"expo-desktop-modules-core": "
|
|
46
|
-
"expo-desktop-stubs": "
|
|
47
|
-
"react": "19.
|
|
48
|
-
"react-native": "0.
|
|
49
|
-
"react-native-macos": "0.
|
|
50
|
-
"react-native-windows": "0.
|
|
39
|
+
"expo-asset": "55.0.20",
|
|
40
|
+
"expo-constants": "55.0.17",
|
|
41
|
+
"expo-file-system": "55.0.26",
|
|
42
|
+
"expo-font": "55.0.8",
|
|
43
|
+
"expo-keep-awake": "55.0.8",
|
|
44
|
+
"expo-modules-core": "55.0.27",
|
|
45
|
+
"expo-desktop-modules-core": "55.0.2",
|
|
46
|
+
"expo-desktop-stubs": "55.0.2",
|
|
47
|
+
"react": "19.2.0",
|
|
48
|
+
"react-native": "0.83.10",
|
|
49
|
+
"react-native-macos": "0.83.0",
|
|
50
|
+
"react-native-windows": "0.83.2",
|
|
51
51
|
"postcss": "8.5.31",
|
|
52
52
|
"dompurify": "3.4.17",
|
|
53
53
|
"@tiptap/core": "3.32.0",
|
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
"@tiptap/extension-bubble-menu": "3.32.0",
|
|
73
73
|
"@tiptap/extension-floating-menu": "3.32.0",
|
|
74
74
|
"fast-xml-parser": "5.11.2",
|
|
75
|
-
"react-dom": "19.
|
|
75
|
+
"react-dom": "19.2.0",
|
|
76
|
+
"react-native-enriched-markdown": "1.1.1",
|
|
77
|
+
"react-native-enriched-html": "1.1.1"
|
|
76
78
|
},
|
|
77
79
|
"expo": {
|
|
78
80
|
"install": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-clipboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"react-native": "src/index",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"windows"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^19.
|
|
16
|
-
"react-native": "0.
|
|
17
|
-
"expo-clipboard": "~
|
|
15
|
+
"react": "^19.2.0",
|
|
16
|
+
"react-native": "0.83.10",
|
|
17
|
+
"expo-clipboard": "~55.0.17"
|
|
18
18
|
},
|
|
19
19
|
"codegenConfig": {
|
|
20
20
|
"name": "RNDesktopClipboardSpec",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
44
|
+
"@legendapp/spark-desktop-app": "0.0.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"expo-clipboard": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./desktop";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-codex",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"react": "^19.
|
|
9
|
-
"react-native": "0.
|
|
8
|
+
"react": "^19.2.0",
|
|
9
|
+
"react-native": "0.83.10"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
13
|
+
"@legendapp/spark-desktop-app": "0.0.2",
|
|
14
14
|
"react-native-nitro-modules": "0.37.0"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-commands",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"src"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@legendapp/spark-ui": "0.0.
|
|
12
|
-
"@legendapp/spark-desktop-shortcuts": "0.0.
|
|
13
|
-
"@legendapp/spark-settings": "0.0.
|
|
11
|
+
"@legendapp/spark-ui": "0.0.2",
|
|
12
|
+
"@legendapp/spark-desktop-shortcuts": "0.0.2",
|
|
13
|
+
"@legendapp/spark-settings": "0.0.2",
|
|
14
14
|
"@legendapp/state": "^3.0.0-beta.42",
|
|
15
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
15
|
+
"@legendapp/spark-desktop-app": "0.0.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"react": "^19.
|
|
19
|
-
"react-native": "0.
|
|
18
|
+
"react": "^19.2.0",
|
|
19
|
+
"react-native": "0.83.10"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-context-menu",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"react-native.config.js"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^19.
|
|
16
|
-
"react-native": "0.
|
|
15
|
+
"react": "^19.2.0",
|
|
16
|
+
"react-native": "0.83.10"
|
|
17
17
|
},
|
|
18
18
|
"codegenConfig": {
|
|
19
19
|
"name": "RNContextMenuSpec",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
44
|
+
"@legendapp/spark-desktop-app": "0.0.2"
|
|
45
45
|
},
|
|
46
46
|
"private": true
|
|
47
47
|
}
|
|
@@ -34,7 +34,12 @@ NSDictionary *SparkContext(void) {
|
|
|
34
34
|
NSString *runtimePath = [bundle pathForResource:@"spark-runtime" ofType:@"json"];
|
|
35
35
|
NSData *data = runtimePath ? [NSData dataWithContentsOfFile:runtimePath] : nil;
|
|
36
36
|
id rawRuntime = data ? [NSJSONSerialization JSONObjectWithData:data options:0 error:nil] : nil;
|
|
37
|
-
|
|
37
|
+
#if DEBUG
|
|
38
|
+
NSString *defaultMode = @"dev";
|
|
39
|
+
#else
|
|
40
|
+
NSString *defaultMode = @"release";
|
|
41
|
+
#endif
|
|
42
|
+
NSDictionary *runtime = [rawRuntime isKindOfClass:NSDictionary.class] ? rawRuntime : @{ @"mode": defaultMode, @"modules": @{} };
|
|
38
43
|
NSString *project = [bundle objectForInfoDictionaryKey:@"SparkProjectIdentifier"] ?: bundle.bundleIdentifier;
|
|
39
44
|
NSString *version = [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"] ?: @"0.0.0";
|
|
40
45
|
NSString *name = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"] ?: [bundle objectForInfoDictionaryKey:@"CFBundleName"];
|
|
@@ -48,7 +53,7 @@ NSDictionary *SparkContext(void) {
|
|
|
48
53
|
#endif
|
|
49
54
|
context = @{ @"projectId": project ?: @"desktop.app", @"name": name ?: @"Desktop App",
|
|
50
55
|
@"version": version,
|
|
51
|
-
@"runtime": runtime
|
|
56
|
+
@"runtime": runtime, @"launchArguments": NSProcessInfo.processInfo.arguments };
|
|
52
57
|
});
|
|
53
58
|
return context;
|
|
54
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-desktop-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"react-native": "src/index",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"cpp"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^19.
|
|
16
|
-
"react-native": "0.
|
|
15
|
+
"react": "^19.2.0",
|
|
16
|
+
"react-native": "0.83.10"
|
|
17
17
|
},
|
|
18
18
|
"codegenConfig": {
|
|
19
19
|
"name": "RNDesktopAppSpec",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// RN macOS 0.
|
|
1
|
+
// RN macOS 0.83.0 Fabric applies accessibilityState only on iOS: RCTViewComponentView's accessibilityState block is
|
|
2
2
|
// inside #if !TARGET_OS_OSX, so a disabled Pressable with an accessibilityRole reports itself enabled to VoiceOver and a
|
|
3
3
|
// selected one unselected. A view whose accessibility traits never changed (no accessibilityRole) reported
|
|
4
4
|
// isAccessibilityEnabled NO, as a plain NSView does, enabled or not. The patch answers both from the view's current
|
|
@@ -38,7 +38,7 @@ function patchAccessibilityStateSource(source) {
|
|
|
38
38
|
function installAccessibilityStatePatch(root) {
|
|
39
39
|
const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
|
|
40
40
|
const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
|
|
41
|
-
if (version !== "0.
|
|
41
|
+
if (version !== "0.83.0") throw new Error(`spark's accessibility state patch requires react-native-macos@0.83.0; found ${version}.`);
|
|
42
42
|
const target = path.join(path.dirname(manifest), file);
|
|
43
43
|
const source = fs.readFileSync(target, "utf8"), patched = patchAccessibilityStateSource(source);
|
|
44
44
|
if (source !== patched) {
|
|
@@ -8,6 +8,8 @@ const {
|
|
|
8
8
|
withEntitlementsPlist,
|
|
9
9
|
withXcodeProject,
|
|
10
10
|
} = require("expo-desktop-config-plugins");
|
|
11
|
+
const { withMod } = require("@expo/config-plugins");
|
|
12
|
+
const { installHostFiles, installHostProject } = require("./macos-host.cjs");
|
|
11
13
|
const { identity } = require("./identity.cjs");
|
|
12
14
|
const { resolveEntitlements } = require("./entitlements.cjs");
|
|
13
15
|
const { version: sparkVersion } = require("@legendapp/spark/package.json");
|
|
@@ -33,6 +35,15 @@ module.exports = function withSparkDesktop(config) {
|
|
|
33
35
|
mod.modResults = resolveEntitlements({ macos: { entitlements: declaredEntitlements } }, packages);
|
|
34
36
|
return mod;
|
|
35
37
|
});
|
|
38
|
+
// Expo Desktop 55's template hosts React Native in a SwiftUI App; Spark keeps its AppKit host.
|
|
39
|
+
config = withMod(config, { platform: "macos", mod: "dangerous", action: (mod) => {
|
|
40
|
+
installHostFiles(mod.modRequest.platformProjectRoot);
|
|
41
|
+
return mod;
|
|
42
|
+
} });
|
|
43
|
+
config = withXcodeProject(config, (mod) => {
|
|
44
|
+
installHostProject(mod.modResults);
|
|
45
|
+
return mod;
|
|
46
|
+
});
|
|
36
47
|
config = withAppDelegate(config, (mod) => {
|
|
37
48
|
// Own this adapter; application customizations belong in configuration/plugins.
|
|
38
49
|
mod.modResults.contents = fs.readFileSync(
|
|
@@ -56,6 +67,7 @@ module.exports = function withSparkDesktop(config) {
|
|
|
56
67
|
if (!(key in generated)) delete mod.modResults[key];
|
|
57
68
|
Object.assign(mod.modResults, generated);
|
|
58
69
|
mod.modResults.SparkFrameworkVersion = sparkVersion;
|
|
70
|
+
mod.modResults.NSMainStoryboardFile = "Main";
|
|
59
71
|
mod.modResults.NSAppTransportSecurity = { NSAllowsLocalNetworking: true };
|
|
60
72
|
return mod;
|
|
61
73
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Expo
|
|
1
|
+
// Expo's file scanner ignores Bun file: dependencies' symlinked podspecs.
|
|
2
2
|
const fs = require("node:fs");
|
|
3
3
|
const path = require("node:path");
|
|
4
4
|
const before = ` return (await fs_1.default.promises.readdir(targetPath, { withFileTypes: true }))
|
|
@@ -22,7 +22,7 @@ function patchAutolinkingSource(source) {
|
|
|
22
22
|
function installAutolinkingPatch(root) {
|
|
23
23
|
const manifest = require.resolve("expo-modules-autolinking/package.json", { paths: [root] });
|
|
24
24
|
const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
|
|
25
|
-
if (version !== "
|
|
25
|
+
if (version !== "55.0.28") throw new Error(`spark's autolinking patch requires expo-modules-autolinking@55.0.28; found ${version}.`);
|
|
26
26
|
const file = path.join(path.dirname(manifest), "build/utils.js");
|
|
27
27
|
const source = fs.readFileSync(file, "utf8");
|
|
28
28
|
const patched = patchAutolinkingSource(source);
|
|
@@ -32,8 +32,8 @@ function installAutolinkingPatch(root) {
|
|
|
32
32
|
fs.renameSync(temporary, file); // Do not modify package-cache hardlinks.
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
//
|
|
36
|
-
// react-native.config.js
|
|
35
|
+
// Packages such as Codex declare iOS for the desktop autolinker in their own
|
|
36
|
+
// react-native.config.js, so pass the native selection's exclusions to its CLI.
|
|
37
37
|
function excludeNativeModules(podfile, excluded) {
|
|
38
38
|
const call = /use_native_modules!\(config_command(?: \+ \[[^\]]*\])?\)/;
|
|
39
39
|
if (!call.test(podfile)) throw new Error("The macOS Podfile no longer calls use_native_modules!(config_command); review spark's native selection.");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExpoConfig } from "
|
|
1
|
+
import type { ExpoConfig } from "expo/config";
|
|
2
2
|
import type { WindowConfiguration } from "@legendapp/spark-window-options";
|
|
3
3
|
export type { WindowConfiguration } from "@legendapp/spark-window-options";
|
|
4
4
|
export type SparkPlatform = "macos" | "windows" | "ios" | "android" | "web";
|
|
@@ -112,7 +112,7 @@ function patchSurface(source) {
|
|
|
112
112
|
function installSurfaceLifecyclePatch(root) {
|
|
113
113
|
const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
|
|
114
114
|
const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
|
|
115
|
-
if (version !== "0.
|
|
115
|
+
if (version !== "0.83.0") throw new Error(`spark's Fabric lifecycle patch requires react-native-macos@0.83.0; found ${version}.`);
|
|
116
116
|
const file = path.join(path.dirname(manifest), "React/Fabric/Surface/RCTFabricSurface.mm");
|
|
117
117
|
const before = fs.readFileSync(file, "utf8"), after = patchSurface(before);
|
|
118
118
|
if (before !== after) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// RN macOS 0.
|
|
1
|
+
// RN macOS 0.83.0 legacy views embedded in Fabric can have no React tag.
|
|
2
2
|
const fs = require("node:fs");
|
|
3
3
|
const path = require("node:path");
|
|
4
4
|
const replacements = {
|
|
@@ -28,7 +28,7 @@ function patchKeyboardSource(file, source) {
|
|
|
28
28
|
function installKeyboardEventsPatch(root) {
|
|
29
29
|
const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
|
|
30
30
|
const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
|
|
31
|
-
if (version !== "0.
|
|
31
|
+
if (version !== "0.83.0") throw new Error(`spark's keyboard patch requires react-native-macos@0.83.0; found ${version}.`);
|
|
32
32
|
// Validate all targets before changing either file.
|
|
33
33
|
const changes = Object.keys(replacements).map(relative => {
|
|
34
34
|
const file = path.join(path.dirname(manifest), relative);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Expo Desktop 55's template hosts React Native in a SwiftUI App. Spark keeps its AppKit
|
|
2
|
+
// host: AppDelegate.mm replaces the Swift delegate, with main.m and the menu storyboard.
|
|
3
|
+
const fs = require("node:fs");
|
|
4
|
+
const path = require("node:path");
|
|
5
|
+
const { IOSConfig } = require("@expo/config-plugins");
|
|
6
|
+
|
|
7
|
+
function installHostFiles(platformRoot) {
|
|
8
|
+
for (const swift of fs.readdirSync(platformRoot).map((name) => path.join(platformRoot, name, "AppDelegate.swift")).filter((file) => fs.existsSync(file))) {
|
|
9
|
+
for (const name of ["AppDelegate.h", "main.m", "Main.storyboard"])
|
|
10
|
+
fs.copyFileSync(require.resolve(`@legendapp/spark-desktop-host/macos/${name}`), path.join(path.dirname(swift), name));
|
|
11
|
+
// Upstream AppDelegate mods expect an Objective-C delegate; Spark's withAppDelegate owns its final contents.
|
|
12
|
+
fs.copyFileSync(require.resolve("@legendapp/spark-desktop-host/AppDelegate.mm"), path.join(path.dirname(swift), "AppDelegate.mm"));
|
|
13
|
+
fs.rmSync(swift);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function installHostProject(project) {
|
|
18
|
+
const objects = project.hash.project.objects, references = project.pbxFileReferenceSection(), builds = project.pbxBuildFileSection();
|
|
19
|
+
const key = Object.keys(references).find((id) => references[id].path === "AppDelegate.swift");
|
|
20
|
+
if (!key) return project;
|
|
21
|
+
Object.assign(references[key], { path: "AppDelegate.mm", lastKnownFileType: "sourcecode.cpp.objcpp" });
|
|
22
|
+
references[`${key}_comment`] = "AppDelegate.mm";
|
|
23
|
+
const build = Object.keys(builds).find((id) => builds[id].fileRef === key);
|
|
24
|
+
Object.assign(builds[build], { fileRef_comment: "AppDelegate.mm" });
|
|
25
|
+
builds[`${build}_comment`] = "AppDelegate.mm in Sources";
|
|
26
|
+
const group = Object.values(objects.PBXGroup).find((entry) => entry.children?.some((child) => child.value === key));
|
|
27
|
+
group.children.find((child) => child.value === key).comment = "AppDelegate.mm";
|
|
28
|
+
for (const phase of Object.values(objects.PBXSourcesBuildPhase)) for (const file of phase.files ?? []) if (file.value === build) file.comment = "AppDelegate.mm in Sources";
|
|
29
|
+
// The template also has an iOS target; add the host to the target that compiled the Swift delegate.
|
|
30
|
+
const targetUuid = Object.keys(objects.PBXNativeTarget).find((id) => objects.PBXNativeTarget[id].buildPhases?.some((phase) =>
|
|
31
|
+
objects.PBXSourcesBuildPhase[phase.value]?.files?.some((file) => file.value === build)));
|
|
32
|
+
IOSConfig.XcodeUtils.addBuildSourceFileToGroup({ filepath: "main.m", groupName: group.path.replaceAll('"', ""), project, targetUuid });
|
|
33
|
+
IOSConfig.XcodeUtils.addResourceFileToGroup({ filepath: "Main.storyboard", groupName: group.path.replaceAll('"', ""), project, isBuildFile: true, targetUuid });
|
|
34
|
+
const storyboard = Object.keys(references).find((id) => references[id].path === '"Main.storyboard"');
|
|
35
|
+
references[storyboard].lastKnownFileType = "file.storyboard";
|
|
36
|
+
return project;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = { installHostFiles, installHostProject };
|
|
@@ -3,23 +3,33 @@ const fs = require("node:fs");
|
|
|
3
3
|
const path = require("node:path");
|
|
4
4
|
const { createRequire } = require("node:module");
|
|
5
5
|
|
|
6
|
+
const optionalBackends = ["react-native-enriched-markdown", "react-native-enriched-html", "react-native-webview", "@op-engineering/op-sqlite"];
|
|
6
7
|
const cameraPackages = ["react-native-nitro-image", "react-native-vision-camera"];
|
|
7
8
|
|
|
8
|
-
function
|
|
9
|
+
function readManifest(file) {
|
|
10
|
+
return JSON.parse(fs.readFileSync(file, "utf8"));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function prepareNativePatches(root, installed = []) {
|
|
9
14
|
const manifestFile = path.join(root, "package.json");
|
|
10
15
|
if (!fs.existsSync(manifestFile)) return {};
|
|
11
|
-
const app =
|
|
16
|
+
const app = readManifest(manifestFile);
|
|
12
17
|
if (app.name !== "@legendapp/spark" && !app.dependencies?.["@legendapp/spark"] && !app.devDependencies?.["@legendapp/spark"]) return {};
|
|
13
18
|
const appRequire = createRequire(manifestFile);
|
|
14
19
|
let sparkFile;
|
|
15
20
|
try { sparkFile = appRequire.resolve("@legendapp/spark/package.json"); }
|
|
16
21
|
catch (error) { if (error.code === "MODULE_NOT_FOUND") return {}; throw error; }
|
|
17
|
-
const spark =
|
|
22
|
+
const spark = readManifest(sparkFile);
|
|
18
23
|
const directory = path.dirname(sparkFile);
|
|
19
24
|
const patchesRoot = spark.spark?.bundledModuleRoot
|
|
20
25
|
? path.join(directory, "patches") : path.resolve(__dirname, "../../patches");
|
|
26
|
+
const dependencies = { ...spark.dependencies, ...app.dependencies, ...app.devDependencies };
|
|
27
|
+
for (const name of [...cameraPackages, ...optionalBackends]) {
|
|
28
|
+
if (app.optionalDependencies?.[name] || installed.some(pkg => pkg.name === name)) dependencies[name] = true;
|
|
29
|
+
}
|
|
30
|
+
const hasCamera = cameraPackages.some(name => dependencies[name]);
|
|
21
31
|
const pins = {};
|
|
22
|
-
if (
|
|
32
|
+
if (hasCamera) {
|
|
23
33
|
const cameraPins = JSON.parse(fs.readFileSync(path.join(patchesRoot, "camera/upstream.json"), "utf8"));
|
|
24
34
|
for (const name of ["react-native-nitro-modules", ...cameraPackages]) {
|
|
25
35
|
pins[name] = { ...cameraPins[name], patch: `camera/${name}.patch`,
|
|
@@ -28,30 +38,36 @@ function prepareNativePatches(root) {
|
|
|
28
38
|
}
|
|
29
39
|
const integrations = path.join(patchesRoot, "dependencies.json");
|
|
30
40
|
if (fs.existsSync(integrations)) Object.assign(pins, JSON.parse(fs.readFileSync(integrations, "utf8")));
|
|
31
|
-
const active = Object.keys(pins).filter(name =>
|
|
41
|
+
const active = Object.keys(pins).filter(name => dependencies[name] ||
|
|
42
|
+
(hasCamera && name === "react-native-nitro-modules") ||
|
|
43
|
+
(dependencies["react-native-vision-camera"] && name === "react-native-nitro-image"));
|
|
32
44
|
if (!active.length) return {};
|
|
33
45
|
const { parsePatch, applyPatch, reversePatch } = require("diff");
|
|
34
|
-
const queue = [appRequire, createRequire(sparkFile)];
|
|
46
|
+
const queue = [appRequire, createRequire(sparkFile)].map(req => ({ req, optionalOnly: false }));
|
|
47
|
+
if (hasCamera || optionalBackends.some(name => dependencies[name])) queue.push(...installed.map(pkg => ({ req: createRequire(path.join(pkg.root, "package.json")), optionalOnly: true })));
|
|
35
48
|
const visited = new Set();
|
|
36
49
|
const packages = {};
|
|
37
|
-
for (const req of queue) {
|
|
50
|
+
for (const { req, optionalOnly } of queue) {
|
|
38
51
|
for (const name of active) {
|
|
52
|
+
if (optionalOnly && name !== "react-native-nitro-modules" && !cameraPackages.includes(name) && !optionalBackends.includes(name)) continue;
|
|
39
53
|
let file;
|
|
40
54
|
try { file = req.resolve(`${name}/package.json`); }
|
|
41
55
|
catch (error) {
|
|
42
56
|
if (error.code !== "MODULE_NOT_FOUND") throw error;
|
|
43
|
-
|
|
44
|
-
throw new Error(`Spark needs ${name}@${pins[name].version}. Finish installing dependencies before native preparation.`);
|
|
57
|
+
continue;
|
|
45
58
|
}
|
|
46
59
|
if (!fs.existsSync(file)) throw new Error(`Spark needs ${name}@${pins[name].version}. Finish installing dependencies before native preparation.`);
|
|
47
60
|
const packageRoot = fs.realpathSync(path.dirname(file));
|
|
48
61
|
if (visited.has(packageRoot)) continue;
|
|
49
62
|
visited.add(packageRoot);
|
|
50
63
|
packages[name] = { root: packageRoot };
|
|
51
|
-
queue.push(createRequire(file));
|
|
64
|
+
queue.push({ req: createRequire(file), optionalOnly });
|
|
52
65
|
const manifest = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
53
66
|
const pin = pins[name];
|
|
54
|
-
if (manifest.version !== pin.version)
|
|
67
|
+
if (manifest.version !== pin.version) {
|
|
68
|
+
const owner = readManifest(req.resolve("./package.json"));
|
|
69
|
+
throw new Error(`Spark needs ${name}@${pin.version}; found ${manifest.version} at ${packageRoot}, required by ${owner.name ?? root}. Add an override/resolution for the pinned version.`);
|
|
70
|
+
}
|
|
55
71
|
const bytes = fs.readFileSync(path.join(patchesRoot, pin.patch));
|
|
56
72
|
const writes = [];
|
|
57
73
|
for (const patch of parsePatch(bytes.toString("utf8"))) {
|
|
@@ -93,6 +109,8 @@ function prepareNativePatches(root) {
|
|
|
93
109
|
}
|
|
94
110
|
patched.spark.dependencyPatch = { schema: 1, version: pin.version,
|
|
95
111
|
patchHash: createHash("sha256").update(bytes).digest("hex"), upstreamIntegrity: pin.integrity };
|
|
112
|
+
const pkg = installed.find(pkg => pkg.root === packageRoot);
|
|
113
|
+
if (pkg) pkg.json = patched;
|
|
96
114
|
const serialized = JSON.stringify(patched, null, 2) + "\n";
|
|
97
115
|
if (fs.readFileSync(file, "utf8") !== serialized) {
|
|
98
116
|
const temporary = `${file}.spark-${process.pid}.tmp`;
|
|
@@ -100,7 +118,24 @@ function prepareNativePatches(root) {
|
|
|
100
118
|
}
|
|
101
119
|
}
|
|
102
120
|
}
|
|
121
|
+
for (const name of active) {
|
|
122
|
+
if (!packages[name]) throw new Error(`Spark needs ${name}@${pins[name].version}. Finish installing dependencies before native preparation.`);
|
|
123
|
+
}
|
|
103
124
|
return packages;
|
|
104
125
|
}
|
|
105
126
|
|
|
106
|
-
|
|
127
|
+
// RN macOS 0.83 declares UIApplication itself, so Expo's guarded duplicate breaks the build.
|
|
128
|
+
// The 55 template's Podfile removes it during pod install, after Spark fingerprints
|
|
129
|
+
// expo-modules-core; remove it first so the native fingerprint stays stable.
|
|
130
|
+
const applicationAlias = "#ifndef UIApplication\n@compatibility_alias UIApplication NSApplication;\n#endif";
|
|
131
|
+
function removeExpoApplicationAlias(rn, expo) {
|
|
132
|
+
const file = path.join(expo, "ios/Platform/Platform.h"), compat = path.join(rn, "ReactApple/Libraries/RCTUIKit/RCTUIKitCompat.h");
|
|
133
|
+
if (!fs.existsSync(file) || !fs.existsSync(compat) || !fs.readFileSync(compat, "utf8").includes("@compatibility_alias UIApplication NSApplication;")) return;
|
|
134
|
+
const source = fs.readFileSync(file, "utf8");
|
|
135
|
+
if (!source.includes(applicationAlias)) return;
|
|
136
|
+
const temporary = `${file}.spark-${process.pid}.tmp`;
|
|
137
|
+
fs.writeFileSync(temporary, source.replace(applicationAlias, ""));
|
|
138
|
+
fs.renameSync(temporary, file); // Preserve package-manager cache hardlinks.
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
module.exports = { prepareNativePatches, removeExpoApplicationAlias };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export function prepareNativePatches(root: string): Record<string, { root: string }>;
|
|
1
|
+
export function prepareNativePatches(root: string, installed?: { name: string; root: string; json: any }[]): Record<string, { root: string }>;
|
|
2
|
+
export function removeExpoApplicationAlias(reactNativeMacOSRoot: string, expoModulesCoreRoot: string): void;
|