diff --git a/packages/react-native/React/Base/RCTBundleURLProvider.h b/packages/react-native/React/Base/RCTBundleURLProvider.h index efe1bd632aa566..bd627816167872 100644 --- a/packages/react-native/React/Base/RCTBundleURLProvider.h +++ b/packages/react-native/React/Base/RCTBundleURLProvider.h @@ -119,27 +119,11 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); * - enableDev: Whether to keep or remove `__DEV__` blocks from the bundle. * - enableMinification: Enables or disables minification. Usually production bundles are minified and development * bundles are not. + * - inlineSourceMap: When true, the bundler will inline the source map in the bundle * - modulesOnly: When true, will only send module definitions without polyfills and without the require-runtime. * - runModule: When true, will run the main module after defining all modules. This is used in the main bundle but not * in split bundles. */ -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification - __deprecated_msg( - "Use `jsBundleURLForBundleRoot:packagerHost:enableDev:enableMinification:inlineSourceMap:` instead"); - -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - packagerScheme:(NSString *)scheme - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification - modulesOnly:(BOOL)modulesOnly - runModule:(BOOL)runModule - __deprecated_msg( - "Use jsBundleURLForBundleRoot:packagerHost:enableDev:enableMinification:inlineSourceMap:modulesOnly:runModule:` instead"); - + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot packagerHost:(NSString *)packagerHost enableDev:(BOOL)enableDev diff --git a/packages/react-native/React/Base/RCTBundleURLProvider.mm b/packages/react-native/React/Base/RCTBundleURLProvider.mm index aa8753376e1d1a..596706da3bec73 100644 --- a/packages/react-native/React/Base/RCTBundleURLProvider.mm +++ b/packages/react-native/React/Base/RCTBundleURLProvider.mm @@ -245,27 +245,11 @@ - (NSURL *)resourceURLForResourceRoot:(NSString *)root queryItems:nil]; } -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification -{ - return [self jsBundleURLForBundleRoot:bundleRoot - packagerHost:packagerHost - packagerScheme:nil - enableDev:enableDev - enableMinification:enableMinification - inlineSourceMap:NO - modulesOnly:NO - runModule:YES]; -} - + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot packagerHost:(NSString *)packagerHost enableDev:(BOOL)enableDev enableMinification:(BOOL)enableMinification inlineSourceMap:(BOOL)inlineSourceMap - { return [self jsBundleURLForBundleRoot:bundleRoot packagerHost:packagerHost @@ -277,24 +261,6 @@ + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot runModule:YES]; } -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - packagerScheme:(NSString *)scheme - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification - modulesOnly:(BOOL)modulesOnly - runModule:(BOOL)runModule -{ - return [self jsBundleURLForBundleRoot:bundleRoot - packagerHost:packagerHost - packagerScheme:nil - enableDev:enableDev - enableMinification:enableMinification - inlineSourceMap:NO - modulesOnly:modulesOnly - runModule:runModule]; -} - + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot packagerHost:(NSString *)packagerHost packagerScheme:(NSString *)scheme