Skip to content

Commit

Permalink
🎉 0.9.15
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidsonic committed Oct 19, 2019
1 parent 05176bc commit 5ab5f2a
Show file tree
Hide file tree
Showing 67 changed files with 80 additions and 89 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
fluid-time
==========

[![Maven Central](https://img.shields.io/maven-central/v/com.github.fluidsonic/fluid-time?label=Maven%20Central)](https://search.maven.org/artifact/com.github.fluidsonic/fluid-time)
[![JCenter](https://img.shields.io/bintray/v/bintray/jcenter/fluid-time?label=JCenter)](https://bintray.com/fluidsonic/maven/fluid-time)
[![Maven Central](https://img.shields.io/maven-central/v/io.fluidsonic.time/fluid-time?label=Maven%20Central)](https://search.maven.org/artifact/io.fluidsonic.time/fluid-time)
[![JCenter](https://img.shields.io/bintray/v/fluidsonic/kotlin/time?label=JCenter)](https://bintray.com/fluidsonic/kotlin/time)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.3.50-blue.svg)](https://github.com/JetBrains/kotlin/releases/v1.3.50)
[![#fluid-libraries Slack Channel](https://img.shields.io/badge/slack-%23fluid--libraries-543951.svg?label=Slack)](https://kotlinlang.slack.com/messages/C7UDFSVT2/)

Expand All @@ -17,7 +17,7 @@ Installation
`build.gradle.kts`:
```kotlin
dependencies {
implementation("com.github.fluidsonic:fluid-time:0.9.14")
implementation("io.fluidsonic.time:fluid-time:0.9.15")
}
```

Expand Down
11 changes: 4 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import com.github.fluidsonic.fluid.library.*
import io.fluidsonic.gradle.*

plugins {
id("com.github.fluidsonic.fluid-library") version "0.9.33"
id("io.fluidsonic.gradle") version "1.0.0"
}

fluidLibrary {
name = "fluid-time"
version = "0.9.14"
}
fluidLibrary(name = "time", version = "0.9.15")

fluidLibraryVariant {
description = "multiplatform date & time library"
description = "Multiplatform date & time library"

common {
dependencies {
Expand Down
8 changes: 1 addition & 7 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
pluginManagement {
repositories {
bintray("kotlin/kotlin-eap")
gradlePluginPortal()
jcenter()
bintray("fluidsonic/maven")
maven("https://dl.bintray.com/fluidsonic/kotlin")
}
}

rootProject.name = "fluid-time"

enableFeaturePreview("GRADLE_METADATA")


fun RepositoryHandler.bintray(name: String) =
maven("https://dl.bintray.com/$name")
2 changes: 1 addition & 1 deletion sources/common-test/DayOfWeekTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*


Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/TimeZoneTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*


Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/TimestampTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*


Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/DaysTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/HoursTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/MicrosecondsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/MillisecondsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/MinutesTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/MonthsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/NanosecondsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/PrecisionDurationTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/SecondsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common-test/measurement/YearsTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import com.github.fluidsonic.fluid.time.*
import io.fluidsonic.time.*
import kotlin.test.*
import kotlin.time.*

Expand Down
4 changes: 2 additions & 2 deletions sources/common/Clock.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Deprecated(
message = "renamed to WallClock due to conflict with kotlin.time",
level = DeprecationLevel.WARNING,
replaceWith = ReplaceWith("WallClock", "com.github.fluidsonic.fluid.time.WallClock")
replaceWith = ReplaceWith("WallClock", "io.fluidsonic.time.WallClock")
)
typealias Clock = WallClock
2 changes: 1 addition & 1 deletion sources/common/LocalDate.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlinx.serialization.*
import kotlin.math.*
Expand Down
2 changes: 1 addition & 1 deletion sources/common/LocalDateTime.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlinx.serialization.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common/LocalTime.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlinx.serialization.*

Expand Down
10 changes: 5 additions & 5 deletions sources/common/TimeZone.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import com.github.fluidsonic.fluid.time.PlatformTimeZoneStatic.knownTimeZoneIds
import com.github.fluidsonic.fluid.time.PlatformTimeZoneStatic.systemTimeZoneId
import com.github.fluidsonic.fluid.time.PlatformTimeZoneStatic.timeZoneWithId
import io.fluidsonic.time.PlatformTimeZoneStatic.knownTimeZoneIds
import io.fluidsonic.time.PlatformTimeZoneStatic.systemTimeZoneId
import io.fluidsonic.time.PlatformTimeZoneStatic.timeZoneWithId
import kotlinx.serialization.*
import kotlinx.serialization.internal.*

Expand Down Expand Up @@ -80,7 +80,7 @@ internal fun PlatformTimeZone.toCommon() =
@Serializer(forClass = TimeZone::class)
internal object TimeZoneSerializer : KSerializer<TimeZone> {

override val descriptor = StringDescriptor.withName("com.github.fluidsonic.fluid.time.TimeZone")
override val descriptor = StringDescriptor.withName("io.fluidsonic.time.TimeZone")


override fun deserialize(decoder: Decoder) =
Expand Down
2 changes: 1 addition & 1 deletion sources/common/Timestamp.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlinx.serialization.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common/WallClock.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


interface WallClock {
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/DateTimeComponent.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


interface DateTimeComponent<Component : DateTimeComponent<Component, Measurement>, Measurement : TemporalMeasurement<Measurement>> : Comparable<Component> {
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/DayOfMonth.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
4 changes: 2 additions & 2 deletions sources/common/components/DayOfWeek.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlinx.serialization.*
import kotlinx.serialization.internal.*
Expand Down Expand Up @@ -76,7 +76,7 @@ enum class DayOfWeek : DateTimeComponent<DayOfWeek, Days> {
@Serializer(forClass = DayOfWeek::class)
internal object DayOfWeekSerializer : KSerializer<DayOfWeek> {

override val descriptor = StringDescriptor.withName("com.github.fluidsonic.fluid.time.DayOfWeek")
override val descriptor = StringDescriptor.withName("io.fluidsonic.time.DayOfWeek")


override fun deserialize(decoder: Decoder) =
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/HourOfDay.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/MinuteOfHour.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/MonthOfYear.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


enum class MonthOfYear : DateTimeComponent<MonthOfYear, Months> {
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/NanosecondOfSecond.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/SecondOfMinute.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
2 changes: 1 addition & 1 deletion sources/common/components/Year.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
Expand Down
2 changes: 1 addition & 1 deletion sources/common/extensions/Any.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


internal expect inline fun <T> T.freeze(): T
2 changes: 1 addition & 1 deletion sources/common/measurement/DateMeasurement.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


interface DateMeasurement<Measurement : DateMeasurement<Measurement>> : TemporalMeasurement<Measurement> {
Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Days.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
4 changes: 2 additions & 2 deletions sources/common/measurement/Duration.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.fluidsonic.fluid.time
package io.fluidsonic.time


@Deprecated(
message = "renamed to PrecideDuration due to conflict with kotlin.time",
level = DeprecationLevel.WARNING,
replaceWith = ReplaceWith("PrediceDuration", "com.github.fluidsonic.fluid.time.PreciseDuration")
replaceWith = ReplaceWith("PrediceDuration", "io.fluidsonic.time.PreciseDuration")
)
typealias Duration = PreciseDuration
2 changes: 1 addition & 1 deletion sources/common/measurement/Hours.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Microseconds.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Milliseconds.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Minutes.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Months.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*

Expand Down
2 changes: 1 addition & 1 deletion sources/common/measurement/Nanoseconds.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE")

package com.github.fluidsonic.fluid.time
package io.fluidsonic.time

import kotlin.math.*
import kotlin.time.*
Expand Down
Loading

0 comments on commit 5ab5f2a

Please sign in to comment.