diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-10 17:39:12 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-10 17:39:22 +0800 |
| commit | e4fb9966e762852bf17f21c8406501d42fae0b61 (patch) | |
| tree | 658bbdba977ff7846a17ee94b8ed6b676f6ce9dd /ios/Podfile | |
Initial commit: iHealth BLE scanner app with patched SDK v1.5.0
Diffstat (limited to 'ios/Podfile')
| -rw-r--r-- | ios/Podfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..99555b0 --- /dev/null +++ b/ios/Podfile | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | # Resolve react_native_pods.rb with node to allow for hoisting | ||
| 2 | require Pod::Executable.execute_command('node', ['-p', | ||
| 3 | 'require.resolve( | ||
| 4 | "react-native/scripts/react_native_pods.rb", | ||
| 5 | {paths: [process.argv[1]]}, | ||
| 6 | )', __dir__]).strip | ||
| 7 | |||
| 8 | platform :ios, min_ios_version_supported | ||
| 9 | prepare_react_native_project! | ||
| 10 | |||
| 11 | linkage = ENV['USE_FRAMEWORKS'] | ||
| 12 | if linkage != nil | ||
| 13 | Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green | ||
| 14 | use_frameworks! :linkage => linkage.to_sym | ||
| 15 | end | ||
| 16 | |||
| 17 | target 'iHealthScanner' do | ||
| 18 | config = use_native_modules! | ||
| 19 | |||
| 20 | use_react_native!( | ||
| 21 | :path => config[:reactNativePath], | ||
| 22 | # An absolute path to your application root. | ||
| 23 | :app_path => "#{Pod::Config.instance.installation_root}/.." | ||
| 24 | ) | ||
| 25 | |||
| 26 | post_install do |installer| | ||
| 27 | react_native_post_install( | ||
| 28 | installer, | ||
| 29 | config[:reactNativePath], | ||
| 30 | :mac_catalyst_enabled => false, | ||
| 31 | # :ccache_enabled => true | ||
| 32 | ) | ||
| 33 | end | ||
| 34 | end | ||
