--- a/ui/material3/build.gradle.kts Tue Apr 22 18:48:58 2025 -0400
+++ b/ui/material3/build.gradle.kts Tue Apr 22 19:01:42 2025 -0400
@@ -19,10 +19,13 @@
* 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.android.library")
- kotlin("android")
+ kotlin("multiplatform")
alias(libs.plugins.org.jetbrains.kotlin.compose.compiler)
+ alias(libs.plugins.org.jetbrains.compose.multiplatform)
id("com.geekorum.build.source-license-checker")
`maven-publish`
}
@@ -30,6 +33,44 @@
group = "com.geekorum.aboutoss"
version = "0.1.0"
+kotlin {
+ androidTarget {
+ compilerOptions {
+ jvmTarget.set(JvmTarget.JVM_17)
+ }
+ }
+
+ jvm("desktop")
+
+ listOf(
+ iosX64(),
+ iosArm64(),
+ iosSimulatorArm64(),
+ ).forEach { iosTarget ->
+ iosTarget.binaries.framework {
+ baseName = "aboutoss-ui-material3"
+ isStatic = true
+ }
+ }
+
+ sourceSets {
+ commonMain.dependencies {
+ api(project(":ui:common"))
+ implementation(project(":core"))
+ implementation(compose.material3)
+ implementation(compose.components.resources)
+ implementation(libs.org.jetbrains.androidx.navigation.compose)
+ }
+
+ androidMain.dependencies {
+ api(libs.androidx.activity)
+ implementation(dependencies.platform(libs.androidx.compose.bom))
+ implementation(libs.androidx.activity.compose)
+ }
+ }
+}
+
+
android {
namespace = "com.geekorum.aboutoss.ui.material3"
compileSdk = 35
@@ -55,11 +96,8 @@
}
}
compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
}
buildFeatures {
@@ -75,12 +113,6 @@
}
dependencies {
- api(project(":ui:common"))
- implementation(platform(libs.androidx.compose.bom))
- implementation(libs.androidx.compose.material3)
- implementation(libs.androidx.activity.compose)
- implementation(libs.androidx.navigation.compose)
-
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)