Skip to content

Commit 22f3954

Browse files
committed
Added more debug configurations. Removed inline sourcemaps for iOS
1 parent 171b753 commit 22f3954

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.vscode/launch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Debug iOS",
9+
"cwd": "${workspaceFolder}",
10+
"type": "reactnative",
11+
"request": "launch",
12+
"platform": "ios"
13+
},
14+
{
15+
"name": "Debug Android",
16+
"cwd": "${workspaceFolder}",
17+
"type": "reactnative",
18+
"request": "launch",
19+
"platform": "android"
20+
},
21+
{
22+
"name": "Debug Android (Hermes) - Experimental",
23+
"cwd": "${workspaceFolder}",
24+
"type": "reactnativedirect",
25+
"request": "launch",
26+
"platform": "android"
27+
},
728
{
829
"type": "chrome",
930
"request": "launch",

ios/FluidTransitions/AppDelegate.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3636
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3737
{
3838
#if DEBUG
39-
// https://twitter.com/nparashuram/status/1187425725726412801
40-
return [NSURL URLWithString:[[[[RCTBundleURLProvider sharedSettings]
41-
jsBundleURLForBundleRoot:@"index" fallbackResource:nil] absoluteString]
42-
stringByAppendingString:@"&inlineSourceMap=true" ]];
39+
// // https://twitter.com/nparashuram/status/1187425725726412801
40+
// return [NSURL URLWithString:[[[[RCTBundleURLProvider sharedSettings]
41+
// jsBundleURLForBundleRoot:@"index" fallbackResource:nil] absoluteString]
42+
// stringByAppendingString:@"&inlineSourceMap=true" ]];
4343

44-
//return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
44+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
4545
#else
4646
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
4747
#endif

0 commit comments

Comments
 (0)