xref: /MusicFree/ios/Podfile (revision d1a36a67ac3d03c61d8bafd8ac2bc121ea4f6f3e)
1require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2# Resolve react_native_pods.rb with node to allow for hoisting
3require Pod::Executable.execute_command('node', ['-p',
4  'require.resolve(
5    "react-native/scripts/react_native_pods.rb",
6    {paths: [process.argv[1]]},
7  )', __dir__]).strip
8
9platform :ios, min_ios_version_supported
10prepare_react_native_project!
11
12linkage = ENV['USE_FRAMEWORKS']
13if linkage != nil
14  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
15  use_frameworks! :linkage => linkage.to_sym
16end
17
18target 'MusicFree' do
19  use_expo_modules!
20  post_integrate do |installer|
21    begin
22      expo_patch_react_imports!(installer)
23    rescue => e
24      Pod::UI.warn e
25    end
26  end
27  config = use_native_modules!
28
29  use_react_native!(
30    :path => config[:reactNativePath],
31    # An absolute path to your application root.
32    :app_path => "#{Pod::Config.instance.installation_root}/.."
33  )
34
35  target 'MusicFreeTests' do
36    inherit! :complete
37    # Pods for testing
38  end
39
40  post_install do |installer|
41    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
42    react_native_post_install(
43      installer,
44      config[:reactNativePath],
45      :mac_catalyst_enabled => false,
46      # :ccache_enabled => true
47    )
48  end
49end
50