Browse Source

Removed unimodules from ios

Arnaud Vergnet 1 year ago
parent
commit
7e4c385083
3 changed files with 2 additions and 15 deletions
  1. 1
    4
      ios/Campus/AppDelegate.h
  2. 0
    6
      ios/Campus/AppDelegate.m
  3. 1
    5
      ios/Podfile

+ 1
- 4
ios/Campus/AppDelegate.h View File

@@ -6,13 +6,10 @@
6 6
  */
7 7
 
8 8
 #import <UIKit/UIKit.h>
9
-#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
10 9
 #import <React/RCTBridgeDelegate.h>
11
-#import <UMCore/UMAppDelegateWrapper.h>
12 10
 
13
-@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate>
11
+@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
14 12
 
15
-@property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter;
16 13
 @property (nonatomic, strong) UIWindow *window;
17 14
 
18 15
 @end

+ 0
- 6
ios/Campus/AppDelegate.m View File

@@ -10,10 +10,6 @@
10 10
 #import <React/RCTBundleURLProvider.h>
11 11
 #import <React/RCTRootView.h>
12 12
 
13
-#import <UMCore/UMModuleRegistry.h>
14
-#import <UMReactNativeAdapter/UMNativeModulesProxy.h>
15
-#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
16
-
17 13
 #import <React/RCTLinkingManager.h>
18 14
 #import "RNSplashScreen.h"
19 15
 
@@ -31,8 +27,6 @@
31 27
 
32 28
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
33 29
 {
34
-  self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
35
-
36 30
   RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
37 31
   RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil];
38 32
   rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

+ 1
- 5
ios/Podfile View File

@@ -1,6 +1,5 @@
1
-platform :ios, '10.0'
1
+platform :ios, '9.0'
2 2
 
3
-require_relative '../node_modules/react-native-unimodules/cocoapods'
4 3
 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
5 4
 
6 5
 target 'Campus' do
@@ -38,9 +37,6 @@ target 'Campus' do
38 37
 
39 38
   # Other native modules
40 39
 
41
-  # Automatically detect installed unimodules
42
-  use_unimodules!
43
-
44 40
   # react-native-cli autolinking
45 41
   use_native_modules!
46 42
 

Loading…
Cancel
Save