Commit Graph
20 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
Bas Pellis 5321caba98 Allow to specify env files location as absolute path 2017-10-06 14:15:00 -07:00
Pedro Belo 2e36962780 no need for json anymore 2017-10-05 14:57:36 -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
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
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
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 085704a1a7.
2016-11-08 12:52:27 -05:00
Pedro Belo 085704a1a7 clearer 2016-09-13 19:09:41 -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 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