Fix gradle error

This commit is contained in:
John Lyon-Smith
2018-03-18 11:39:21 -07:00
parent 77d92f3b7b
commit 2f4cc3e261
7 changed files with 24 additions and 56 deletions

View File

@@ -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