askrobots / network-computer-flutter
Public
One Flutter client for network-computer: drive a remote Linux/Mac desktop from Android, iPhone, iPad, or desktop over WebRTC.
Dan Quellhorst
No colour (compare) in ⋯: the desk's picture in grey on this device
c74471a
1 month, 3 weeks ago
History
Podfile · 1.4 KB · 43 lines
| 1 | # Uncomment this line to define a global platform for your project |
| 2 | # platform :ios, '13.0' |
| 3 | |
| 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. |
| 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' |
| 6 | |
| 7 | project 'Runner', { |
| 8 | 'Debug' => :debug, |
| 9 | 'Profile' => :release, |
| 10 | 'Release' => :release, |
| 11 | } |
| 12 | |
| 13 | def flutter_root |
| 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) |
| 15 | unless File.exist?(generated_xcode_build_settings_path) |
| 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" |
| 17 | end |
| 18 | |
| 19 | File.foreach(generated_xcode_build_settings_path) do |line| |
| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) |
| 21 | return matches[1].strip if matches |
| 22 | end |
| 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" |
| 24 | end |
| 25 | |
| 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) |
| 27 | |
| 28 | flutter_ios_podfile_setup |
| 29 | |
| 30 | target 'Runner' do |
| 31 | use_frameworks! |
| 32 | |
| 33 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) |
| 34 | target 'RunnerTests' do |
| 35 | inherit! :search_paths |
| 36 | end |
| 37 | end |
| 38 | |
| 39 | post_install do |installer| |
| 40 | installer.pods_project.targets.each do |target| |
| 41 | flutter_additional_ios_build_settings(target) |
| 42 | end |
| 43 | end |