generated from y9vad9/kotlin-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
19 changed files
with
329 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-rc-2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
14 changes: 12 additions & 2 deletions
14
sdk/src/commonMain/kotlin/io/timemates/sdk/common/annotations/ExperimentalApi.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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
package io.timemates.sdk.common.annotations | ||
|
||
@RequiresOptIn(message = "Given Sdk API is experimental", level = RequiresOptIn.Level.WARNING) | ||
public annotation class ExperimentalApi | ||
/** | ||
* Annotation used to indicate that a given SDK API is experimental. | ||
*/ | ||
@RequiresOptIn(message = "Given SDK API is experimental", level = RequiresOptIn.Level.ERROR) | ||
public annotation class ExperimentalApi(val status: ApiStatus) | ||
|
||
public enum class ApiStatus { | ||
PROTOTYPE, | ||
IN_PROGRESS, | ||
NEEDS_REVISION, | ||
STABLE_CANDIDATE, | ||
} |
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
8 changes: 8 additions & 0 deletions
8
sdk/src/commonMain/kotlin/io/timemates/sdk/common/pagination/Page.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,8 @@ | ||
package io.timemates.sdk.common.pagination | ||
|
||
import io.timemates.sdk.common.types.TimeMatesEntity | ||
|
||
public data class Page<T : TimeMatesEntity>( | ||
val results: List<T>, | ||
val nextPageToken: PageToken?, | ||
) : TimeMatesEntity() |
9 changes: 8 additions & 1 deletion
9
...mates/sdk/common/types/value/PageToken.kt → ...emates/sdk/common/pagination/PageToken.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
Oops, something went wrong.