ui: fix a few warnings
authorDa Risk <da_risk@geekorum.com>
Mon, 04 May 2026 23:50:32 -0400
changeset 117 22d79b197676
parent 116 7e40819b3fe2
child 118 ceee12802fbc
ui: fix a few warnings
ui/common/src/androidMain/kotlin/com/geekorum/aboutoss/ui/common/AndroidBrowserLauncher.kt
ui/material2/build.gradle.kts
ui/material3/src/commonMain/kotlin/com/geekorum/aboutoss/ui/material3/AdaptiveOpenSourceDependenciesScreen.kt
--- a/ui/common/src/androidMain/kotlin/com/geekorum/aboutoss/ui/common/AndroidBrowserLauncher.kt	Mon May 04 23:44:20 2026 -0400
+++ b/ui/common/src/androidMain/kotlin/com/geekorum/aboutoss/ui/common/AndroidBrowserLauncher.kt	Mon May 04 23:50:32 2026 -0400
@@ -22,7 +22,6 @@
 package com.geekorum.aboutoss.ui.common
 
 import android.app.Activity
-import android.content.Context
 import androidx.activity.compose.LocalActivity
 import androidx.compose.runtime.Composable
 import androidx.compose.runtime.DisposableEffect
--- a/ui/material2/build.gradle.kts	Mon May 04 23:44:20 2026 -0400
+++ b/ui/material2/build.gradle.kts	Mon May 04 23:50:32 2026 -0400
@@ -19,8 +19,6 @@
  * You should have received a copy of the GNU General Public License
  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
  */
-import org.jetbrains.kotlin.gradle.dsl.JvmTarget
-
 plugins {
     id("com.geekorum.build.conventions.mpp-library-with-android")
     alias(libs.plugins.kotlin.compose)
--- a/ui/material3/src/commonMain/kotlin/com/geekorum/aboutoss/ui/material3/AdaptiveOpenSourceDependenciesScreen.kt	Mon May 04 23:44:20 2026 -0400
+++ b/ui/material3/src/commonMain/kotlin/com/geekorum/aboutoss/ui/material3/AdaptiveOpenSourceDependenciesScreen.kt	Mon May 04 23:50:32 2026 -0400
@@ -458,7 +458,7 @@
         val dependencies = List(20) {
             "Dep $it"
         }
-        val licenses = dependencies.associate { it to "license of $it" }
+        val licenses = dependencies.associateWith { "license of $it" }
         val navigator = rememberListDetailPaneScaffoldNavigator<String>()
         val coroutineScope = rememberCoroutineScope()
         AdaptiveOpenSourceDependenciesScreen(