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:
Pfeil, Scott Robert 2023-12-19 22:06:23 +00:00
commit ab43e791cf

View File

@ -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];
}