All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.mikepenz.aboutlibraries.ui.compose.util.Extensions.kt Maven / Gradle / Ivy

package com.mikepenz.aboutlibraries.ui.compose.util

import com.mikepenz.aboutlibraries.entity.Library
import com.mikepenz.aboutlibraries.entity.License

val Library.author: String
    get() = developers.takeIf { it.isNotEmpty() }?.map { it.name }?.joinToString(", ")
        ?: organization?.name ?: ""

val License.htmlReadyLicenseContent: String?
    get() = licenseContent?.replace("\n", "
") val License.strippedLicenseContent: String? get() = licenseContent?.replace("
", "\n")?.replace("
", "\n")




© 2015 - 2024 Weber Informatics LLC | Privacy Policy