diff --git a/examples/ios-demo/HippyDemo/TestModule.m b/examples/ios-demo/HippyDemo/TestModule.m index 1d488df7fcd..92d83114a7d 100644 --- a/examples/ios-demo/HippyDemo/TestModule.m +++ b/examples/ios-demo/HippyDemo/TestModule.m @@ -21,13 +21,18 @@ */ #import "TestModule.h" -#import "HippyRootView.h" +#import +#import +#import #import "AppDelegate.h" #import "HippyBundleURLProvider.h" #import "DemoConfigs.h" @interface TestModule () +/// The debug bundle url +@property (nonatomic, strong) NSURL *debugBundleUrl; + @end @implementation TestModule @@ -78,6 +83,7 @@ - (dispatch_queue_t)methodQueue } NSURL *url = [NSURL URLWithString:urlString]; + self.debugBundleUrl = url; NSDictionary *launchOptions = @{@"EnableTurbo": @(DEMO_ENABLE_TURBO), @"DebugMode": @(YES)}; HippyBridge *bridge = [[HippyBridge alloc] initWithDelegate:self bundleURL:url @@ -101,7 +107,7 @@ - (BOOL)shouldStartInspector:(HippyBridge *)bridge { } - (NSURL *)inspectorSourceURLForBridge:(HippyBridge *)bridge { - return bridge.bundleURL; + return self.debugBundleUrl; } #pragma mark - Hippy Bridge Delegate diff --git a/examples/ios-demo/HippyDemo/ViewController.m b/examples/ios-demo/HippyDemo/ViewController.m index 3131b6a492b..c1644e11e1b 100644 --- a/examples/ios-demo/HippyDemo/ViewController.m +++ b/examples/ios-demo/HippyDemo/ViewController.m @@ -21,11 +21,12 @@ */ #import "ViewController.h" -#import "HippyRootView.h" -#import "HippyLog.h" -#import "HippyBundleURLProvider.h" #import "DemoConfigs.h" -#import "HippyBridge.h" +#import +#import +#import +#import +#import #import @@ -38,6 +39,9 @@ @interface ViewController ()