This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
-
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.
feat: Add
ExperimentalKwikApi
annotation (#224)
- Loading branch information
Showing
47 changed files
with
235 additions
and
220 deletions.
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
15 changes: 15 additions & 0 deletions
15
api/src/commonMain/kotlin/com/github/jcornaz/kwik/ExperimentalKwikApi.kt
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,15 @@ | ||
package com.github.jcornaz.kwik | ||
|
||
/** | ||
* This annotation denotes Kwik's experimental API. It might not be complete, | ||
* and there is a good change that breaking changes will be made in the future. | ||
*/ | ||
@RequiresOptIn( | ||
""" | ||
This is highly experimental API. It might not be complete, | ||
and there is a good change that breaking changes will be made in the future. | ||
""", | ||
level = RequiresOptIn.Level.WARNING | ||
) | ||
@Retention(AnnotationRetention.BINARY) | ||
annotation class ExperimentalKwikApi |
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,13 @@ | ||
Experimental API | ||
================ | ||
|
||
After using this library for a while, I started to work on a new iteration of the API. | ||
Although being only a draft, the goal and design intent of the new API has been detailed on this roadmap_. | ||
|
||
The whole kwik library should be considered as experimental. But this new API is even more bleeding edge, far from complete and | ||
very likely to receive breaking changes. That is why this new API is marked with the ``@ExperimentalKwikApi`` annotation. | ||
|
||
If you want to try it out, you can opt-in with ``@OptIn(ExperimentalApi``. | ||
Alternatively you can or add ``-Xopt-in=com.github.jcornaz.kwik.ExperimentalKwiKApi`` to your compiler flags. | ||
|
||
.. _roadmap: https://github.com/jcornaz/kwik/blob/main/ROADMAP.md |
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
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
Oops, something went wrong.