This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Examples/HybridMobileDeployCompanion/iOS Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
33
33
* on the same Wi-Fi network.
34
34
*/
35
35
36
- jsCodeLocation = [NSURL URLWithString: @" http://localhost:8081/index.ios.bundle" ];
36
+ // jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
37
37
38
38
/* *
39
39
* OPTION 2
@@ -45,7 +45,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
45
45
* see http://facebook.github.io/react-native/docs/runningondevice.html
46
46
*/
47
47
48
- // jsCodeLocation = [HybridMobileDeploy appBundleUrl:@"HybridMobileDeployCompanion" nativeBundleName:@"main" ];
48
+ jsCodeLocation = [HybridMobileDeploy appBundleUrl ];
49
49
50
50
RCTRootView *rootView = [[RCTRootView alloc ] initWithBundleURL: jsCodeLocation
51
51
moduleName: @" HybridMobileDeployCompanion"
Original file line number Diff line number Diff line change 3
3
@interface HybridMobileDeploy : NSObject <RCTBridgeModule>
4
4
+ (NSString *) getBundlePath : (NSString *)bundleName ;
5
5
+ (NSURL *) getNativeBundleURL : (NSString *)bundleName ;
6
+ + (NSURL *)appBundleUrl ;
6
7
+ (NSURL *)appBundleUrl : (NSString *)bundleName
7
8
nativeBundleName : (NSString *)nativeBundleName ;
8
9
@end
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ + (NSURL *) getNativeBundleURL:(NSString*)bundleName
26
26
return [[NSBundle mainBundle ] URLForResource: bundleName withExtension: @" jsbundle" ];
27
27
}
28
28
29
+ + (NSURL *) appBundleUrl
30
+ {
31
+ return [self appBundleUrl: @" bundle"
32
+ nativeBundleName: @" main" ];
33
+ }
34
+
29
35
+ (NSURL *) appBundleUrl : (NSString *)bundleName
30
36
nativeBundleName : (NSString *)nativeBundleName
31
37
{
You can’t perform that action at this time.
0 commit comments