@@ -5,7 +5,7 @@ exports[`Config Plugin iOS Tests tests changes made to AppDelegate.m (SDK 43) 1`
5
5
// It is (nearly) identical to the pure template used when
6
6
// creating a bare React Native app (without Expo)
7
7
8
- #import \\ "AppDelegate.h\\ "
8
+ #import "AppDelegate.h"
9
9
#import <Firebase/Firebase.h>
10
10
11
11
#import <React/RCTBridge.h>
@@ -45,8 +45,8 @@ static void InitializeFlipper(UIApplication *application) {
45
45
[FIRApp configure];
46
46
// @generated end @react-native-firebase/app-didFinishLaunchingWithOptions
47
47
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions :launchOptions ];
48
- RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :bridge moduleName :@\\ " main\\ " initialProperties :nil ];
49
- id rootViewBackgroundColor = [[NSBundle mainBundle ] objectForInfoDictionaryKey :@\\ " RCTRootViewBackgroundColor\\ " ];
48
+ RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :bridge moduleName :@" main" initialProperties :nil ];
49
+ id rootViewBackgroundColor = [[NSBundle mainBundle ] objectForInfoDictionaryKey :@" RCTRootViewBackgroundColor" ];
50
50
if (rootViewBackgroundColor != nil ) {
51
51
rootView.backgroundColor = [RCTConvert UIColor:rootViewBackgroundColor ];
52
52
} else {
@@ -72,9 +72,9 @@ static void InitializeFlipper(UIApplication *application) {
72
72
73
73
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
74
74
#ifdef DEBUG
75
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@\\ " index\\ " fallbackResource :nil ];
75
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@" index" fallbackResource :nil ];
76
76
#else
77
- return [[NSBundle mainBundle ] URLForResource :@\\ " main\\ " withExtension :@\\ " jsbundle\\ " ];
77
+ return [[NSBundle mainBundle ] URLForResource :@" main" withExtension :@" jsbundle" ];
78
78
#endif
79
79
}
80
80
@@ -98,7 +98,7 @@ exports[`Config Plugin iOS Tests tests changes made to AppDelegate.m with Expo R
98
98
"// This AppDelegate prebuild template is used in Expo SDK 44+
99
99
// It has the RCTBridge to be created by Expo ReactDelegate
100
100
101
- #import \\ "AppDelegate.h\\ "
101
+ #import "AppDelegate.h"
102
102
#import <Firebase/Firebase.h>
103
103
104
104
#import <React/RCTBridge.h>
@@ -138,7 +138,7 @@ static void InitializeFlipper(UIApplication *application) {
138
138
[FIRApp configure];
139
139
// @generated end @react-native-firebase/app-didFinishLaunchingWithOptions
140
140
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions :launchOptions ];
141
- RCTRootView * rootView = [self .reactDelegate createRootViewWithBridge :bridge moduleName :@\\ " main\\ " initialProperties :nil ];
141
+ RCTRootView * rootView = [self .reactDelegate createRootViewWithBridge :bridge moduleName :@" main" initialProperties :nil ];
142
142
rootView .backgroundColor = [UIColor whiteColor ];
143
143
self .window = [[UIWindow alloc ] initWithFrame :[UIScreen mainScreen ].bounds ];
144
144
UIViewController * rootViewController = [self .reactDelegate createRootViewController ];
@@ -159,9 +159,9 @@ static void InitializeFlipper(UIApplication *application) {
159
159
160
160
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
161
161
#ifdef DEBUG
162
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@\\ " index\\ " fallbackResource :nil ];
162
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@" index" fallbackResource :nil ];
163
163
#else
164
- return [[NSBundle mainBundle ] URLForResource :@\\ " main\\ " withExtension :@\\ " jsbundle\\ " ];
164
+ return [[NSBundle mainBundle ] URLForResource :@" main" withExtension :@" jsbundle" ];
165
165
#endif
166
166
}
167
167
@@ -188,7 +188,7 @@ exports[`Config Plugin iOS Tests tests changes made to AppDelegate.m with fallba
188
188
189
189
// some parts omitted to be short
190
190
191
- #import \\ "AppDelegate.h\\ "
191
+ #import "AppDelegate.h"
192
192
#import <Firebase/Firebase.h>
193
193
194
194
#import <React/RCTBridge.h>
@@ -212,8 +212,8 @@ exports[`Config Plugin iOS Tests tests changes made to AppDelegate.m with fallba
212
212
213
213
// the line below is malfolmed not to be matched by the Expo plugin regex
214
214
// RCTBridge* briddge = [RCTBridge new];
215
- RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :briddge moduleName :@\\ " main\\ " initialProperties :nil ];
216
- id rootViewBackgroundColor = [[NSBundle mainBundle ] objectForInfoDictionaryKey :@\\ " RCTRootViewBackgroundColor\\ " ];
215
+ RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :briddge moduleName :@" main" initialProperties :nil ];
216
+ id rootViewBackgroundColor = [[NSBundle mainBundle ] objectForInfoDictionaryKey :@" RCTRootViewBackgroundColor" ];
217
217
if (rootViewBackgroundColor != nil ) {
218
218
rootView.backgroundColor = [RCTConvert UIColor:rootViewBackgroundColor ];
219
219
} else {
@@ -239,7 +239,7 @@ exports[`Config Plugin iOS Tests tests changes made to old AppDelegate.m (SDK 42
239
239
"// This AppDelegate prebuild template is used in Expo SDK 42 and older
240
240
// It expects the old react-native-unimodules architecture (UM* prefix)
241
241
242
- #import \\ "AppDelegate.h\\ "
242
+ #import "AppDelegate.h"
243
243
#import <Firebase/Firebase.h>
244
244
245
245
#import <React/RCTBridge.h>
@@ -309,7 +309,7 @@ static void InitializeFlipper(UIApplication *application) {
309
309
- (RCTBridge * )initializeReactNativeApp
310
310
{
311
311
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions :self .launchOptions ];
312
- RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :bridge moduleName :@\\ " main\\ " initialProperties :nil ];
312
+ RCTRootView * rootView = [[RCTRootView alloc ] initWithBridge :bridge moduleName :@" main" initialProperties :nil ];
313
313
rootView .backgroundColor = [[UIColor alloc ] initWithRed :1.0f green :1.0f blue :1.0f alpha :1 ];
314
314
315
315
UIViewController * rootViewController = [UIViewController new ];
@@ -329,7 +329,7 @@ static void InitializeFlipper(UIApplication *application) {
329
329
330
330
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
331
331
#ifdef DEBUG
332
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@\\ " index\\ " fallbackResource :nil ];
332
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@" index" fallbackResource :nil ];
333
333
#else
334
334
return [[EXUpdatesAppController sharedInstance ] launchAssetUrl ];
335
335
#endif
@@ -350,7 +350,7 @@ exports[`Config Plugin iOS Tests works with AppDelegate.mm (RN 0.68+) 1`] = `
350
350
// The main difference between this and the SDK 44 one is that this is
351
351
// using React Native 0.68 and is written in Objective-C++
352
352
353
- #import \\ "AppDelegate.h\\ "
353
+ #import "AppDelegate.h"
354
354
#import <Firebase/Firebase.h>
355
355
356
356
#import <React/RCTBridge.h>
@@ -394,12 +394,12 @@ exports[`Config Plugin iOS Tests works with AppDelegate.mm (RN 0.68+) 1`] = `
394
394
#if RCT_NEW_ARCH_ENABLED
395
395
_contextContainer = std ::make_shared <facebook ::react ::ContextContainer const >();
396
396
_reactNativeConfig = std ::make_shared <facebook ::react ::EmptyReactNativeConfig const >();
397
- _contextContainer - > insert (\\ " ReactNativeConfig\\ " , _reactNativeConfig );
397
+ _contextContainer - > insert (" ReactNativeConfig" , _reactNativeConfig );
398
398
_bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc ] initWithBridge :bridge contextContainer :_contextContainer ];
399
399
bridge .surfacePresenter = _bridgeAdapter .surfacePresenter ;
400
400
#endif
401
401
402
- UIView * rootView = [self .reactDelegate createRootViewWithBridge :bridge moduleName :@\\ " main\\ " initialProperties :nil ];
402
+ UIView * rootView = [self .reactDelegate createRootViewWithBridge :bridge moduleName :@" main" initialProperties :nil ];
403
403
404
404
rootView .backgroundColor = [UIColor whiteColor ];
405
405
self .window = [[UIWindow alloc ] initWithFrame :[UIScreen mainScreen ].bounds ];
@@ -422,9 +422,9 @@ exports[`Config Plugin iOS Tests works with AppDelegate.mm (RN 0.68+) 1`] = `
422
422
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
423
423
{
424
424
#if DEBUG
425
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@\\ " index\\ " ];
425
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot :@" index" ];
426
426
#else
427
- return [[NSBundle mainBundle ] URLForResource :@\\ " main\\ " withExtension :@\\ " jsbundle\\ " ];
427
+ return [[NSBundle mainBundle ] URLForResource :@" main" withExtension :@" jsbundle" ];
428
428
#endif
429
429
}
430
430
0 commit comments