Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Podfile 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Uncomment this line to define a global platform for your project
  2. # platform :ios, '9.0'
  3. # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
  4. ENV['COCOAPODS_DISABLE_STATS'] = 'true'
  5. project 'Runner', {
  6. 'Debug' => :debug,
  7. 'Profile' => :release,
  8. 'Release' => :release,
  9. }
  10. def parse_KV_file(file, separator='=')
  11. file_abs_path = File.expand_path(file)
  12. if !File.exists? file_abs_path
  13. return [];
  14. end
  15. pods_ary = []
  16. skip_line_start_symbols = ["#", "/"]
  17. File.foreach(file_abs_path) { |line|
  18. next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
  19. plugin = line.split(pattern=separator)
  20. if plugin.length == 2
  21. podname = plugin[0].strip()
  22. path = plugin[1].strip()
  23. podpath = File.expand_path("#{path}", file_abs_path)
  24. pods_ary.push({:name => podname, :path => podpath});
  25. else
  26. puts "Invalid plugin specification: #{line}"
  27. end
  28. }
  29. return pods_ary
  30. end
  31. target 'Runner' do
  32. use_frameworks!
  33. # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  34. # referring to absolute paths on developers' machines.
  35. system('rm -rf .symlinks')
  36. system('mkdir -p .symlinks/plugins')
  37. # Flutter Pods
  38. generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  39. if generated_xcode_build_settings.empty?
  40. puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  41. end
  42. generated_xcode_build_settings.map { |p|
  43. if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
  44. symlink = File.join('.symlinks', 'flutter')
  45. File.symlink(File.dirname(p[:path]), symlink)
  46. pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
  47. end
  48. }
  49. # Plugin Pods
  50. plugin_pods = parse_KV_file('../.flutter-plugins')
  51. plugin_pods.map { |p|
  52. symlink = File.join('.symlinks', 'plugins', p[:name])
  53. File.symlink(p[:path], symlink)
  54. pod p[:name], :path => File.join(symlink, 'ios')
  55. }
  56. end
  57. post_install do |installer|
  58. installer.pods_project.targets.each do |target|
  59. target.build_configurations.each do |config|
  60. config.build_settings['ENABLE_BITCODE'] = 'NO'
  61. end
  62. end
  63. end