Skip to content

Commit

Permalink
release: 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Raph committed Aug 26, 2024
1 parent 03dba8d commit 251b36b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lorraine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
alias(libs.plugins.publish)
}

val lorraineVersion = "0.1.0"
val lorraineVersion = "0.1.1"

group = "io.github.dottttt.lorraine"
version = lorraineVersion
Expand Down
2 changes: 1 addition & 1 deletion lorraine/lorraine.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'lorraine'
spec.version = '0.1.0'
spec.version = '0.1.1'
spec.homepage = 'NO_HOMEPAGE'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down
20 changes: 18 additions & 2 deletions lorraine/src/commonMain/kotlin/io/dot/lorraine/work/Data.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
package io.dot.lorraine.work

data class Data internal constructor(
val map: Map<String, Any?>
)
internal val map: Map<String, Any?>
) {

fun getInt(key: String) = map[key]?.toString()
?.toIntOrNull()

fun getLong(key: String) = map[key]?.toString()
?.toLongOrNull()

fun getFloat(key: String) = map[key]?.toString()
?.toFloatOrNull()

fun getDouble(key: String) = map[key]?.toString()
?.toDoubleOrNull()

fun getString(key: String) = map[key]?.toString()

}

fun dataOf(vararg arg: Pair<String, Any?>): Data {
val definition = DataDefinition()
Expand Down

0 comments on commit 251b36b

Please sign in to comment.