mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	update example to 0.76.3
This commit is contained in:
		| @@ -15,13 +15,14 @@ | ||||
|   return [super application:application didFinishLaunchingWithOptions:launchOptions]; | ||||
| } | ||||
|  | ||||
| - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge | ||||
| - (NSURL *)bundleURL | ||||
| { | ||||
| #if DEBUG | ||||
|   return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; | ||||
| #else | ||||
|   return [RCTPushy bundleURL]; | ||||
| #endif | ||||
|   #if DEBUG | ||||
|     // 原先DEBUG这里的写法不作修改(所以DEBUG模式下不可热更新) | ||||
|     return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; | ||||
|   #else | ||||
|     return [RCTPushy bundleURL];  // <--  把这里非DEBUG的情况替换为热更新bundle | ||||
|   #endif | ||||
| } | ||||
|  | ||||
| @end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm