Skip to content

Commit

Permalink
temporarily comment out RNCConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Mar 20, 2023
1 parent 2987c18 commit 376a714
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions ios/StatusIm/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#import <asl.h>
#import "React/RCTLog.h"
#import "RNCConfig.h"
#import "RCTBundleURLProvider.h"
#import "RNSplashScreen.h"
#import "RCTLinkingManager.h"
Expand Down Expand Up @@ -51,19 +50,27 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSURL *jsCodeLocation;

/* Set logging level from React Native */
NSString *logLevel = [RNCConfig envFor:@"LOG_LEVEL"];
if([logLevel isEqualToString:@"error"]){
RCTSetLogThreshold(RCTLogLevelError);
}
else if([logLevel isEqualToString:@"warn"]){
RCTSetLogThreshold(RCTLogLevelWarning);
}
else if([logLevel isEqualToString:@"info"]){
RCTSetLogThreshold(RCTLogLevelInfo);
}
else if([logLevel isEqualToString:@"debug"]){
RCTSetLogThreshold(RCTLogLevelTrace);
}
// Todo : uncomment below section when project has been manually linked properly and below error has been fixed
// Undefined symbols for architecture x86_64:
// "_OBJC_CLASS_$_RNCConfig", referenced from:
// objc-class-ref in AppDelegate.o
// ld: symbol(s) not found for architecture x86_64
// clang: error: linker command failed with exit code 1 (use -v to see invocation)
// add #import "RNCConfig.h" at the top
//
// NSString *logLevel = [RNCConfig envFor:@"LOG_LEVEL"];
// if([logLevel isEqualToString:@"error"]){
// RCTSetLogThreshold(RCTLogLevelError);
// }
// else if([logLevel isEqualToString:@"warn"]){
// RCTSetLogThreshold(RCTLogLevelWarning);
// }
// else if([logLevel isEqualToString:@"info"]){
// RCTSetLogThreshold(RCTLogLevelInfo);
// }
// else if([logLevel isEqualToString:@"debug"]){
// RCTSetLogThreshold(RCTLogLevelTrace);
// }

NSDictionary *appDefaults = [NSDictionary
dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"BLANK_PREVIEW"];
Expand Down

0 comments on commit 376a714

Please sign in to comment.