Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-archano committed May 27, 2017
1 parent f2e96b3 commit 589237b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ android {
defaultConfig {
...
buildConfigProperty 'FOO', buildProperties.secrets['foo'] // bar
buildConfigProperty 'A_KEY', buildProperties.secrets['aKey'] // overriddenPreviousValue
buildConfigProperty 'A_NEW_KEY', buildProperties.secrets['aNewKey'] // aNewValue
buildConfigString 'FOO', buildProperties.secrets['foo'] // bar
buildConfigString 'A_KEY', buildProperties.secrets['aKey'] // overriddenPreviousValue
buildConfigString 'A_NEW_KEY', buildProperties.secrets['aNewKey'] // aNewValue
...
}
}
Expand Down Expand Up @@ -174,11 +174,11 @@ When applying the `gradle-build-properties-plugin` to an Android project you get

#### 1. Store a property value into your `BuildConfig`
In any product flavor configuration (or `defaultConfig`) you can use
`buildConfigProperty` as follows:
`buildConfigString` as follows:
```gradle
defaultConfig {
...
buildConfigProperty 'API_KEY', buildProperties.secrets['apiKey']
buildConfigString 'API_KEY', buildProperties.secrets['apiKey']
...
}
```
Expand Down

0 comments on commit 589237b

Please sign in to comment.