Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit d7332ed

Browse files
committed
final test
2 parents 8ee234e + b5b2788 commit d7332ed

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

Examples/HybridMobileDeployCompanion/iOS/AppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3333
* on the same Wi-Fi network.
3434
*/
3535

36-
//jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
36+
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
3737

3838
/**
3939
* OPTION 2
@@ -45,7 +45,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
4545
* see http://facebook.github.io/react-native/docs/runningondevice.html
4646
*/
4747

48-
jsCodeLocation = [HybridMobileDeploy getBundleUrl];
48+
//jsCodeLocation = [HybridMobileDeploy getBundleUrl];
4949

5050
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
5151
moduleName:@"HybridMobileDeployCompanion"

Examples/HybridMobileDeployCompanion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "node_modules/react-native/packager/packager.sh --root ../../"
77
},
88
"dependencies": {
9-
"react-native": "^0.8.0-rc",
9+
"react-native": "^0.8.0",
1010
"react-native-button": "^1.2.0",
1111
"react-native-hybrid-mobile-deploy": "file:../../"
1212
}

Examples/HybridMobileDeployCompanion/react-packager-cache-5737493143262339187995942fd693ba

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

HybridMobileDeploy.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#import "HybridMobileDeploy.h"
22

3+
#import "RCTBridgeModule.h"
34
#import "RCTRootView.h"
45
#import "RCTUtils.h"
56

67
@implementation HybridMobileDeploy
78

89
RCT_EXPORT_MODULE()
910

11+
RCTBridge * _bridge;
12+
13+
@synthesize bridge = _bridge;
14+
1015
+ (NSString *) getBundleFolderPath
1116
{
1217
NSString* home = NSHomeDirectory();
@@ -59,7 +64,7 @@ + (void) loadBundle:(NSString*)rootComponent
5964
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:[self getBundleUrl]
6065
moduleName:rootComponent
6166
launchOptions:nil];
62-
67+
6368
UIViewController *rootViewController = [[UIViewController alloc] init];
6469
rootViewController.view = rootView;
6570
[UIApplication sharedApplication].delegate.window.rootViewController = rootViewController;
@@ -101,7 +106,6 @@ + (void) loadBundle:(NSString*)rootComponent
101106
// TODO send file path
102107
callback(@[RCTMakeError(@"Error saving file", err, [[NSDictionary alloc] initWithObjectsAndKeys:[HybridMobileDeploy getBundlePath],@"bundlePath", nil])]);
103108
} else {
104-
105109
// save the package info too
106110
NSString *packageFolderPath = [HybridMobileDeploy getPackageFolderPath];
107111
if (![[NSFileManager defaultManager] fileExistsAtPath:packageFolderPath]) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"semver": "^4.3.6"
99
},
1010
"devDependencies": {
11-
"react-native": "^0.8.0-rc"
11+
"react-native": "^0.8.0"
1212
}
1313
}

0 commit comments

Comments
 (0)