Skip to content

Commit 69e05a6

Browse files
raienkoraienkotixnet
authored andcommitted
macOS support (#807)
Co-authored-by: raienkotixnet <[email protected]>
1 parent 0eb4830 commit 69e05a6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Config variables for React Native apps
22

3-
Module to expose config variables to your javascript code in React Native, supporting iOS, Android and Windows.
3+
Module to expose config variables to your javascript code in React Native, supporting iOS, Android, macOS and Windows.
44

55
Bring some [12 factor](http://12factor.net/config) love to your mobile apps!
66

@@ -49,7 +49,7 @@ if cocoapods are used in the project then pod has to be installed as well:
4949
(cd ios; pod install)
5050
```
5151

52-
- Manual Link (iOS)
52+
- Manual Link (iOS / macOS)
5353

5454
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
5555
2. Go to `node_modules` ➜ `react-native-config` ➜ `ios` and add `ReactNativeConfig.xcodeproj`
@@ -195,7 +195,7 @@ versionCode project.env.get("VERSION_CODE").toInteger()
195195

196196
Once again, remember variables stored in `.env` are published with your code, so **DO NOT put anything sensitive there like your app `signingConfigs`.**
197197

198-
### iOS
198+
### iOS / macOS
199199

200200
Read variables declared in `.env` from your Obj-C classes like:
201201

@@ -312,7 +312,7 @@ Also note that besides requiring lowercase, the matching is done with `buildFlav
312312

313313
<a name="ios-multi-scheme"></a>
314314

315-
#### iOS
315+
#### iOS / macOS
316316

317317
The basic idea in iOS is to have one scheme per environment file, so you can easily alternate between them.
318318

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-config",
3-
"version": "1.5.3",
3+
"version": "1.5.2",
44
"description": "Expose config variables to React Native apps",
55
"keywords": [
66
"env",

react-native-config.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Pod::Spec.new do |s|
1515
s.license = 'MIT'
1616
s.ios.deployment_target = '9.0'
1717
s.tvos.deployment_target = '9.0'
18+
s.macos.deployment_target = '10.15'
1819
s.visionos.deployment_target = '1.0'
1920

2021
s.source = { git: 'https://github.com/luggit/react-native-config.git', tag: "v#{s.version.to_s}" }

0 commit comments

Comments
 (0)