From 4b523e0aed38baf38d0c1bf20e44a4cae87f9578 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Wed, 10 May 2023 21:14:43 +0200 Subject: [PATCH] Added missing LibSSH reference in the list of open source projects --- src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt | 4 +++- .../com/jetpackduba/gitnuro/ui/dialogs/AppInfoDialog.kt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt b/src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt index 2ffd556..b94a074 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt @@ -4,7 +4,7 @@ object AppConstants { val openSourceProjects = listOf( Project("Apache SSHD", "https://mina.apache.org/sshd-project/", apache__2_0), Project("Google Dagger", "https://dagger.dev/", apache__2_0), - Project("Jetbrains Compose", "https://www.jetbrains.com/lp/compose-mpp/", apache__2_0), + Project("Compose Multiplatform", "https://www.jetbrains.com/lp/compose-mpp/", apache__2_0), Project("JGit", "https://www.eclipse.org/jgit/", edl), Project("JUnit 5", "https://junit.org/junit5/", edl), Project("Kotlin", "https://kotlinlang.org/", apache__2_0), @@ -15,6 +15,7 @@ object AppConstants { ), Project("Mockk", "https://mockk.io/", apache__2_0), Project("Retrofit2", "https://square.github.io/retrofit/", apache__2_0), + Project("LibSSH", "libssh.org/", lgpl__2_1), ) @@ -30,6 +31,7 @@ object AppConstants { private val apache__2_0 = License("Apache 2.0", "https://www.apache.org/licenses/LICENSE-2.0") private val edl = License("EDL", "https://www.eclipse.org/org/documents/edl-v10.php") +private val lgpl__2_1 = License("LGPL-2.1", "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html") data class License( val name: String, diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/AppInfoDialog.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/AppInfoDialog.kt index be716f7..0d00572 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/AppInfoDialog.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/AppInfoDialog.kt @@ -12,6 +12,7 @@ import androidx.compose.ui.unit.dp import com.jetpackduba.gitnuro.AppConstants import com.jetpackduba.gitnuro.AppConstants.openSourceProjects import com.jetpackduba.gitnuro.Project +import com.jetpackduba.gitnuro.extensions.handOnHover import com.jetpackduba.gitnuro.theme.textButtonColors import com.jetpackduba.gitnuro.ui.components.ScrollableLazyColumn import com.jetpackduba.gitnuro.ui.components.TextLink @@ -60,7 +61,8 @@ fun AppInfoDialog( TextButton( modifier = Modifier .padding(top = 16.dp, end = 8.dp) - .align(Alignment.End), + .align(Alignment.End) + .handOnHover(), onClick = onClose, colors = textButtonColors(), ) {