From f1ca0fc1664a023049d4efd8999378d598bf967e Mon Sep 17 00:00:00 2001 From: Keerthy Date: Thu, 3 Oct 2024 18:00:43 +0530 Subject: [PATCH] Mocking resp for Demo --- .../HardCodedServerResponse/MFHardCodedServerResponse.m | 3 ++- MVMCore/MVMCore/mvmcore_dev.xcconfig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/Utility/HardCodedServerResponse/MFHardCodedServerResponse.m b/MVMCore/MVMCore/Utility/HardCodedServerResponse/MFHardCodedServerResponse.m index 44b7b4d..cacdb79 100644 --- a/MVMCore/MVMCore/Utility/HardCodedServerResponse/MFHardCodedServerResponse.m +++ b/MVMCore/MVMCore/Utility/HardCodedServerResponse/MFHardCodedServerResponse.m @@ -60,7 +60,8 @@ - (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType { NSError *error; - NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"]; +// NSString *filePath = [[NSBundle mainBundle] pathForResource:pageType ofType:@"json"]; + NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@", pageType] ofType:@"json"]; if (filePath) { return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error]; } diff --git a/MVMCore/MVMCore/mvmcore_dev.xcconfig b/MVMCore/MVMCore/mvmcore_dev.xcconfig index 470d90c..7149c3c 100644 --- a/MVMCore/MVMCore/mvmcore_dev.xcconfig +++ b/MVMCore/MVMCore/mvmcore_dev.xcconfig @@ -20,4 +20,4 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) LOGGING=1 #include? "../../../workspaceSettings.xcconfig" // For enabling hardcoded JSON payloads. -//GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ENABLE_HARD_CODED_RESPONSE=1 +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ENABLE_HARD_CODED_RESPONSE=1