LaoMengFlutter / flutter-do

包含350多个组件用法、组件继承关系图、40多个 loading 组件,App升级、验证码、弹幕、音乐字幕 4个插件,一个小而全完整的App项目。
http://laomengit.com/
Apache License 2.0
2.62k stars 538 forks source link

Flutter 1.20 build error #31

Closed tongyangsheng closed 4 years ago

tongyangsheng commented 4 years ago

需要按照Flutter 1.20的插件调整插件方案 ↳ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:14: warning: non-breaking space (U+00A0) used instead of regular space let infoDictionary = Bundle.main.infoDictionary! /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:32: warning: non-breaking space (U+00A0) used instead of regular space let infoDictionary = Bundle.main.infoDictionary! /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:14:14: warning: non-breaking space (U+00A0) used instead of regular space let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号 /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:49: warning: treating a forced downcast to 'String' as optional will never produce 'nil' map["packageName"] = bundleIdentifier as! String ^ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:51: note: use 'as?' to perform a conditional downcast to 'String' map["packageName"] = bundleIdentifier as! String ^ ? /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:32: note: add parentheses around the cast to silence this warning map["packageName"] = bundleIdentifier as! String ^ ( ) /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:45: warning: treating a forced downcast to 'String' as optional will never produce 'nil' map["versionName"] = majorVersion as! String ^ /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:47: note: use 'as?' to perform a conditional downcast to 'String' map["versionName"] = majorVersion as! String ^ ? /Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning map["versionName"] = majorVersion as! String ^ ( )