Skip to content

Commit

Permalink
Bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Feb 13, 2021
1 parent 4e37436 commit fc3a16a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want to test the library, please visit the sample app on [Google Play](ht
## Usage
The first step for using this library is, to add it to the dependency section in your project:
```gradle
implementation 'com.chillibits:simplesettings:1.1.0'
implementation 'com.chillibits:simplesettings:1.1.1'
// Required dependencies
implementation 'com.google.android.material:material:<latest-version>'
Expand Down Expand Up @@ -67,6 +67,8 @@ SimpleSettings(this).show {
```
This is especially useful, when you need to generate your preferences at runtime. You can use loops and conditions as you can see above.

*Note: If you want to pass a string / drawable / layout with its resource id, please use the properties with the `Res` suffix. For example: `titleRes = R.string.app_name`.*

*Note: It is not mandatory to pass keys to each preference. In this cases, the library does auto-generate a key by converting the title of each preference to CamelCase.*<br>
**Examples**:
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class MainActivity : AppCompatActivity(), SimpleSettingsConfig.OptionsItemSelect
// Programmatic settings data (especially useful for generating settings options at runtime)
SimpleSettings(this, config).show {
Section {
title = "Section"
titleRes = R.string.app_name
for (i in 1..numberOfSwitchPreferences) {
SwitchPref {
title = "SwitchPreference $i"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

buildscript {
ext.library_version = '1.1.0'
ext.library_version_code = 1100
ext.library_version = '1.1.1'
ext.library_version_code = 1101
ext.kotlin_version = '1.4.30'
repositories {
google()
Expand Down

0 comments on commit fc3a16a

Please sign in to comment.