提交 7b488b38 authored 作者: JarvanMo's avatar JarvanMo

support run with flutter module.

上级 e04f808b
...@@ -14,7 +14,12 @@ library_version = pubspec['version'].gsub('+', '-') ...@@ -14,7 +14,12 @@ library_version = pubspec['version'].gsub('+', '-')
current_dir = Dir.pwd current_dir = Dir.pwd
calling_dir = File.dirname(__FILE__) calling_dir = File.dirname(__FILE__)
project_dir = calling_dir.slice(0..(calling_dir.index('/.symlinks'))) project_dir = calling_dir.slice(0..(calling_dir.index('/.symlinks')))
flutter_project_dir = calling_dir.slice(0..(calling_dir.index('/ios/.symlinks'))) symlinks_index = calling_dir.index('/ios/.symlinks')
if !symlinks_index
symlinks_index = calling_dir.index('/.ios/.symlinks')
end
flutter_project_dir = calling_dir.slice(0..(symlinks_index))
puts Psych::VERSION puts Psych::VERSION
psych_version_gte_500 = Gem::Version.new(Psych::VERSION) >= Gem::Version.new('5.0.0') psych_version_gte_500 = Gem::Version.new(Psych::VERSION) >= Gem::Version.new('5.0.0')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论