35 Commits

Author SHA1 Message Date
Emidio Croci
d227792f5e Fixed config read always from default .env file (#185) 2017-12-04 15:56:47 -08:00
Henry Chan
be8d77e501 dotenv.gradle: Set environment variables per variant buildConfig task, with .env fallback (#180)
* dotenv.gradle: Environment variables are set per variant task

* Syncing readDotEnv with latest version

* Updating variable names

* Load default .env file

* BuildDotnevConfig.ruby: allow for default .env values
2017-11-16 11:48:57 -08:00
Moe
e0c2ffe813 Allow utf-8 charactor in config value (#179) 2017-11-13 15:41:58 -08:00
Jonathan Kim
119353630c Add requiresMainQueueSetup to fix warning in RN 0.49+ (#172) 2017-10-17 09:53:42 -07:00
Bas Pellis
5321caba98 Allow to specify env files location as absolute path 2017-10-06 14:15:00 -07:00
Martin
5e3aa91884 fixed breaking change for RN 0.48 (#164) 2017-10-05 15:00:37 -07:00
Pedro Belo
2e36962780 no need for json anymore 2017-10-05 14:57:36 -07:00
Allan Wright IV
9579b36811 Fixed iOS 8.0 support issue (#163)
Fixed #65
2017-09-26 15:14:38 -07:00
Chaitanya Bhagvan
accfef9b8a Add Pods Public Header path to HEADER_SEARCH_PATHS (#140)
When react-native is installed using cocoapods xcode cannot find react headers for react-native-config. This PR adds to HEADER_SEARCH_PATHS to look at header files in the Pods. 
Since Cocoapods does not allow build scripts it's still a good idea to link react-native-config with react-native link and add support for projects that do use react native via cocoapods
2017-09-25 12:06:12 -07:00
mahmoud ™
55bc85decf Add support for ENVFILE to iOS (#145) 2017-09-25 12:05:20 -07:00
Phillip Baker
d7bf157d01 Update regex examples to clarify treatment of spaces (#149)
```
# Double quotes contain the resulting values (to signify whitespace)
DOT_ENV=dotenv # => "dotenv"
#DOTENV=dotenv # => no match
DOT_ENV= asdf asf # => " asdf asf "
DOTENV='dot env' # => "dot env"
DOTENV="dot env" # => "dot env"
DOT_ENV='dotenv' # => "dotenv"
DOT_ENV="DotEnv" # => "DotEnv"
DOTENV="Dot\nEnv" # => "Dot\nEnv"
DOTENV="{"Dot":"Env"}" # => "{\"Dot\":\"Env\"}"
export DOTENV="dotenv" # => "dotenv"
DOTENV ="dot env" # => no match
DOTENV= "dot env" # => "dot env"
DOTENV = "dot env" # => no match
```
2017-09-25 12:04:39 -07:00
Nick Warner
a141d87274 Change import priority of React/RCTBridgeModule.h (#155) 2017-09-25 12:02:49 -07:00
Ben Yorke
46b7f9401c Allow exported variables in .env (#116) 2017-06-20 17:14:38 -07:00
David Urbane
5cd47f9c1f Change dotenv pattern to support lowercase and numbers. (#108) 2017-05-02 17:27:11 -07:00
Pedro Belo
d673000a0a keep quotes around the value optional for now
see:
https://github.com/luggit/react-native-config/pull/98#issuecomment-297559873
2017-04-26 15:29:56 -07:00
Christian Brevik
17557df295 Add input file to run script to fix build problems on server (#73)
* Add input file to run script

* Add conditional import for 0.40
2017-04-26 15:01:16 -07:00
Anders Back
a1056e175e Support For Multi Target Applications (#66)
* CONFIGURATION_BUILD_DIR => BUILD_DIR

* support for react native 0.40
2017-04-26 15:00:07 -07:00
Carl Thuringer
f8d9a7e714 Support Dotenv with quotes and nested quotes (#98)
* Support Dotenv with quotes and nested quotes

* Handle case of empty value

* Handle empty lines
2017-04-26 14:58:25 -07:00
Pedro Belo
80ca5dfe36 bringing rn 0.40 compat 2017-02-01 11:02:15 -08:00
Pedro Belo
76204343fc revert rn 0.4 compat, leaving this for 0.3 2017-02-01 11:01:01 -08:00
Stuart Lee
c4196e0f2c update ios headers for react native 0.40 2017-01-11 16:23:15 +00:00
mlanter
1b834b99d9 [info.plist] Add support for using constants in the Info.plist (#53)
* [info.plist]  Add support for using constants in the Info.plist

* Instructions for Info.plist

* Update README.md
2016-12-06 17:44:24 -08:00
Kevin Cooper
7f63eb9488 Fix inconsistency in file path when using /tmp/envfile
This partially reverts 085704a1a7f3580bf773f19f85a0914450db3a3f.
2016-11-08 12:52:27 -05:00
Pedro Belo
085704a1a7 clearer 2016-09-13 19:09:41 -07:00
Pedro Belo
da6ff2a878 expose config vars for iOS classes too 2016-09-13 19:00:17 -07:00
Pedro Belo
493727d8e9 ios support for comments, tweak error behavior to match Android 2016-09-13 18:49:57 -07:00
Steve Kellock
e04cc0d71e Prevents dying in a fire on iOS with a missing .env file. 2016-08-28 21:03:52 -04:00
Pedro Belo
57ea6c3a03 take custom env for ios in a file :{ /tmp/envfile
not great but dunno how to do it otherwise yet
2016-03-03 16:34:45 -08:00
Pedro Belo
e430e2acbf hide our project schemes 2016-03-03 16:07:58 -08:00
Daniel Weinmann
2b2db8d713 Fixes path for BuildDotenvConfig.ruby on project.pbxproj 2016-03-02 03:32:02 -03:00
Pedro Belo
4801f14806 fix dotenv in ios 2016-02-23 15:50:03 -08:00
Pedro Belo
15ad671b1f try to persist the config in .env on build, and load in the app
this is not working atm, can't seem to read that json on runtime
2016-02-22 19:59:49 -08:00
Pedro Belo
3edf2f8f1c setup example app to consume ios stub 2016-02-22 17:37:50 -08:00
Pedro Belo
67da50e3c5 remove breakpoints 2016-02-22 17:28:49 -08:00
Pedro Belo
c2253b3b13 add stub ios implementation 2016-02-22 17:15:39 -08:00