117 lines
3.0 KiB
Ruby
117 lines
3.0 KiB
Ruby
# Uncomment this line to define a global platform for your project
|
||
# platform :ios, '9.0'
|
||
|
||
if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
|
||
abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
|
||
end
|
||
|
||
target ‘Runner’ do
|
||
# Pods for Runner
|
||
pod 'Firebase'
|
||
pod 'DropDown'
|
||
pod 'ZXingObjC'
|
||
use_frameworks!
|
||
|
||
# Flutter Pods
|
||
pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
|
||
|
||
if File.exists? '../.flutter-plugins'
|
||
flutter_root = File.expand_path('..')
|
||
File.foreach('../.flutter-plugins') { |line|
|
||
plugin = line.split(pattern='=')
|
||
if plugin.length == 2
|
||
name = plugin[0].strip()
|
||
path = plugin[1].strip()
|
||
resolved_path = File.expand_path("#{path}/ios", flutter_root)
|
||
pod name, :path => resolved_path
|
||
else
|
||
puts "Invalid plugin specification: #{line}"
|
||
end
|
||
}
|
||
end
|
||
end
|
||
target ‘Dinect’ do
|
||
# Pods for Dinect
|
||
pod 'Firebase'
|
||
pod 'DropDown'
|
||
pod 'ZXingObjC'
|
||
use_frameworks!
|
||
|
||
# Flutter Pods
|
||
pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
|
||
|
||
if File.exists? '../.flutter-plugins'
|
||
flutter_root = File.expand_path('..')
|
||
File.foreach('../.flutter-plugins') { |line|
|
||
plugin = line.split(pattern='=')
|
||
if plugin.length == 2
|
||
name = plugin[0].strip()
|
||
path = plugin[1].strip()
|
||
resolved_path = File.expand_path("#{path}/ios", flutter_root)
|
||
pod name, :path => resolved_path
|
||
else
|
||
puts "Invalid plugin specification: #{line}"
|
||
end
|
||
}
|
||
end
|
||
end
|
||
target ‘Crypto’ do
|
||
# Pods for Crypto
|
||
pod 'Firebase'
|
||
pod 'DropDown'
|
||
pod 'ZXingObjC'
|
||
use_frameworks!
|
||
|
||
# Flutter Pods
|
||
pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
|
||
|
||
if File.exists? '../.flutter-plugins'
|
||
flutter_root = File.expand_path('..')
|
||
File.foreach('../.flutter-plugins') { |line|
|
||
plugin = line.split(pattern='=')
|
||
if plugin.length == 2
|
||
name = plugin[0].strip()
|
||
path = plugin[1].strip()
|
||
resolved_path = File.expand_path("#{path}/ios", flutter_root)
|
||
pod name, :path => resolved_path
|
||
else
|
||
puts "Invalid plugin specification: #{line}"
|
||
end
|
||
}
|
||
end
|
||
end
|
||
|
||
target ‘BioChecker’ do
|
||
# Pods for BioChecker
|
||
pod 'Firebase'
|
||
pod 'DropDown'
|
||
pod 'ZXingObjC'
|
||
use_frameworks!
|
||
|
||
# Flutter Pods
|
||
pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
|
||
|
||
if File.exists? '../.flutter-plugins'
|
||
flutter_root = File.expand_path('..')
|
||
File.foreach('../.flutter-plugins') { |line|
|
||
plugin = line.split(pattern='=')
|
||
if plugin.length == 2
|
||
name = plugin[0].strip()
|
||
path = plugin[1].strip()
|
||
resolved_path = File.expand_path("#{path}/ios", flutter_root)
|
||
pod name, :path => resolved_path
|
||
else
|
||
puts "Invalid plugin specification: #{line}"
|
||
end
|
||
}
|
||
end
|
||
end
|
||
|
||
post_install do |installer|
|
||
installer.pods_project.targets.each do |target|
|
||
target.build_configurations.each do |config|
|
||
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
||
end
|
||
end
|
||
end
|