-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement edit monster feature (#223)
* wip * Update monster detail options when changing monster page * wip * Rollback MonsterDaoImpl * Improve insert function to delete by indexes * Implement new Form field types * Add actions form * Adjust forms * Create KMP UUID * Create Damage and condition forms * Add add button * Add strings to strings file
- Loading branch information
1 parent
ae105a9
commit 61b281f
Showing
127 changed files
with
2,744 additions
and
348 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
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
3 changes: 1 addition & 2 deletions
3
...event/src/commonMain/kotlin/br/alexandregpereira/hunter/event/systembar/BottomBarEvent.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
16 changes: 16 additions & 0 deletions
16
...state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/state/StateHolderParams.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,16 @@ | ||
package br.alexandregpereira.hunter.state | ||
|
||
interface StateHolderParams<Params> { | ||
|
||
var value: Params | ||
} | ||
|
||
fun <Params> StateHolderParams(initialParams: Params): StateHolderParams<Params> = | ||
StateHolderParamsImpl(initialParams) | ||
|
||
private class StateHolderParamsImpl<Params>( | ||
initialParams: Params | ||
) : StateHolderParams<Params> { | ||
|
||
override var value: Params = initialParams | ||
} |
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,5 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
} | ||
|
||
configureJvmTargets() |
3 changes: 3 additions & 0 deletions
3
core/uuid/src/commonMain/kotlin/br/alexandregpereira/hunter/uuid/UUID.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,3 @@ | ||
package br.alexandregpereira.hunter.uuid | ||
|
||
expect fun generateUUID(): String |
5 changes: 5 additions & 0 deletions
5
core/uuid/src/iosMain/kotlin/br/alexandregpereira/hunter/uuid/IosUUID.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,5 @@ | ||
package br.alexandregpereira.hunter.uuid | ||
|
||
import platform.Foundation.NSUUID | ||
|
||
actual fun generateUUID(): String = NSUUID().UUIDString() |
5 changes: 5 additions & 0 deletions
5
core/uuid/src/jvmMain/kotlin/br/alexandregpereira/hunter/uuid/JvmUUID.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,5 @@ | ||
package br.alexandregpereira.hunter.uuid | ||
|
||
import java.util.UUID | ||
|
||
actual fun generateUUID(): String = UUID.randomUUID().toString() |
9 changes: 9 additions & 0 deletions
9
domain/app/data/src/commonMain/kotlin/br/alexandregpereira/hunter/data/database/dao/List.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,9 @@ | ||
package br.alexandregpereira.hunter.data.database.dao | ||
|
||
internal fun <T> List<List<T>>.reduceList(): List<T> { | ||
return this.reduceOrNull { acc, list -> acc + list } ?: emptyList() | ||
} | ||
|
||
internal fun <T, R> List<T>.mapAndReduce(transform: T.() -> List<R>): List<R> { | ||
return this.map(transform).reduceList() | ||
} |
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.