Skip to content

Commit

Permalink
Merge branch 'release/1.5.3' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
LDRAlighieri committed Jan 13, 2022
2 parents eb7b1fa + 8e3384d commit e307fbe
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 42 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
# ChangeLog


## Version 1.5.3

* Update: Kotlin modules dependency to v1.6.10.
* Update: Kotlin coroutines modules dependency to v1.6.0.
* Update: Material components dependency to v1.5.0.
* Update: Minor update of other libraries.
* Add: Version catalogs.


## Version 1.5.2

* Update: `BottomNavigationView` extensions replaced by `NavigationBarView` extensions.
Expand Down
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![Corbind](logo.svg)](https://ldralighieri.github.io/Corbind)

[![Maven Central](https://img.shields.io/maven-central/v/ru.ldralighieri.corbind/corbind.svg)](https://search.maven.org/search?q=g:ru.ldralighieri.corbind)
[![Kotlin Version](https://img.shields.io/badge/Kotlin-v1.5.20-blue.svg)](https://kotlinlang.org)
[![Kotlin Coroutines Version](https://img.shields.io/badge/Coroutines-v1.5.0-blue.svg)](https://kotlinlang.org/docs/reference/coroutines-overview.html)
[![Kotlin Version](https://img.shields.io/badge/Kotlin-v1.6.10-blue.svg)](https://kotlinlang.org)
[![Kotlin Coroutines Version](https://img.shields.io/badge/Coroutines-v1.6.0-blue.svg)](https://kotlinlang.org/docs/reference/coroutines-overview.html)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a1c9a1b1d1ce4ca7a201ab93492bf6e0)](https://www.codacy.com/app/LDRAlighieri/Corbind?utm_source=github.com&utm_medium=referral&utm_content=LDRAlighieri/Corbind&utm_campaign=Badge_Grade)
Expand All @@ -25,28 +25,28 @@ This library is for Android applications only. Help you to transform Android UI

Platform bindings:
```groovy
implementation 'ru.ldralighieri.corbind:corbind:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind:1.5.3'
```

AndroidX library bindings:
```groovy
implementation 'ru.ldralighieri.corbind:corbind-activity:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-appcompat:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-core:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-drawerlayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-leanback:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-lifecycle:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-navigation:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-recyclerview:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-slidingpanelayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-swiperefreshlayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-viewpager:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-viewpager2:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-activity:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-appcompat:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-core:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-drawerlayout:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-leanback:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-lifecycle:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-navigation:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-recyclerview:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-slidingpanelayout:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-swiperefreshlayout:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-viewpager:1.5.3'
implementation 'ru.ldralighieri.corbind:corbind-viewpager2:1.5.3'
```

Google 'material' library bindings:
```groovy
implementation 'ru.ldralighieri.corbind:corbind-material:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-material:1.5.3'
```

Snapshot build:
Expand All @@ -56,12 +56,13 @@ repositories {
}
dependencies {
implementation 'ru.ldralighieri.corbind:{module}:1.5.3-SNAPSHOT'
implementation 'ru.ldralighieri.corbind:{module}:1.5.4-SNAPSHOT'
}
```


## List of extensions

You can find a list of extensions in the description of each module:
[corbind]
[corbind-activity]
Expand All @@ -86,6 +87,7 @@ If you need to get a text change events of EditText widget, simple use case with
findViewById<EditText>(R.id.et_name)
.textChanges() // Flow<CharSequence>
.onEach { /* handle text change events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down Expand Up @@ -122,6 +124,7 @@ combine(
transform = { email, password -> email && password }
)
.onEach { bt_login.isEnabled = it }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand All @@ -141,7 +144,7 @@ If I forgot something or you have any ideas what can be added or corrected, plea
## License

```
Copyright 2019-2021 Vladimir Raupov
Copyright 2019-2022 Vladimir Raupov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion corbind-activity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx activity bindings, import `corbind-activity` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-activity:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-activity:1.5.3'
```

## List of extensions
Expand All @@ -19,6 +19,7 @@ Component | Extension | Description
```kotlin
requireActivity().onBackPressedDispatcher.backPresses()
.onEach { /* handle onBackPressed event */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-appcompat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx appcompat bindings, import `corbind-appcompat` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-appcompat:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-appcompat:1.5.3'
```

## List of extensions
Expand All @@ -25,6 +25,7 @@ Component | Extension | Description
```kotlin
toolbar.itemClicks() // Flow<MenuItem>
.onEach { /* handle menu item clicks events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx core bindings, import `corbind-core` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-core:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-core:1.5.3'
```

## List of extensions
Expand All @@ -19,6 +19,7 @@ Component | Extension | Description
```kotlin
scrollView.scrollChangeEvents() // Flow<ViewScrollChangeEvent>
.onEach { /* handle scroll change events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-drawerlayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx drawerlayout bindings, import `corbind-drawerlayout` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-drawerlayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-drawerlayout:1.5.3'
```

## List of extensions
Expand All @@ -21,6 +21,7 @@ drawer.drawerOpens() // Flow<Boolean>
.onEach { isOpen ->
tv_message = "Drawer completely ${ if (isOpen) "open" else "close"}"
}
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-leanback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx leanback bindings, import `corbind-leanback` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-leanback:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-leanback:1.5.3'
```

## List of extensions
Expand All @@ -22,6 +22,7 @@ Component | Extension | Description
search.searchQueryChanges() // Flow<String>
.map { it.toLowerCase(Locale.getDefault()) }
.onEach { query -> filter.updateItems(query) }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-lifecycle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx lifecycle bindings, import `corbind-lifecycle` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-lifecycle:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-lifecycle:1.5.3'
```

## List of extensions
Expand All @@ -20,6 +20,7 @@ Component | Extension | Description
lifecycle.events()
.filter { it == Lifecycle.Event.ON_RESUME }
.onEach { /* handle lifecycle onResume event */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-material/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add material bindings, import `corbind-material` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-material:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-material:1.5.3'
```

## List of extensions
Expand Down Expand Up @@ -58,6 +58,7 @@ chipGroup.checkedChanges() // Flow<Int>
tv_message =
if (it != View.NO_ID) "Chip #$it selected" else "No one сhip selected"
}
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx navigation bindings, import `corbind-navigation` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-navigation:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-navigation:1.5.3'
```

## List of extensions
Expand All @@ -24,6 +24,7 @@ navController.destinationChanges() // Flow<NavDestination>
hideSoftInput()
}
}
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-recyclerview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx recyclerview bindings, import `corbind-recyclerview` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-recyclerview:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-recyclerview:1.5.3'
```

## List of extensions
Expand All @@ -23,6 +23,7 @@ Component | Extension | Description
```kotlin
rv.scrollStateChanges() // Flow<Int>
.onEach { /* handle RecyclerView scroll state change events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-slidingpanelayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx slidingpanelayout bindings, import `corbind-slidingpanelayout` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-slidingpanelayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-slidingpanelayout:1.5.3'
```

## List of extensions
Expand All @@ -22,6 +22,7 @@ slider.panelOpens() // Flow<Boolean>
.onEach { isOpen ->
tv_message = "Panel completely ${ if (isOpen) "open" else "close"}"
}
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-swiperefreshlayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx swiperefreshlayout bindings, import `corbind-swiperefreshlayout` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-swiperefreshlayout:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-swiperefreshlayout:1.5.3'
```

## List of extensions
Expand All @@ -19,6 +19,7 @@ Component | Extension | Description
```kotlin
swipe.refreshes() // Flow<Unit>
.onEach { /* handle refresh events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-viewpager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx viewpager bindings, import `corbind-viewpager` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-viewpager:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-viewpager:1.5.3'
```

## List of extensions
Expand All @@ -21,6 +21,7 @@ Component | Extension | Description
```kotlin
vp_slides.pageSelections() // Flow<Int>
.onEach { tv_message = "Page #$it selected" }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
3 changes: 2 additions & 1 deletion corbind-viewpager2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add androidx viewpager2 bindings, import `corbind-viewpager2` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind-viewpager2:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind-viewpager2:1.5.3'
```

## List of extensions
Expand All @@ -21,6 +21,7 @@ Component | Extension | Description
```kotlin
vp_slides.pageSelections() // Flow<Int>
.onEach { tv_message = "Page #$it selected" }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
6 changes: 5 additions & 1 deletion corbind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To add platform bindings, import `corbind` module:

```groovy
implementation 'ru.ldralighieri.corbind:corbind:1.5.2'
implementation 'ru.ldralighieri.corbind:corbind:1.5.3'
```

## List of extensions
Expand Down Expand Up @@ -99,6 +99,7 @@ combine(
transform = { email, password -> email && password }
)
.onEach { bt_login.isEnabled = it }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand All @@ -113,6 +114,7 @@ flowOf(
)
.flattenMerge()
.onEach { /* handle an authorization event */}
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand All @@ -123,6 +125,7 @@ context
IntentFilter(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED)
)
.onEach { /* handle nfc adapter state changed */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand All @@ -138,6 +141,7 @@ window.decorView.windowInsetsApplyEvents()
insets.isVisible(WindowInsets.Type.statusBars() or WindowInsets.Type.navigationBars())
}
.onEach { /* handle status bars or navigation bars visibility */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktx
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android.minSdk=14

# Maven
GROUP=ru.ldralighieri.corbind
VERSION_NAME=1.5.3-SNAPSHOT
VERSION_NAME=1.5.3

POM_DESCRIPTION=Kotlin Coroutines binding APIs for Android UI widgets from the platform and support libraries.

Expand Down
Loading

0 comments on commit e307fbe

Please sign in to comment.