diff --git a/build.gradle b/build.gradle index ffc0b907..d246d4bf 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } ext { - PUBLISH_VERSION = '1.9.2' + PUBLISH_VERSION = libs.versions.sdk SITE_URL = 'https://github.com/wulkanowy/sdk' GIT_URL = 'https://github.com/wulkanowy/sdk.git' diff --git a/sdk/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt b/sdk/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt index fbdc42f3..e1721373 100644 --- a/sdk/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt +++ b/sdk/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt @@ -324,7 +324,7 @@ class Sdk { } suspend fun getCurrentStudent(): RegisterStudent? = withContext(Dispatchers.IO) { - when(mode) { + when (mode) { Mode.SCRAPPER, Mode.HYBRID -> scrapper.getCurrentStudent()?.mapStudent() Mode.HEBE -> throw NotImplementedError("Not available in HEBE mode") } diff --git a/settings.gradle b/settings.gradle index 6c093724..51cc58a3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,7 +7,7 @@ dependencyResolutionManagement { libs { def kotlin = '1.8.20' - version('sdk', '2.0.1-SNAPSHOT') + version('sdk', '2.0.1') version('kotlin', kotlin) version('coroutines', '1.6.4') version('retrofit', '2.9.0')