-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Build against SDK35 - Support passing in state for validation - Cleaned up some rules - Added secondary constructors for when embedded in a model - Updated README.MD
- Loading branch information
Showing
9 changed files
with
155 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
library/src/commonMain/kotlin/com/chrisjenx/yakcov/States.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.chrisjenx.yakcov | ||
|
||
import androidx.compose.runtime.Immutable | ||
import androidx.compose.runtime.State | ||
import kotlinx.datetime.LocalDate | ||
|
||
@Immutable | ||
internal class ImmutableBooleanState(override val value: Boolean) : State<Boolean> | ||
|
||
@Immutable | ||
internal class ImmutableIntState(override val value: Int) : State<Int> | ||
|
||
@Immutable | ||
internal class ImmutableNumberState(override val value: Number) : State<Number> | ||
|
||
@Immutable | ||
internal class ImmutableStringState(override val value: String) : State<String> | ||
|
||
@Immutable | ||
internal class ImmutableLocalDateState(override val value: LocalDate) : State<LocalDate> | ||
|
||
@Immutable | ||
internal class ImmutableListState<T>(override val value: List<T>) : State<List<T>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters