bundo-appgen 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/macos/Podfile +18 -2
package/package.json
CHANGED
package/template/macos/Podfile
CHANGED
|
@@ -5,18 +5,34 @@ require Pod::Executable.execute_command('node', ['-p',
|
|
|
5
5
|
{paths: [process.argv[1]]},
|
|
6
6
|
)', __dir__]).strip
|
|
7
7
|
|
|
8
|
+
require 'pathname'
|
|
9
|
+
|
|
10
|
+
# Find the real "react-native-macos" path.
|
|
11
|
+
react_native_macos_path = Pathname.new(
|
|
12
|
+
Pod::Executable.execute_command(
|
|
13
|
+
'node',
|
|
14
|
+
[
|
|
15
|
+
'-p',
|
|
16
|
+
'require.resolve("react-native-macos/package.json")',
|
|
17
|
+
],
|
|
18
|
+
).strip.gsub('/package.json', '')
|
|
19
|
+
).relative_path_from(__dir__).to_path
|
|
20
|
+
|
|
8
21
|
prepare_react_native_project!
|
|
9
22
|
|
|
10
23
|
target 'HelloWorld' do
|
|
11
24
|
platform :macos, '14.0'
|
|
12
25
|
|
|
26
|
+
# Do not use `config[:reactNativePath]` from here because,
|
|
27
|
+
# the `use_native_modules` def is still trying to find the "react-native" instead of "react-native-macos" path.
|
|
28
|
+
# We should fix this in "react-native-macos/scripts" Ruby script files.
|
|
13
29
|
config = use_native_modules!
|
|
14
30
|
|
|
15
31
|
# Flags change depending on the env values.
|
|
16
32
|
flags = get_default_flags()
|
|
17
33
|
|
|
18
34
|
use_react_native!(
|
|
19
|
-
:path =>
|
|
35
|
+
:path => react_native_macos_path,
|
|
20
36
|
:fabric_enabled => true,
|
|
21
37
|
# An absolute path to your application root.
|
|
22
38
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
@@ -25,7 +41,7 @@ target 'HelloWorld' do
|
|
|
25
41
|
post_install do |installer|
|
|
26
42
|
react_native_post_install(
|
|
27
43
|
installer,
|
|
28
|
-
|
|
44
|
+
react_native_macos_path,
|
|
29
45
|
:mac_catalyst_enabled => false,
|
|
30
46
|
)
|
|
31
47
|
end
|