Skip to content

Commit

Permalink
Lookup FTLAssetsPath when deducing assets path on ios (flutter#4593)
Browse files Browse the repository at this point in the history
* Lookup FTLAssetsPath when deducing assets path on ios

* WS

* Proper fix

* Another whitespace fix
  • Loading branch information
aam authored Jan 26, 2018
1 parent c9b1e03 commit 6921873
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6921873

Please sign in to comment.