-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from enteraname74/develop
v0.10.1
- Loading branch information
Showing
47 changed files
with
521 additions
and
271 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...src/commonMain/kotlin/com/github/enteraname74/soulsearching/coreui/button/SoulCheckBox.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,24 @@ | ||
package com.github.enteraname74.soulsearching.coreui.button | ||
|
||
import androidx.compose.material3.Checkbox | ||
import androidx.compose.material3.CheckboxDefaults | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.graphics.Color | ||
import com.github.enteraname74.soulsearching.coreui.theme.color.SoulSearchingColorTheme | ||
|
||
@Composable | ||
fun SoulCheckBox( | ||
checked: Boolean, | ||
onCheckedChange: (Boolean) -> Unit, | ||
color: Color = SoulSearchingColorTheme.colorScheme.onPrimary, | ||
) { | ||
Checkbox( | ||
checked = checked, | ||
onCheckedChange = onCheckedChange, | ||
colors = CheckboxDefaults.colors( | ||
checkmarkColor = color, | ||
checkedColor = Color.Transparent, | ||
uncheckedColor = color, | ||
) | ||
) | ||
} |
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
7 changes: 7 additions & 0 deletions
7
domain/src/commonMain/kotlin/com/github/enteraname74/domain/model/Artist.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
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
10 changes: 10 additions & 0 deletions
10
...Main/kotlin/com/github/enteraname74/domain/usecase/artist/GetAllArtistsWithNameUseCase.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,10 @@ | ||
package com.github.enteraname74.domain.usecase.artist | ||
|
||
import com.github.enteraname74.domain.repository.ArtistRepository | ||
|
||
class GetAllArtistsWithNameUseCase( | ||
private val artistRepository: ArtistRepository | ||
) { | ||
suspend operator fun invoke(artistsNames: List<String>) = | ||
artistRepository.getAllFromName(artistsNames) | ||
} |
11 changes: 8 additions & 3 deletions
11
...ommonMain/kotlin/com/github/enteraname74/domain/usecase/month/GetMonthMusicListUseCase.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
24 changes: 24 additions & 0 deletions
24
...mmonMain/kotlin/com/github/enteraname74/domain/util/serializer/LocalDateTimeSerializer.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,24 @@ | ||
package com.github.enteraname74.domain.util.serializer | ||
|
||
import kotlinx.serialization.KSerializer | ||
import kotlinx.serialization.descriptors.PrimitiveKind | ||
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor | ||
import kotlinx.serialization.descriptors.SerialDescriptor | ||
import kotlinx.serialization.encoding.Decoder | ||
import kotlinx.serialization.encoding.Encoder | ||
import java.time.LocalDateTime | ||
|
||
object LocalDateTimeSerializer: KSerializer<LocalDateTime> { | ||
override val descriptor: SerialDescriptor = | ||
PrimitiveSerialDescriptor("LocalDateTime", PrimitiveKind.STRING) | ||
|
||
override fun deserialize(decoder: Decoder): LocalDateTime { | ||
val string = decoder.decodeString() | ||
return LocalDateTime.parse(string) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: LocalDateTime) { | ||
val string = value.toString() | ||
encoder.encodeString(string) | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...in/src/commonMain/kotlin/com/github/enteraname74/domain/util/serializer/UUIDSerializer.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,25 @@ | ||
package com.github.enteraname74.domain.util.serializer | ||
|
||
import kotlinx.serialization.KSerializer | ||
import kotlinx.serialization.descriptors.PrimitiveKind | ||
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor | ||
import kotlinx.serialization.descriptors.SerialDescriptor | ||
import kotlinx.serialization.encoding.Decoder | ||
import kotlinx.serialization.encoding.Encoder | ||
import java.util.* | ||
|
||
object UUIDSerializer : KSerializer<UUID> { | ||
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor( | ||
"UUID", | ||
PrimitiveKind.STRING, | ||
) | ||
|
||
override fun deserialize(decoder: Decoder): UUID { | ||
val string = decoder.decodeString() | ||
return UUID.fromString(string) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: UUID) { | ||
encoder.encodeString(value.toString()) | ||
} | ||
} |
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
Oops, something went wrong.