fix iOS build
This commit is contained in:
72
ios/Podfile
72
ios/Podfile
@@ -1,6 +1,7 @@
|
||||
# Uncomment this line to define a global platform for your project
|
||||
# platform :ios, '9.0'
|
||||
pod 'ZXingObjC', '~> 3.2.2'
|
||||
pod 'ZXingObjC', '3.6.5'
|
||||
pod 'DropDown', '2.3.12'
|
||||
|
||||
if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
|
||||
abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
|
||||
@@ -8,7 +9,6 @@ end
|
||||
|
||||
target ‘Runner’ do
|
||||
# Pods for Runner
|
||||
pod 'DropDown'
|
||||
use_frameworks!
|
||||
|
||||
# Flutter Pods
|
||||
@@ -31,7 +31,6 @@ target ‘Runner’ do
|
||||
end
|
||||
target ‘Dinect’ do
|
||||
# Pods for Dinect
|
||||
pod 'DropDown'
|
||||
use_frameworks!
|
||||
|
||||
# Flutter Pods
|
||||
@@ -54,7 +53,6 @@ target ‘Dinect’ do
|
||||
end
|
||||
target ‘Crypto’ do
|
||||
# Pods for Crypto
|
||||
pod 'DropDown'
|
||||
use_frameworks!
|
||||
|
||||
# Flutter Pods
|
||||
@@ -75,6 +73,72 @@ target ‘Crypto’ do
|
||||
}
|
||||
end
|
||||
end
|
||||
target ‘Crypto INT’ do
|
||||
# Pods for Crypto
|
||||
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-INT’ do
|
||||
# Pods for Dinect-INT
|
||||
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-OTE’ do
|
||||
# Pods for Dinect
|
||||
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|
|
||||
|
||||
Reference in New Issue
Block a user