Skip to content

Commit 503ec0a

Browse files
committed
Increment to version 4.1.3
1 parent 62c4067 commit 503ec0a

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [4.1.3] - 2024-01-09
7+
8+
### Changed
9+
- Update dependencies
10+
- Various bug fixes
11+
612
## [4.1.2] - 2024-01-03
713

814
### Added

compose/src/commonMain/kotlin/com/blockstream/compose/sheets/DeviceInteractionBottomSheet.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import androidx.compose.ui.Modifier
1616
import androidx.compose.ui.text.style.TextAlign
1717
import androidx.compose.ui.unit.dp
1818
import blockstream_green.common.generated.resources.Res
19-
import blockstream_green.common.generated.resources.generic_device
19+
import blockstream_green.common.generated.resources.blockstream_devices
2020
import blockstream_green.common.generated.resources.id_change
2121
import blockstream_green.common.generated.resources.id_confirm_on_your_device
2222
import blockstream_green.common.generated.resources.id_fee
@@ -121,7 +121,7 @@ fun DeviceInteractionBottomSheet(
121121
Column(horizontalAlignment = Alignment.CenterHorizontally) {
122122

123123
Image(
124-
painter = painterResource(deviceIcon ?: Res.drawable.generic_device),
124+
painter = painterResource(deviceIcon ?: Res.drawable.blockstream_devices),
125125
contentDescription = null,
126126
modifier = Modifier
127127
.align(Alignment.CenterHorizontally)

compose/src/commonMain/kotlin/com/blockstream/compose/utils/SideEffects.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,15 @@ fun HandleSideEffectDialog(
171171
onDismiss: CoroutineScope.() -> Unit = {},
172172
handler: CoroutineScope.(sideEffect: SideEffect) -> Unit = {}
173173
) {
174-
LaunchedEffect(Unit) {
175-
viewModel.sideEffect.onEach {
176-
handler.invoke(this, it)
174+
HandleSideEffect(viewModel, handler = {
175+
handler.invoke(this, it)
177176

178-
when (it) {
179-
is SideEffects.Dismiss -> {
180-
onDismiss()
181-
}
177+
when (it) {
178+
is SideEffects.Dismiss -> {
179+
onDismiss()
182180
}
183-
}.collect()
184-
}
181+
}
182+
})
185183
}
186184

187185

green/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ android {
4040
defaultConfig {
4141
minSdk = libs.versions.androidMinSdk.get().toInt()
4242
targetSdk = libs.versions.androidTargetSdk.get().toInt()
43-
versionCode = 441
44-
versionName = "4.1.2"
43+
versionCode = 442
44+
versionName = "4.1.3"
4545

4646
setProperty("archivesBaseName", "BlockstreamGreen-v$versionName")
4747
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")

0 commit comments

Comments
 (0)