Dinect target fix

This commit is contained in:
Mikhail Sokolov
2018-03-22 18:58:42 +07:00
parent c8fae79291
commit 527cb569ee
6 changed files with 102 additions and 220 deletions

View File

@@ -48,6 +48,27 @@ target Dinect do
}
end
end
target Crypto do
# Pods for Runner
# 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|