--- a/gradle/libs.versions.toml Tue Apr 22 16:26:18 2025 -0400
+++ b/gradle/libs.versions.toml Tue Apr 22 17:48:27 2025 -0400
@@ -21,6 +21,7 @@
[versions]
android-gradle-plugin = "8.9.2"
org-jetbrains-kotlin = "2.1.20"
+org-jetbrains-compose-multiplatform = "1.7.3"
junit = "4.13.2"
androidx-test-ext-junit = "1.2.1"
espresso-core = "3.6.1"
@@ -71,6 +72,7 @@
[plugins]
com-android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" }
com-android-library = { id = "com.android.library", version.ref = "android-gradle-plugin" }
+org-jetbrains-compose-multiplatform = { id = "org.jetbrains.compose", version.ref = "org-jetbrains-compose-multiplatform" }
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "org-jetbrains-kotlin" }
org-jetbrains-kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "org-jetbrains-kotlin" }
google-gms-oss-license = { id = "com.google.android.gms.oss-licenses-plugin", version = "0.10.6" }
--- a/ui/common/build.gradle.kts Tue Apr 22 16:26:18 2025 -0400
+++ b/ui/common/build.gradle.kts Tue Apr 22 17:48:27 2025 -0400
@@ -25,6 +25,8 @@
id("com.android.library")
kotlin("multiplatform")
id("com.geekorum.build.source-license-checker")
+ alias(libs.plugins.org.jetbrains.compose.multiplatform)
+ alias(libs.plugins.org.jetbrains.kotlin.compose.compiler)
`maven-publish`
}
@@ -55,6 +57,8 @@
commonMain.dependencies {
implementation(project(":core"))
api(libs.org.jetbrains.androidx.lifecycle.viewmodel)
+ api(compose.components.resources)
+ implementation(compose.runtime)
}
androidMain.dependencies {
@@ -64,6 +68,10 @@
}
}
+compose.resources {
+ publicResClass = true
+}
+
android {
namespace = "com.geekorum.aboutoss.ui.common"
compileSdk = 35
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/common/src/commonMain/composeResources/values/strings.xml Tue Apr 22 17:48:27 2025 -0400
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ AboutOss is an utility library to retrieve and display
+ opensource licenses in Android applications.
+
+ Copyright (C) 2023-2025 by Frederic-Charles Barthelery.
+
+ This file is part of AboutOss.
+
+ AboutOss is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ AboutOss is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with AboutOss. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<resources>
+ <string name="title_oss_licenses">Opensource Licenses</string>
+</resources>
\ No newline at end of file