Merge branch 'bugfix/hardcoded_handling' into 'develop'
adjust to xcode .app file reuse ### Summary Adjusting hardcoded handling to avoid silently keeping old .json files. Stash in dedicated folder to avoid flooding root app folder. Co-authored-by: Hedden, Kyle Matthew <kyle.hedden@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/298
This commit is contained in:
commit
ab43e791cf
@ -59,7 +59,7 @@
|
||||
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
|
||||
|
||||
NSError *error;
|
||||
NSString *filePath = [[NSBundle mainBundle] pathForResource:pageType ofType:@"json"];
|
||||
NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"];
|
||||
if (filePath) {
|
||||
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user