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
|
-
|
|
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
|
|
package/android/build.gradle
CHANGED
package/index.d.ts
CHANGED
|
@@ -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
|
|
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