Podfile 1002 B

123456789101112131415161718192021222324252627282930313233343536
  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. # Pods for Runner
  8. # Flutter Pods
  9. pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
  10. if File.exists? '../.flutter-plugins'
  11. flutter_root = File.expand_path('..')
  12. File.foreach('../.flutter-plugins') { |line|
  13. plugin = line.split(pattern='=')
  14. if plugin.length == 2
  15. name = plugin[0].strip()
  16. path = plugin[1].strip()
  17. resolved_path = File.expand_path("#{path}/ios", flutter_root)
  18. pod name, :path => resolved_path
  19. else
  20. puts "Invalid plugin specification: #{line}"
  21. end
  22. }
  23. end
  24. end
  25. post_install do |installer|
  26. installer.pods_project.targets.each do |target|
  27. target.build_configurations.each do |config|
  28. config.build_settings['ENABLE_BITCODE'] = 'NO'
  29. end
  30. end
  31. end