react-native-config 1.4.5 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -197,7 +197,7 @@ std::string api_key = ReactNativeConfig::API_KEY;
197
197
 
198
198
  Similarly, you can access those values in other project by adding reference to the `RNCConfig` as described in the manual linking section.
199
199
 
200
- #### Availability in Build settings and Info.plist
200
+ ### Availability in Build settings and Info.plist
201
201
 
202
202
  With one extra step environment values can be exposed to "Info.plist" and Build settings in the native project.
203
203
 
@@ -1,7 +1,7 @@
1
1
  buildscript {
2
2
  repositories {
3
+ mavenCentral()
3
4
  google()
4
- jcenter()
5
5
  }
6
6
 
7
7
  dependencies {
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export interface NativeConfig {
2
- [name: string]: string
2
+ [name: string]: string | undefined
3
3
  }
4
4
  export const Config: NativeConfig
5
5
  export default Config
@@ -26,7 +26,7 @@ path = File.join(m_output_path, 'GeneratedDotEnv.m')
26
26
  File.open(path, 'w') { |f| f.puts template }
27
27
 
28
28
  # create header file with defines for the Info.plist preprocessor
29
- info_plist_defines_objc = dotenv.map { |k, v| %Q(#define RNC_#{k} #{v}) }.join("\n")
29
+ info_plist_defines_objc = dotenv.map { |k, v| %Q(#define #{k} #{v}) }.join("\n")
30
30
 
31
31
  # write it so the Info.plist preprocessor can access it
32
32
  path = File.join(ENV["BUILD_DIR"], "GeneratedInfoPlistDotEnv.h")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-config",
3
- "version": "1.4.5",
3
+ "version": "1.4.8",
4
4
  "description": "Expose config variables to React Native apps",
5
5
  "keywords": [
6
6
  "env",
@@ -19,6 +19,7 @@ Pod::Spec.new do |s|
19
19
  s.source = { git: 'https://github.com/luggit/react-native-config.git', tag: "v#{s.version.to_s}" }
20
20
  s.script_phase = {
21
21
  name: 'Config codegen',
22
+ alwaysOutOfDate: 1,
22
23
  script: %(
23
24
  set -ex
24
25
  HOST_PATH="$SRCROOT/../.."