-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,350 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# kotlinx-datetime | ||
|
||
[kotlinx-datetime](https://github.com/Kotlin/kotlinx-datetime) is an official multiplatform library for working with | ||
date and time. %product% provides validation constraints for the various types of this library. | ||
|
||
This article will guide you through the installation before using the available constraints. | ||
|
||
## Installation | ||
|
||
Before using %product% with kotlinx-datetime, you need to add the following dependency to your Gradle script: | ||
|
||
<procedure title="Install %product%'s support library for kotlinx-datetime"> | ||
|
||
<code-block lang="kotlin"> | ||
implementation("dev.nesk.akkurate:akkurate-kotlinx-datetime:%version%") | ||
</code-block> | ||
|
||
</procedure> | ||
|
||
## Available constraints | ||
|
||
<include from="constraints-reference.md" element-id="kotlinx-datetime"></include> |
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,22 @@ | ||
import dev.nesk.akkurate.gradle.IgnoredTarget | ||
import dev.nesk.akkurate.gradle.configureTargets | ||
|
||
plugins { | ||
id("akkurate.kmp-library-conventions") | ||
id("org.jetbrains.dokka") | ||
} | ||
|
||
kotlin { | ||
configureTargets(IgnoredTarget.WASM_WASI) | ||
|
||
sourceSets { | ||
commonMain.dependencies { | ||
api(project(":akkurate-core")) | ||
api(libs.kotlinx.datetime) | ||
} | ||
|
||
commonTest.dependencies { | ||
implementation(project(":akkurate-test")) | ||
} | ||
} | ||
} |
Oops, something went wrong.