RN 0.40 兼容
This commit is contained in:
parent
212bffe07b
commit
dd693f4cee
@ -374,7 +374,10 @@
|
|||||||
91C5F0091C76ECA90037E727 /* Debug */ = {
|
91C5F0091C76ECA90037E727 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(SRCROOT)/../../react-native/React/**",
|
||||||
|
"$(BUILT_PRODUCTS_DIR)/include/**",
|
||||||
|
);
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
@ -384,7 +387,10 @@
|
|||||||
91C5F00A1C76ECA90037E727 /* Release */ = {
|
91C5F00A1C76ECA90037E727 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(SRCROOT)/../../react-native/React/**",
|
||||||
|
"$(BUILT_PRODUCTS_DIR)/include/**",
|
||||||
|
);
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
|
@ -6,6 +6,15 @@
|
|||||||
// Copyright © 2016 erica. All rights reserved.
|
// Copyright © 2016 erica. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if __has_include(<React/RCTBridge.h>)
|
||||||
|
#import <React/RCTHotUpdate.h>
|
||||||
|
#import <React/RCTHotUpdateDownloader.h>
|
||||||
|
#import "React/RCTEventDispatcher.h"
|
||||||
|
#import <React/RCTConvert.h>
|
||||||
|
#import <React/RCTHotUpdateManager.h>
|
||||||
|
#import <React/RCTLog.h>
|
||||||
|
#else
|
||||||
|
|
||||||
#import "RCTHotUpdate.h"
|
#import "RCTHotUpdate.h"
|
||||||
#import "RCTHotUpdateDownloader.h"
|
#import "RCTHotUpdateDownloader.h"
|
||||||
#import "RCTEventDispatcher.h"
|
#import "RCTEventDispatcher.h"
|
||||||
@ -13,6 +22,8 @@
|
|||||||
#import "RCTHotUpdateManager.h"
|
#import "RCTHotUpdateManager.h"
|
||||||
#import "RCTLog.h"
|
#import "RCTLog.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
static NSString *const keyUpdateInfo = @"REACTNATIVECN_HOTUPDATE_INFO_KEY";
|
static NSString *const keyUpdateInfo = @"REACTNATIVECN_HOTUPDATE_INFO_KEY";
|
||||||
static NSString *const paramPackageVersion = @"packageVersion";
|
static NSString *const paramPackageVersion = @"packageVersion";
|
||||||
|
Loading…
Reference in New Issue
Block a user