From 7e4c385083d35755c5390bd44c31d967a510421a Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Wed, 29 Apr 2020 17:52:25 +0200 Subject: [PATCH] Removed unimodules from ios --- ios/Campus/AppDelegate.h | 5 +---- ios/Campus/AppDelegate.m | 6 ------ ios/Podfile | 6 +----- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/ios/Campus/AppDelegate.h b/ios/Campus/AppDelegate.h index 78fbb4d..224a590 100644 --- a/ios/Campus/AppDelegate.h +++ b/ios/Campus/AppDelegate.h @@ -6,13 +6,10 @@ */ #import -#import #import -#import -@interface AppDelegate : UMAppDelegateWrapper +@interface AppDelegate : UIResponder -@property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; @property (nonatomic, strong) UIWindow *window; @end diff --git a/ios/Campus/AppDelegate.m b/ios/Campus/AppDelegate.m index bb692dd..043f017 100644 --- a/ios/Campus/AppDelegate.m +++ b/ios/Campus/AppDelegate.m @@ -10,10 +10,6 @@ #import #import -#import -#import -#import - #import #import "RNSplashScreen.h" @@ -31,8 +27,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; - RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; diff --git a/ios/Podfile b/ios/Podfile index dcf31d0..ae48736 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,6 +1,5 @@ -platform :ios, '10.0' +platform :ios, '9.0' -require_relative '../node_modules/react-native-unimodules/cocoapods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'Campus' do @@ -38,9 +37,6 @@ target 'Campus' do # Other native modules - # Automatically detect installed unimodules - use_unimodules! - # react-native-cli autolinking use_native_modules!