Skip to content

Commit 6af7405

Browse files
authored
Merge pull request #1207 from mikepenz/develop
dev -> main
2 parents a95930c + fb6ca94 commit 6af7405

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ This library collects dependency details, including licenses at compile time, an
4141

4242
## Latest releases 🛠
4343

44-
- Compose 1.8.x | Refined Compose UI Design | [v12.2.3](https://github.com/mikepenz/AboutLibraries/tree/12.2.3)
45-
- Compose 1.8.x | Plugin refactor | [v12.1.2](https://github.com/mikepenz/AboutLibraries/tree/12.1.2)
44+
- Compose 1.8.x | Refined Compose UI Design | [v12.2.4](https://github.com/mikepenz/AboutLibraries/tree/12.2.4)
4645
- Compose UI updates | Gradle Plugin refresh | [v12.0.1](https://github.com/mikepenz/AboutLibraries/tree/12.0.1)
4746

4847
## Gradle Plugin

aboutlibraries-core/src/androidMain/kotlin/com/mikepenz/aboutlibraries/util/AndroidParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ actual fun parseData(json: String): Result {
3434
Developer(optString("name"), optString("organisationUrl"))
3535
} ?: emptyList()
3636
val organization = optJSONObject("organization")?.let {
37-
Organization(it.getString("name"), it.optString("url"))
37+
Organization(it.optString("name") ?: "", it.optString("url"))
3838
}
3939
val scm = optJSONObject("scm")?.let {
4040
Scm(

aboutlibraries-core/src/commonMain/kotlin/com/mikepenz/aboutlibraries/entity/Organization.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ import kotlinx.serialization.Serializable
1414
@Serializable
1515
data class Organization(
1616
@SerialName("name") val name: String,
17-
@SerialName("url") val url: String?
17+
@SerialName("url") val url: String?,
1818
)

aboutlibraries-core/src/multiplatformMain/kotlin/com/mikepenz/aboutlibraries/util/MultiplatformParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ actual fun parseData(json: String): Result {
3434
Developer(optString("name"), optString("organisationUrl"))
3535
} ?: emptyList()
3636
val organization = optJSONObject("organization")?.let {
37-
Organization(it.getString("name"), it.optString("url"))
37+
Organization(it.optString("name") ?: "", it.optString("url"))
3838
}
3939
val scm = optJSONObject("scm")?.let {
4040
Scm(

aboutlibraries/src/androidMain/kotlin/com/mikepenz/aboutlibraries/util/SerializeableContainer.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package com.mikepenz.aboutlibraries.util
22

33
import com.mikepenz.aboutlibraries.Libs
4-
import com.mikepenz.aboutlibraries.entity.*
4+
import com.mikepenz.aboutlibraries.entity.Developer
5+
import com.mikepenz.aboutlibraries.entity.Funding
6+
import com.mikepenz.aboutlibraries.entity.Library
7+
import com.mikepenz.aboutlibraries.entity.License
8+
import com.mikepenz.aboutlibraries.entity.Organization
9+
import com.mikepenz.aboutlibraries.entity.Scm
510
import kotlinx.collections.immutable.toImmutableList
611
import kotlinx.collections.immutable.toImmutableSet
712
import java.io.Serializable
@@ -38,7 +43,7 @@ internal fun SerializableLibs.toLibs() = Libs(
3843
lib.description,
3944
lib.website,
4045
lib.developers.map { Developer(it.name, it.organisationUrl) }.toImmutableList(),
41-
lib.organization?.let { Organization(it.name, it.url) },
46+
lib.organization?.let { Organization(it.name ?: "", it.url) },
4247
lib.scm?.let { Scm(it.connection, it.developerConnection, it.url) },
4348
lib.licenses.map {
4449
License(it.name, it.url, it.year, it.spdxId, it.licenseContent, it.hash)
@@ -91,7 +96,7 @@ internal data class SerializableLicense(
9196
) : Serializable
9297

9398
internal data class SerializableOrganization(
94-
val name: String,
99+
val name: String?,
95100
val url: String?,
96101
) : Serializable
97102

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GROUP=com.mikepenz
22

3-
VERSION_NAME=12.2.3
4-
VERSION_CODE=120203
3+
VERSION_NAME=12.2.4
4+
VERSION_CODE=120204
55

66
POM_URL=https://github.com/mikepenz/AboutLibraries
77
POM_SCM_URL=https://github.com/mikepenz/AboutLibraries

0 commit comments

Comments
 (0)