Enabled bugsnag, firebase and mmkv. Build is now working on iOS

This commit is contained in:
Diego Mello 2023-04-06 10:51:46 -03:00
parent eb327c008f
commit 1a453ddabe
1 changed files with 12 additions and 3 deletions

View File

@ -6,9 +6,9 @@
// #import "RNNotifications.h" // #import "RNNotifications.h"
#import "RNBootSplash.h" #import "RNBootSplash.h"
// #import "Orientation.h" // #import "Orientation.h"
// #import <Firebase.h> #import <Firebase.h>
// #import <Bugsnag/Bugsnag.h> #import <Bugsnag/Bugsnag.h>
// #import <MMKV/MMKV.h> #import <MMKV/MMKV.h>
// #import <React/RCTAppSetupUtils.h> // #import <React/RCTAppSetupUtils.h>
// #if RCT_NEW_ARCH_ENABLED // #if RCT_NEW_ARCH_ENABLED
@ -76,6 +76,15 @@
// return YES; // return YES;
if(![FIRApp defaultApp]){
[FIRApp configure];
}
[Bugsnag start];
// AppGroup MMKV
NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppGroup"]].path;
[MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogInfo];
self.moduleName = @"RocketChatRN"; self.moduleName = @"RocketChatRN";
// You can add your custom initial props in the dictionary below. // You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native. // They will be passed down to the ViewController used by React Native.