Fix gradle error
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
#import <ViroReact/VRTBundleURLProvider.h>
|
||||
//#import <ViroReact/VRTBundleURLProvider.h>
|
||||
#import <React/RCTBundleURLProvider.h>
|
||||
#import <React/RCTRootView.h>
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
{
|
||||
NSURL *jsCodeLocation;
|
||||
#ifdef DEBUG
|
||||
VRTBundleURLProvider *bundleProvider = [[VRTBundleURLProvider alloc] init];
|
||||
jsCodeLocation = [bundleProvider jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
||||
|
||||
if (jsCodeLocation == nil) {
|
||||
// VRTBundleURLProvider *bundleProvider = [[VRTBundleURLProvider alloc] init];
|
||||
// jsCodeLocation = [bundleProvider jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
||||
//
|
||||
// if (jsCodeLocation == nil) {
|
||||
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
||||
}
|
||||
// }
|
||||
#else
|
||||
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user