Skip to content

Commit 949e442

Browse files
committed
Fix: empty kotlinx.interval.datetime project
Since this project was empty, publication to Maven was failing resulting in the badge status showing as failed, even though publication of the main library was successful. I want to keep the project as a placeholder for other potential datetime interval types, e.g., `LocalDate`. Until then, I added a potentially useful type alias placeholder for backwards compatibility.
1 parent 49b4cfd commit 949e442

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package io.github.whathecode.kotlinx.interval.datetime
2+
3+
4+
// In version 2.2.0, `InstantInterval` was moved from this library to the main library.
5+
// This only provides compile-time backwards compatibility for older versions. Not binary compatibility.
6+
typealias InstantInterval = io.github.whathecode.kotlinx.interval.InstantInterval

kotlinx.interval/src/commonMain/kotlin/InstantInterval.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package io.github.whathecode.kotlinx.interval
22

3-
import io.github.whathecode.kotlinx.interval.Interval
4-
import io.github.whathecode.kotlinx.interval.IntervalTypeOperations
53
import kotlin.math.absoluteValue
64
import kotlin.time.Duration
75
import kotlin.time.Instant

0 commit comments

Comments
 (0)