test_bro
1# Uncomment this line to define a global platform for your project
2# platform :ios, '12.0'
3
4# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6
7project 'Runner', {
8'Debug' => :debug,
9'Profile' => :release,
10'Release' => :release,
11}
12
13def flutter_root
14generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15unless File.exist?(generated_xcode_build_settings_path)
16raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17end
18
19File.foreach(generated_xcode_build_settings_path) do |line|
20matches = line.match(/FLUTTER_ROOT\=(.*)/)
21return matches[1].strip if matches
22end
23raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24end
25
26require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27
28flutter_ios_podfile_setup
29
30target 'Runner' do
31use_frameworks!
32use_modular_headers!
33
34flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35target 'RunnerTests' do
36inherit! :search_paths
37end
38end
39
40post_install do |installer|
41installer.pods_project.targets.each do |target|
42flutter_additional_ios_build_settings(target)
43end
44end
45