Skip to content

Commit

Permalink
Use the main bundle if the App bundle is not found (flutter#18749)
Browse files Browse the repository at this point in the history
It looks like half the code in this function was updated to use the
main bundle but this one line was still only using the _dartBundle. I am
pretty sure that is a mistake and instead we want to use the mainBundle
as a backup both to find the plist and to find the assets.
  • Loading branch information
rokob authored Jul 12, 2020
1 parent c99deb0 commit 015f2ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ - (NSString*)assetsPath {
if (flutterAssetsName == nil) {
flutterAssetsName = @"flutter_assets";
}
NSString* path = [_dartBundle pathForResource:flutterAssetsName ofType:@""];
NSString* path = [assetBundle pathForResource:flutterAssetsName ofType:@""];
if (!path) {
NSLog(@"Failed to find path for \"%@\"", flutterAssetsName);
}
Expand Down

0 comments on commit 015f2ea

Please sign in to comment.