From 17557df2953127bd468364bfd203b8c1f4f10c0e Mon Sep 17 00:00:00 2001 From: Christian Brevik Date: Thu, 27 Apr 2017 00:01:16 +0200 Subject: [PATCH] Add input file to run script to fix build problems on server (#73) * Add input file to run script * Add conditional import for 0.40 --- ios/ReactNativeConfig.xcodeproj/project.pbxproj | 3 ++- ios/ReactNativeConfig/ReactNativeConfig.h | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ios/ReactNativeConfig.xcodeproj/project.pbxproj b/ios/ReactNativeConfig.xcodeproj/project.pbxproj index b832b57..8379117 100644 --- a/ios/ReactNativeConfig.xcodeproj/project.pbxproj +++ b/ios/ReactNativeConfig.xcodeproj/project.pbxproj @@ -138,12 +138,13 @@ files = ( ); inputPaths = ( + "$(SRCROOT)/ReactNativeConfig/BuildDotenvConfig.ruby", ); outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "./ReactNativeConfig/BuildDotenvConfig.ruby"; + shellScript = ./ReactNativeConfig/BuildDotenvConfig.ruby; }; /* End PBXShellScriptBuildPhase section */ diff --git a/ios/ReactNativeConfig/ReactNativeConfig.h b/ios/ReactNativeConfig/ReactNativeConfig.h index 3b5b3de..82aef60 100644 --- a/ios/ReactNativeConfig/ReactNativeConfig.h +++ b/ios/ReactNativeConfig/ReactNativeConfig.h @@ -1,4 +1,8 @@ +#if __has_include("RCTBridgeModule.h") +#import "RCTBridgeModule.h" +#else #import +#endif @interface ReactNativeConfig : NSObject