Skip to content

Commit

Permalink
fix(ios): handle loading internal _index_.json under xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Jan 12, 2021
1 parent 7f3bbd8 commit d44e877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/AssetsModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ + (FileStatus)fileStatus:(NSString *)path
// there was no index.json! status is unknown!
return FileStatusUnknown;
}
if ([path isEqualToString:@"/_index_.json"]) { // we know it exists! we loaded it
return FileStatusUnknown; // treat as "unknown" since we didn't record if we loaded in normal or encrypted...
}
// Initial path is assuemd to be of form: "/ti.main.js", "/app.js" or "/ti.kernel.js"
// Basically a path that looks absolute but is relative to Resources dir (app root)
path = [@"Resources" stringByAppendingString:path];
Expand Down

0 comments on commit d44e877

Please sign in to comment.