Podfile 1021 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Uncomment this line to define a global platform for your project
  2. # platform :ios, '9.0'
  3. if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
  4. abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
  5. end
  6. target 'Runner' do
  7. use_frameworks!
  8. # Pods for Runner
  9. # Flutter Pods
  10. pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
  11. if File.exists? '../.flutter-plugins'
  12. flutter_root = File.expand_path('..')
  13. File.foreach('../.flutter-plugins') { |line|
  14. plugin = line.split(pattern='=')
  15. if plugin.length == 2
  16. name = plugin[0].strip()
  17. path = plugin[1].strip()
  18. resolved_path = File.expand_path("#{path}/ios", flutter_root)
  19. pod name, :path => resolved_path
  20. else
  21. puts "Invalid plugin specification: #{line}"
  22. end
  23. }
  24. end
  25. end
  26. post_install do |installer|
  27. installer.pods_project.targets.each do |target|
  28. target.build_configurations.each do |config|
  29. config.build_settings['ENABLE_BITCODE'] = 'NO'
  30. end
  31. end
  32. end