未验证 提交 6921873c 编写于 作者: A Alexander Aprelev 提交者: GitHub

Lookup FTLAssetsPath when deducing assets path on ios (#4593)

* Lookup FTLAssetsPath when deducing assets path on ios

* WS

* Proper fix

* Another whitespace fix
上级 c9b1e039
......@@ -15,7 +15,12 @@ void FlutterMain() {
NSBundle* mainBundle = [NSBundle mainBundle];
NSString* flutterAssetsPath = [mainBundle pathForResource:@"flutter_assets" ofType:nil];
NSString* flutterAssetsName = [mainBundle objectForInfoDictionaryKey:@"FLTAssetsPath"];
if (flutterAssetsName == nil) {
// Default to "flutter_assets"
flutterAssetsName = @"flutter_assets";
}
NSString* flutterAssetsPath = [mainBundle pathForResource:flutterAssetsName ofType:nil];
shell::PlatformMacMain(icuDataPath.UTF8String, libraryName != nil ? libraryName.UTF8String : "",
flutterAssetsPath.UTF8String);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册