Add ouput file to podspec (#454)

Resolves https://github.com/luggit/react-native-config/issues/391
Based on https://github.com/luggit/react-native-config/issues/391#issuecomment-571948199
Add correct output file.
Update input file to use correct root path.
This commit is contained in:
Jacob Caban-Tomski 2020-05-19 11:37:10 -06:00 committed by GitHub
parent 2318d8000b
commit ab3885f183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,8 @@ HOST_PATH="$SRCROOT/../.."
"${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig/BuildDotenvConfig.rb" "$HOST_PATH" "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig"
),
execution_position: :before_compile,
input_files: ['$(SRCROOT)/ReactNativeConfig/BuildDotenvConfig.rb']
input_files: ['$PODS_TARGET_SRCROOT/ios/ReactNativeConfig/BuildDotenvConfig.rb'],
output_files: ['$PODS_TARGET_SRCROOT/ios/ReactNativeConfig/GeneratedDotEnv.m']
}
s.source_files = 'ios/**/*.{h,m}'