Enabled hard coded response
This commit is contained in:
parent
8f88e94ed8
commit
ea8963be0b
@ -60,7 +60,9 @@
|
|||||||
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
|
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
|
||||||
|
|
||||||
NSError *error;
|
NSError *error;
|
||||||
NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"];
|
// NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"];
|
||||||
|
NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@", pageType] ofType:@"json"];
|
||||||
|
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
|
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,4 +20,4 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) LOGGING=1
|
|||||||
#include? "../../../workspaceSettings.xcconfig"
|
#include? "../../../workspaceSettings.xcconfig"
|
||||||
|
|
||||||
// For enabling hardcoded JSON payloads.
|
// For enabling hardcoded JSON payloads.
|
||||||
//GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ENABLE_HARD_CODED_RESPONSE=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ENABLE_HARD_CODED_RESPONSE=1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user