Commit Graph

170 Commits

Author SHA1 Message Date
flexsurfer bd06169591
s.dependency
s.dependency
2021-01-19 11:50:54 +01:00
flexsurfer 3dbe2939e7
xcode12
xcode12
2021-01-08 12:24:38 +01:00
Jakub Sokołowski 248bb4454b
upgrade gradle plugin to 1.3.1
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-05-03 19:28:31 +02:00
Jakub Sokołowski b0b8bb4ac4
gradle: replace deprecated compile with implementation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-05-03 19:16:33 +02:00
Max Risuhin e705dac8ab
Correct default env file relative path
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
2018-09-04 23:14:48 +03:00
Max Risuhin a20aa97f6e
Configure relative env file path on compile time
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
2018-09-04 22:12:34 +03:00
Max Risuhin 99e60ac469
Trim string values from config file 2018-01-21 14:10:20 +02:00
Max Risuhin 3370b3479d
Desktop platform support 2017-12-25 16:34:37 +02:00
Phillip Baker 9b854b7657 Add README note on testing with jest (#200)
From https://github.com/luggit/react-native-config/issues/24#issuecomment-309836788
2017-12-19 11:51:59 -08:00
Pedro Belo 3a38b572d1 v0.11.2 2017-12-08 17:36:39 -08:00
Pedro Belo 195a209c9c escape strings in the env set from Gradle
so FOO=a"b works as expected. FOO="ab" still works because we're
stripping quotes around the values
2017-12-08 17:34:56 -08:00
Anson Yao 7f59748c0b Fix a bug such that different .env can be read according to android flavour (#195) 2017-12-08 17:34:35 -08:00
Pedro Belo 74a6c8df09 make android setup instructions more prominent 2017-12-04 23:47:58 -08:00
Pedro Belo 0214876a64 fix description, the __RN_CONFIG is a prefix
fix #177
2017-12-04 22:57:14 -08:00
Pedro Belo f3bb9ec9f8 v0.11.1 2017-12-04 22:15:35 -08:00
Pedro Belo 4b741517ac better docs on how to use diff config on release
fix #63
2017-12-04 22:13:14 -08:00
Pedro Belo 82ee9adad5 fix dotenv.gradle, keep loading the release name from gradle 2017-12-04 22:12:39 -08:00
Pedro Belo 0993258ab6 do this android setup too 2017-12-04 22:12:07 -08:00
Pedro Belo 59812c853f v0.11.0 2017-12-04 21:38:38 -08:00
Pedro Belo 4b5225b458 fix urls 2017-12-04 21:36:09 -08:00
Pedro Belo ca543d38be readme updates, update instructions for yarn/xcode 9 2017-12-04 21:34:52 -08:00
Pedro Belo 4ad4b0c262 bump example app to 0.50.4 2017-12-04 21:34:37 -08:00
Emidio Croci d227792f5e Fixed config read always from default .env file (#185) 2017-12-04 15:56:47 -08:00
Thanh Le 3ffdab0c13 Add Typescript type definition file (#186) 2017-12-04 15:55:22 -08:00
Samer Murad aceb7b4de0 Updated dotenv.gradle (#191)
Added an option to check for the "ENVFILE" var in the System properties, simply to allow more flexibility when running react-native-config directly from android studio with flavors
2017-12-04 15:50:35 -08:00
Pedro Belo 10772a259a tweak readme on how to run against diff envs 2017-12-04 15:40:54 -08:00
Pedro Belo 90c22f7350 simplify 2017-12-04 15:33:01 -08:00
Pedro Belo eb15b7ca71 note about casting configs in gradle
fix #112
2017-12-04 15:27:13 -08:00
Pedro Belo 5a3f72ae1c emphasis 2017-12-04 15:26:53 -08:00
Pedro Belo afe5228ddf v0.10.0 2017-11-16 11:52:34 -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
Pedro Belo b9d9571ba1 v0.9.1 2017-11-13 15:44:13 -08:00
Moe e0c2ffe813 Allow utf-8 charactor in config value (#179) 2017-11-13 15:41:58 -08:00
Pedro Belo 2dcd3a5848 v0.9.0 2017-10-17 09:55:58 -07:00
Jonathan Kim 119353630c Add `requiresMainQueueSetup` to fix warning in RN 0.49+ (#172) 2017-10-17 09:53:42 -07:00
Jonathan Kim 8edb7f5ab2 Added CHANGELOG (#171) 2017-10-17 09:53:21 -07:00
Pedro Belo 0b1b91d078 v0.8.1 2017-10-06 14:22:15 -07:00
Bas Pellis 5321caba98 Allow to specify env files location as absolute path 2017-10-06 14:15:00 -07:00
Pedro Belo e82ade149b v0.8.0 2017-10-05 15:01:05 -07:00
Martin 5e3aa91884 fixed breaking change for RN 0.48 (#164) 2017-10-05 15:00:37 -07:00
Pedro Belo 52733cd5cf v0.7.2 2017-10-05 14:58:00 -07:00
Pedro Belo 2e36962780 no need for json anymore 2017-10-05 14:57:36 -07:00
Pedro Belo bf3a97fa7e v0.7.1 2017-09-26 15:15:03 -07:00
Allan Wright IV 9579b36811 Fixed iOS 8.0 support issue (#163)
Fixed #65
2017-09-26 15:14:38 -07:00
Pedro Belo e354279a6a v0.7.0 2017-09-25 12:06:20 -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
Assem-Hafez a0fa05a51f update cmd command (#147)
The cmd command have a space between the ENVFILE and the value so the ENVFILE doesn't change.
2017-09-25 12:04:59 -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
Filip Kinský 629614bf2c fixed Android dotenv.gradle quotes matching (#151)
Fixed the regex - it caused syntax error in generated BuildConfig.java file when quotes were used in the `.env` file. `export VAR1="aa bb cc"` caused
```
/BuildConfig.java:15: error: unclosed string literal
  public static final String VAR1 = "aa bb cc"";
                                              ^
1 error
```
2017-09-25 12:03:57 -07:00