249 Commits

Author SHA1 Message Date
David Narbutovich
9fa6ddcee8
[Infrastructure] Reduce npm package size (#523)
**To test:**
```sh
npm pack --dry-run
```


**Diff:**
|   | package size | unpacked size |
|---|---|---|
|Before| 39.9 kB | 166.6 kB |
|After| 37.4 kB | 160.4 kB |

- https://unpkg.com/browse/react-native-config@1.4.1/windows/.gitignore
2020-11-16 11:20:22 -03:00
luancurti
210ff68e13 v1.4.1 2020-11-09 23:53:22 -03:00
luancurti
61a970f6dc fix(read env): add end after if 2020-11-09 23:52:32 -03:00
Yaroslav Admin
f2cea0ccef
Add more details on how to configure step to generate tmp.xcconfig (#503) 2020-11-06 10:23:16 -03:00
Abhishek Ghosh
0c42216725
Fail iOS builds on malformed .env files, add troubleshooting instructions (#516) 2020-11-05 12:09:48 -03:00
luancurti
3db0022ef2 v1.4.0 2020-10-27 13:06:19 -03:00
Wes Johnson
9db04f944d
add important caveat for android gradle env config (#505)
The way matching is done can lead to unexpected results that can be difficult to troubleshoot.
2020-10-22 10:29:32 -03:00
dependabot[bot]
63e0e0c7c0
Bump npm-user-validate from 1.0.0 to 1.0.1 (#510)
Bumps [npm-user-validate](https://github.com/npm/npm-user-validate) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/npm/npm-user-validate/releases)
- [Commits](https://github.com/npm/npm-user-validate/compare/v1.0.0...v1.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-22 10:27:39 -03:00
Denis Oliveira
5629d6560e
Support newest Android Gradle Plugin (#512)
* Update gradle plugin and compliance on dotenv.gradle

* Update gradle plugin from example and minimum gradle support
2020-10-22 10:27:15 -03:00
Bartosz Sosnowski
a9da71d980
Improve Windows support (#508)
This fixes RNW@0.61 support and adds support for autolinking on RNW@0.63
and beyond.
2020-10-14 13:40:17 -03:00
Rémi Gebski
907be7e7c2
docs: escape cp for PROJECT_DIR with spaces (#504) 2020-10-06 09:20:09 -03:00
Harun Smrkovic
2f68b94065
Fix React dependency to enable XCode 12 build (#500) 2020-09-22 22:15:34 -03:00
Bartosz Sosnowski
7ecaec613d
Change the trigger for the Windows CI (#494) 2020-09-16 13:30:45 -03:00
Bartosz Sosnowski
8616212e61
Add Windows support (#492)
Add support for react-native-windows. Update the docs and example and
add an automatic CI test.
2020-09-16 11:28:13 -03:00
dependabot[bot]
447ea07060
Bump node-fetch from 2.6.0 to 2.6.1 (#491)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-12 18:54:38 -03:00
Claudia
500a3339c7
update readme note that autolinking is available (#488) 2020-09-08 09:51:43 -03:00
Sanjay Guruprasad
48ffb6eb92
update readme: add point about accessing variables in info.plist (#480)
* update readme: explain accessing env variables in info.plist

* Update readme: add link to issue about info.plist
2020-08-10 09:40:23 -03:00
booker-dragon
3ed79e4bb6
Fix flavor matching in dotenv.gradle (#381)
`getCurrentFlavor` is returning flavor in lower case but `loadDotEnv` just compare flavor with the key in `envConfigFiles` directly

Example:
If the flavor named as `tempRelease`, `getCurrentFlavor` will return `temprelease` and the comparison will be failed
2020-08-04 09:34:57 -03:00
jjd314
876f581c06
Update README.md, correct iOS build pre-action (#475)
There's a comment as part of the review of pull request #281 by @danielwinkler that the build pre-action for iOS should copy the .env.staging (or whatever) file to ${PROJECT_DIR}/../.env, which turns out to be correct.  This change updates the README to reflect that (and also addresses his other comment about the second reference to /tmp/envfile).

@maharjanaman also mentioned on that pull request a problem with the script, and I believe that was from not having a "Provide build settings from" selection, so I added a comment about that, as well.
2020-08-04 09:33:02 -03:00
luancurti
56e52eab73 v1.3.3 2020-08-03 21:06:59 -03:00
Ben LaVerriere
d8073ed16d
Don't specify buildToolsVersion on Android (#477)
Since we're depending on a version of the Android Gradle plugin higher
than 3, we don't need to specify a buildToolsVersion. Trying to grab
this value from the root project, in a project that also doesn't specify
it, would fail. Since the only reason we were doing the fetch was to
specify our own buildToolsVersion, I think we can safely remove it.
2020-08-01 14:55:09 -03:00
Taylor Johnson
38b87f914d
Add subspec for iOS extensions without React (#471)
* Add subspec for iOS extensions without React

* hard code script_phase to Extension subspec
2020-07-24 23:06:18 -03:00
dependabot[bot]
07cabdc62f
Bump lodash from 4.17.15 to 4.17.19 (#473)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 16:49:02 -03:00
dependabot[bot]
2578fbf270
Bump lodash from 4.17.15 to 4.17.19 in /Example (#472)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 16:46:24 -03:00
luancurti
b3caf52aa8 v1.3.1 2020-07-12 23:43:13 -03:00
luancurti
98e5802db4 Add xcshareddata to git ignore 2020-07-12 23:42:20 -03:00
luancurti
4131b1e582 Add compile sdk version in build gradle 2020-07-12 23:41:08 -03:00
luancurti
eb4b9c5eee
Revert "Added rudimentary system environment variable support. (#284)" (#470)
This reverts commit 7a8fd6253586540eee732989c00c0af6759fb82f.
2020-07-12 23:38:47 -03:00
luancurti
d8f35bce1a v1.3.0 2020-07-12 19:52:04 -03:00
Alex Barry
7a8fd62535
Added rudimentary system environment variable support. (#284) 2020-07-10 21:07:09 -03:00
dependabot[bot]
6a3777d6af
Bump npm from 6.14.2 to 6.14.6 (#468)
Bumps [npm](https://github.com/npm/cli) from 6.14.2 to 6.14.6.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v6.14.2...v6.14.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-07 21:19:56 -03:00
Jose Luis Leon
5decbcaa7b
Fix named import (#466)
The types definitions (`index.d.ts`) explicitly says that the library can be used with a default import or a named import:
```
import Config from "react-native-config";
import { Config } from "react-native-config";
```
However, in the `index.js` file there's no named export, only the default export is available
2020-07-07 17:32:34 -03:00
sckoh
5ef07d1f4c
add support for android buildTypes or productFlavors name with numeric (#334)
Co-authored-by: sckoh <soocheng.koh@ifastfinancial.com>
2020-06-12 23:21:49 -03:00
Jelle Slowack
9740d5faf3
Update readme.md - different env in ios (#281)
The use of /tmp/envfile is a bad idea, especially when there is one machine doing multiple builds on the same machine in parallel (eg. build server). 

IMHO it is much better to copy the correct .env.staging file to the default .env file. In this way we are not modifying system-wide files like /tmp/envfile.

Do you guys agree?

Co-authored-by: luancurti <luancurti@gmail.com>
2020-06-12 22:19:54 -03:00
luancurti
23497bd3ee v1.2.1 2020-06-05 23:02:33 -03:00
Jafar Jabr
293a673cfe
Fix deprecation with gradle 4.0.1 (#459)
fix " No signature of method: com.android.build.gradle.internal.variant.ApplicationVariantData.getVariantConfiguration() is applicable for argument types: () values: []" with gradle 4.0.1
2020-06-01 23:21:45 -03:00
luancurti
45188c7200 v1.2.0 2020-05-26 11:07:54 -03:00
luancurti
cfd2921eac ignore xcode shared data in example 2020-05-26 11:07:30 -03:00
André Costa Lima
218ba852bb
fix: incorrect default env path (#453) 2020-05-26 10:59:13 -03:00
Łukasz Przytuła
49cdadea7f
Fixed regenerating config on each build (#458) 2020-05-26 10:40:20 -03:00
Volodymyr Matsola
7b188c16e7
[ios] App extensions support (#456)
* Add support of ios app extension

* Update documentation
2020-05-22 14:56:31 -03:00
rafaelmaeuer
bc3ca9d261
create GeneratedInfoPlistDotEnv.h for Info.plist preprocessing (#457)
Co-authored-by: Rafael Mäuer <rafaelmaeuer@gmail.com>
2020-05-22 11:07:00 -03:00
SolutiLyon
74ae697443
using root properties for versions (latest rn) (#305)
Co-authored-by: bberthelemy <>
Co-authored-by: Luan Curti <luancurti@gmail.com>
2020-05-19 23:36:57 -03:00
Frieder Bluemle
8942fe9a5a
Update example project to react-native 0.62.2 (#455)
* Update yarn.lock

* Update example react-native to 0.62.2
2020-05-19 23:23:11 -03:00
Yeongsu Han
034b23cea2
Documentation updates for installation instructions (#303)
* update readme

* update readme for manual link

* trim line

* Update README.md

Co-authored-by: luancurti <luancurti@gmail.com>
2020-05-19 15:25:45 -03:00
Frieder Bluemle
6267916d41
Set iOS deployment target to 9.0 (#384) 2020-05-19 15:13:35 -03:00
luancurti
d8d680719f v1.1.0 2020-05-19 15:03:01 -03:00
Jacob Caban-Tomski
ab3885f183
Add ouput file to podspec (#454)
Resolves https://github.com/luggit/react-native-config/issues/391
Based on https://github.com/luggit/react-native-config/issues/391#issuecomment-571948199
Add correct output file.
Update input file to use correct root path.
2020-05-19 14:37:10 -03:00
Daniel Winkler
2318d8000b Update ReadDotEnv.rb
Fix to allow spaces in .env file
2020-04-24 14:17:39 -03:00
Brandon Schlenker
b1e18769b6 Update docs to include Dexguard keep resource rule 2020-04-20 23:42:45 -03:00