提交 7099848b authored 作者: JarvanMo's avatar JarvanMo

fix #545

上级 0027d12f
......@@ -29,7 +29,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
fluwx: b1dc9ae474e933bef9ff8b82d1452989124c4848
fluwx: 3c7b6df42f83d444d4538f3eaeae079f12d30c37
integration_test: 13825b8a9334a850581300559b8839134b124670
WechatOpenSDK-XCFramework: acdeeda129efbef9532bca8a10c24e1b4b8c7d69
......
......@@ -15,7 +15,15 @@ current_dir = Dir.pwd
calling_dir = File.dirname(__FILE__)
project_dir = calling_dir.slice(0..(calling_dir.index('/.symlinks')))
flutter_project_dir = calling_dir.slice(0..(calling_dir.index('/ios/.symlinks')))
cfg = YAML.load_file(File.join(flutter_project_dir, 'pubspec.yaml'))
puts Psych::VERSION
psych_version_gte_500 = Gem::Version.new(Psych::VERSION) >= Gem::Version.new('5.0.0')
if psych_version_gte_500 == true
cfg = YAML.load_file(File.join(flutter_project_dir, 'pubspec.yaml'), aliases: true)
else
cfg = YAML.load_file(File.join(flutter_project_dir, 'pubspec.yaml'))
end
logging_status = "WECHAT_LOGGING=0"
if cfg['fluwx'] && cfg['fluwx']['debug_logging'] == true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论