Lookup FTLAssetsPath when deducing assets path on ios (flutter/engine#4593)
* Lookup FTLAssetsPath when deducing assets path on ios * WS * Proper fix * Another whitespace fix
This commit is contained in:
committed by
GitHub
parent
b64dcc4470
commit
45ce7ba63f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user