Skip to content

Commit

Permalink
Update README and bump version tag to 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitozgumus committed Apr 29, 2024
1 parent 718fc8a commit feed72f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ Transformers are responsible for handling `signal`s and `effect`s. They have an

```kotlin
class InputTransformer @Inject constructor() : Transformer() {

private val _inputState = MutableStateFlow(InputUiState()).reflectUpdates()
private val holder = TransmissionDataHolder(InputUiState())

override val signalHandler: SignalHandler = SignalHandler { signal ->
when (signal) {
is InputSignal.InputUpdate -> {
_inputState.update { it.copy(writtenText = signal.value) }
is InputSignal.InputUpdate -> {
holder.update { it.copy(writtenText = signal.value) }
sendEffect(InputEffect.InputUpdate(signal.value))
}
}
Expand All @@ -72,7 +72,7 @@ class InputTransformer @Inject constructor() : Transformer() {
override val effectHandler: EffectHandler = EffectHandler { effect ->
when (effect) {
is ColorPickerEffect.BackgroundColorUpdate -> {
_inputState.update { it.copy(backgroundColor = effect.color) }
holder.update { it.copy(backgroundColor = effect.color) }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion transmission/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ publishing {
create<MavenPublication>("release") {
groupId = "com.trendyol"
artifactId = "transmission"
version = "0.0.3"
version = "0.0.4"
afterEvaluate {
from(components["java"])
}
Expand Down

0 comments on commit feed72f

Please sign in to comment.