diff --git a/build.gradle b/build.gradle index 08c6810a..236bc197 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ ext { moshi = "1.13.0" } -version = "2.0.8" +version = "2.0.9-SNAPSHOT" group = "io.github.wulkanowy" nexusPublishing { diff --git a/sdk-scrapper/api/sdk-scrapper.api b/sdk-scrapper/api/sdk-scrapper.api index 15bed203..60e4bc97 100644 --- a/sdk-scrapper/api/sdk-scrapper.api +++ b/sdk-scrapper/api/sdk-scrapper.api @@ -482,6 +482,7 @@ public final class io/github/wulkanowy/sdk/scrapper/grades/GradeDescriptive { public static final field Companion Lio/github/wulkanowy/sdk/scrapper/grades/GradeDescriptive$Companion; public synthetic fun (IZLjava/lang/String;Ljava/lang/String;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V public fun (ZLjava/lang/String;Ljava/lang/String;)V + public synthetic fun (ZLjava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Z public final fun component2 ()Ljava/lang/String; public final fun component3 ()Ljava/lang/String; diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt index 023b4aa9..1c54ead8 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt @@ -69,5 +69,5 @@ data class GradeDescriptive( val subject: String, @SerialName("Opis") - val description: String, + val description: String? = "", ) diff --git a/sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/GradesMapper.kt b/sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/GradesMapper.kt index 986a0f0e..2ae0bd4a 100644 --- a/sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/GradesMapper.kt +++ b/sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/GradesMapper.kt @@ -56,7 +56,7 @@ internal fun ScrapperGrades.mapGrades() = Grades( internal fun List.mapDescriptive() = map { GradeDescriptive( subject = it.subject, - description = it.description, + description = it.description.orEmpty(), ) }