mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-23 12:28:11 +00:00
Support For Multi Target Applications (#66)
* CONFIGURATION_BUILD_DIR => BUILD_DIR * support for react native 0.40
This commit is contained in:
parent
fe9d1441b9
commit
a1056e175e
@ -829,7 +829,7 @@
|
||||
"$(SRCROOT)/../node_modules/react-native-config/ios/ReactNativeConfig",
|
||||
);
|
||||
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
|
||||
INFOPLIST_PREFIX_HEADER = "${CONFIGURATION_BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
|
||||
INFOPLIST_PREFIX_HEADER = "${BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
|
||||
INFOPLIST_PREPROCESS = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
@ -873,7 +873,7 @@
|
||||
"$(SRCROOT)/../node_modules/react-native-config/ios/ReactNativeConfig",
|
||||
);
|
||||
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
|
||||
INFOPLIST_PREFIX_HEADER = "${CONFIGURATION_BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
|
||||
INFOPLIST_PREFIX_HEADER = "${BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
|
||||
INFOPLIST_PREPROCESS = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
|
@ -151,7 +151,7 @@ $ react-native link react-native-config
|
||||
* Go to your project -> Build Settings -> All
|
||||
* Search for "preprocess"
|
||||
* Set `Preprocess Info.plist File` to `Yes`
|
||||
* Set `Info.plist Preprocessor Prefix File` to `${CONFIGURATION_BUILD_DIR}/GeneratedInfoPlistDotEnv.h`
|
||||
* Set `Info.plist Preprocessor Prefix File` to `${BUILD_DIR}/GeneratedInfoPlistDotEnv.h`
|
||||
* Set `Info.plist Other Preprocessor Flags` to `-traditional`
|
||||
* If you don't see those settings, verify that "All" is selected at the top (instead of "Basic")
|
||||
|
||||
|
@ -47,7 +47,7 @@ File.open(path, "w") { |f| f.puts template }
|
||||
info_plist_defines_objc = dotenv.map { |k, v| %Q(#define __RN_CONFIG_#{k} #{v}) }.join("\n")
|
||||
|
||||
# write it so the Info.plist preprocessor can access it
|
||||
path = File.join(ENV["CONFIGURATION_BUILD_DIR"], "GeneratedInfoPlistDotEnv.h")
|
||||
path = File.join(ENV["BUILD_DIR"], "GeneratedInfoPlistDotEnv.h")
|
||||
File.open(path, "w") { |f| f.puts info_plist_defines_objc }
|
||||
|
||||
if custom_env
|
||||
|
Loading…
x
Reference in New Issue
Block a user