Skip to content

Commit a7fd27f

Browse files
committed
1.4.7: new KMM, +wasmJs, ios/mac arm/X 64
1 parent 3b389bb commit a7fd27f

12 files changed

Lines changed: 95 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "net.sergeych"
10-
version = "1.4.5-SNAPSHOT"
10+
version = "1.4.7"
1111

1212
val serialization_version = "1.6.3"
1313

src/iosArm64Main/kotlin/net/sergeych/sprintf/ConvertToInstant.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import kotlinx.datetime.Instant
44

55
actual fun ConvertToInstant(t: Any): Instant {
66
// TODO: please add ios-specific conversions here
7-
TODO("Not yet implemented")
7+
throw IllegalArgumentException("can't convert to time instant: $t")
88
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package net.sergeych.mp_logger
2+
3+
internal actual fun ConsoleLoggerSetup() {
4+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package net.sergeych.sprintf
2+
3+
actual fun LocaleSpecificMonthName(monthNumber: Int): String? {
4+
// TODO: Get current locale mpnth name somehow
5+
return null
6+
}
7+
8+
actual fun LocaleSpecificAbbreviatedMonthName(monthNumber: Int): String? {
9+
// TODO extract local month name abbreviations
10+
return null
11+
}
12+
13+
actual fun LocaleSpecificDayName(isoDayNumber: Int): String? {
14+
return null
15+
}
16+
17+
actual fun LocaleSpecificAbbreviatedDayName(isoDayNumber: Int): String? {
18+
return null
19+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package net.sergeych.sprintf
2+
3+
import kotlinx.datetime.Instant
4+
5+
actual fun ConvertToInstant(t: Any): Instant {
6+
throw IllegalArgumentException("can't convert to time instant: $t")
7+
}

src/iosX64Main/kotlin/net/sergeych/sprintf/ConvertToInstant.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import kotlinx.datetime.Instant
44

55
actual fun ConvertToInstant(t: Any): Instant {
66
// TODO: please add ios-specific conversions here
7-
TODO("Not yet implemented")
7+
throw IllegalArgumentException("can't convert to time instant: $t")
88
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package net.sergeych.mp_logger
2+
3+
internal actual fun ConsoleLoggerSetup() {
4+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package net.sergeych.sprintf
2+
3+
actual fun LocaleSpecificMonthName(monthNumber: Int): String? {
4+
// TODO: Get current locale mpnth name somehow
5+
return null
6+
}
7+
8+
actual fun LocaleSpecificAbbreviatedMonthName(monthNumber: Int): String? {
9+
// TODO extract local month name abbreviations
10+
return null
11+
}
12+
13+
actual fun LocaleSpecificDayName(isoDayNumber: Int): String? {
14+
return null
15+
}
16+
17+
actual fun LocaleSpecificAbbreviatedDayName(isoDayNumber: Int): String? {
18+
return null
19+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package net.sergeych.sprintf
2+
3+
import kotlinx.datetime.Instant
4+
5+
actual fun ConvertToInstant(t: Any): Instant {
6+
throw IllegalArgumentException("can't convert to time instant: $t")
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package net.sergeych.mp_logger
2+
3+
internal actual fun ConsoleLoggerSetup() {
4+
}

0 commit comments

Comments
 (0)