fix ios build

This commit is contained in:
GleidsonDaniel 2024-05-23 18:41:02 -04:00
parent eb0c456427
commit ccee3c0562
4 changed files with 8 additions and 19 deletions

View File

@ -3102,7 +3102,7 @@
EXCLUDED_ARCHS = "";
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = NotificationService/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@ -3146,7 +3146,7 @@
EXCLUDED_ARCHS = "";
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = NotificationService/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",

View File

@ -24,8 +24,12 @@
[RNNotifications startMonitorNotifications];
[ReplyNotification configure];
[RNBootSplash initWithStoryboard:@"LaunchScreen" rootView:rootView];
self.moduleName = @"RocketChatRN";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[super application:application didFinishLaunchingWithOptions:launchOptions];
[RNBootSplash initWithStoryboard:@"LaunchScreen" rootView:self.window.rootViewController.view];
[[[SSLPinning alloc] init] migrate];
self.watchConnection = [[WatchConnection alloc] initWithSession:[WCSession defaultSession]];

View File

@ -7,14 +7,9 @@
//
#import <React/RCTHTTPRequestHandler.h>
#import "RNFetchBlobRequest.h"
NS_ASSUME_NONNULL_BEGIN
@interface RNFetchBlobRequest (Challenge)
@end
@interface RCTHTTPRequestHandler (Challenge)
@end

View File

@ -8,7 +8,6 @@
#import <objc/runtime.h>
#import "SSLPinning.h"
#import "RNFetchBlobRequest.h"
#import <MMKV/MMKV.h>
#import <SDWebImage/SDWebImageDownloader.h>
#import "SecureStorage.h"
@ -113,15 +112,6 @@
}
@end
@implementation RNFetchBlobRequest (Challenge)
- (void) URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable credential))completionHandler
{
[Challenge runChallenge:session didReceiveChallenge:challenge completionHandler:completionHandler];
}
@end
@implementation RCTHTTPRequestHandler (Challenge)
- (void) URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable credential))completionHandler