Add BUCK configuration for RNTester-iOS (#39757)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39757

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D49817124

fbshipit-source-id: cccbdb324ca5ecc1795189a7c07cfed6aa220020
This commit is contained in:
Christoph Purrer
2023-10-04 21:59:34 -07:00
committed by Facebook GitHub Bot
parent ea72bb2511
commit e1d824ffd8
2 changed files with 9 additions and 2 deletions
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
@class RCTBridge;
+8 -2
View File
@@ -21,6 +21,12 @@
#import <RNTMyNativeViewComponentView.h>
#endif
#if BUNDLE_PATH
NSString *kBundlePath = @"xplat/js/RKJSModules/EntryPoints/RNTesterTestBundle.js";
#else
NSString *kBundlePath = @"js/RNTesterApp.ios";
#endif
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
@@ -47,7 +53,7 @@
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:kBundlePath];
}
- (BOOL)application:(UIApplication *)app
@@ -126,7 +132,7 @@
- (NSURL *)getBundleURL
{
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:kBundlePath];
}
#endif