diff --git a/README.md b/README.md index 7d9a5e5..f9842e0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Kotlin](https://img.shields.io/badge/kotlin-1.7.0-blueviolet)](https://kotlinlang.org) [![Ktor](https://img.shields.io/badge/ktor-2.0.2-blue)](https://ktor.io) -[![KDoc](https://img.shields.io/badge/kdoc-1.2.0-green)](https://j4ckofalltrades.github.io/steam-webapi-kt) +[![KDoc](https://img.shields.io/badge/kdoc-1.2.1-green)](https://j4ckofalltrades.github.io/steam-webapi-kt) [![javadoc](https://javadoc.io/badge2/io.github.j4ckofalltrades/steam-webapi-kt/javadoc.svg)](https://javadoc.io/doc/io.github.j4ckofalltrades/steam-webapi-kt) [![codecov](https://codecov.io/gh/j4ckofalltrades/steam-webapi-kt/branch/main/graph/badge.svg?token=2IDBVWIE7T)](https://codecov.io/gh/j4ckofalltrades/steam-webapi-kt) @@ -17,7 +17,7 @@ Steam WebAPI wrapper in Kotlin and Ktor. ```kotlin dependencies { - implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.0") + implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.1") } ``` @@ -25,7 +25,7 @@ dependencies { ```groovy dependencies { - implementation "com.github.j4ckofalltrades:steam-webapi-kt:1.2.0" + implementation "com.github.j4ckofalltrades:steam-webapi-kt:1.2.1" } ``` @@ -35,7 +35,7 @@ dependencies { com.github.j4ckofalltrades steam-webapi-kt - 1.2.0 + 1.2.1 ``` @@ -51,7 +51,7 @@ repositories { } dependencies { - implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.0") + implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.1") } ``` @@ -63,7 +63,7 @@ dependencies { ```kotlin dependencies { - implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.0") + implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.1") } ``` diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 93ec597..d679c4a 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -5,7 +5,7 @@ plugins { kotlin("jvm") version "1.7.0" kotlin("plugin.serialization") version "1.7.0" id("org.jlleitschuh.gradle.ktlint") version "10.2.1" - id("org.jetbrains.dokka") version "1.6.21" + id("org.jetbrains.dokka") version "1.7.10" `java-library` `maven-publish` signing @@ -13,10 +13,10 @@ plugins { } group = "io.github.j4ckofalltrades" -version = "1.2.0" +version = "1.2.1" var kotlinVersion = "1.7.0" -var ktorVersion = "2.0.2" +var ktorVersion = "2.1.1" repositories { mavenCentral() diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/IPlayerServiceWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/IPlayerServiceWrapperTest.kt index b573f71..097d9d3 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/IPlayerServiceWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/IPlayerServiceWrapperTest.kt @@ -33,21 +33,27 @@ internal class IPlayerServiceWrapperTest { GET_RECENTLY_PLAYED_GAMES -> { respond(RECENTLY_PLAYED_GAMES_JSON, headers = responseHeaders) } + GET_OWNED_GAMES -> { respond(OWNED_GAMES_JSON, headers = responseHeaders) } + GET_STEAM_LEVEL -> { respond(PLAYER_LEVEL_JSON, headers = responseHeaders) } + GET_BADGES -> { respond(PLAYER_BADGES_JSON, headers = responseHeaders) } + GET_COMMUNITY_BADGE_PROGRESS -> { respond(PLAYER_BADGE_PROGRESS_JSON, headers = responseHeaders) } + IS_PLAYING_SHARED_GAME -> { respond(PLAYING_SHARED_GAME_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } } diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamAppsWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamAppsWrapperTest.kt index d28509e..951d442 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamAppsWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamAppsWrapperTest.kt @@ -31,9 +31,11 @@ internal class ISteamAppsWrapperTest { GET_APP_LIST -> { respond(APP_LIST_JSON, headers = responseHeaders) } + UP_TO_DATE_CHECK -> { respond(UP_TO_DATE_CHECK_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } } diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamNewsWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamNewsWrapperTest.kt index fe2144f..02a4e96 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamNewsWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamNewsWrapperTest.kt @@ -33,6 +33,7 @@ internal class ISteamNewsWrapperTest { GET_NEWS_FOR_APP -> { respond(NEWS_FOR_APP_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } } diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserStatsWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserStatsWrapperTest.kt index e744470..b78e438 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserStatsWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserStatsWrapperTest.kt @@ -34,21 +34,27 @@ internal class ISteamUserStatsWrapperTest { GET_GLOBAL_ACHIEVEMENT_PERCENTAGES_FOR_APP -> { respond(GLOBAL_ACHIEVEMENTS_JSON, headers = responseHeaders) } + GET_GLOBAL_STATS_FOR_GAME -> { respond(GLOBAL_STATS_FOR_GAME_JSON, headers = responseHeaders) } + GET_NUMBER_OF_CURRENT_PLAYERS -> { respond(CURRENT_PLAYERS_JSON, headers = responseHeaders) } + GET_PLAYER_ACHIEVEMENTS -> { respond(PLAYER_ACHIEVEMENTS_JSON, headers = responseHeaders) } + GET_SCHEMA_FOR_GAME -> { respond(GAME_SCHEMA_JSON, headers = responseHeaders) } + GET_USER_STATS_FOR_GAME -> { respond(GAME_USER_STATS_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } } diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserWrapperTest.kt index ad289b2..60b18fe 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamUserWrapperTest.kt @@ -33,18 +33,23 @@ internal class ISteamUserWrapperTest { GET_FRIEND_LIST -> { respond(FRIEND_LIST_JSON, headers = responseHeaders) } + GET_PLAYER_BANS -> { respond(PLAYER_BANS_JSON, headers = responseHeaders) } + GET_PLAYER_SUMMARIES -> { respond(PLAYER_SUMMARIES_JSON, headers = responseHeaders) } + GET_USER_GROUP_LIST -> { respond(USER_GROUP_LIST_JSON, headers = responseHeaders) } + RESOLVE_VANITY_URL -> { respond(VANITY_URL_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } } diff --git a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamWebApiUtilWrapperTest.kt b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamWebApiUtilWrapperTest.kt index 454c70a..61de54c 100644 --- a/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamWebApiUtilWrapperTest.kt +++ b/lib/src/test/kotlin/io/github/j4ckofalltrades/steam_webapi/wrapper/ISteamWebApiUtilWrapperTest.kt @@ -31,9 +31,11 @@ internal class ISteamWebApiUtilWrapperTest { GET_SERVER_INFO -> { respond(SERVER_INFO_JSON, headers = responseHeaders) } + GET_SUPPORTED_API_LIST -> { respond(SUPPORTED_API_JSON, headers = responseHeaders) } + else -> error("Unhandled ${it.url.encodedPath}") } }