react-native-config 1.5.7 → 1.5.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.
@@ -0,0 +1,13 @@
1
+ # Minimal stub CMakeLists for missing codegen outputs.
2
+ # This defines the react_codegen_RNCConfigModule target so native builds
3
+ # that expect generated code can link against a placeholder library.
4
+ cmake_minimum_required(VERSION 3.4.1)
5
+
6
+ # Create a small static library with a trivial source file so CMake has a target to link.
7
+ add_library(react_codegen_RNCConfigModule STATIC "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
8
+
9
+ # Expose the current source dir (if other CMake code expects include dirs)
10
+ target_include_directories(react_codegen_RNCConfigModule PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
11
+
12
+ # Prevent warnings when linked against: set an empty interface
13
+ target_compile_definitions(react_codegen_RNCConfigModule INTERFACE "REACT_NATIVE_CONFIG_STUB")
@@ -0,0 +1,2 @@
1
+ // Auto-generated stub file to satisfy CMake when real codegen output is not present.
2
+ extern "C" void __react_native_config_codegen_stub() {}
package/index.js CHANGED
@@ -34,3 +34,4 @@ if (Turbo) {
34
34
 
35
35
  export const Config = config;
36
36
  export default Config;
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-config",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "Expose config variables to React Native apps",
5
5
  "keywords": [
6
6
  "env",