Skip to content

Commit

Permalink
Merge pull request #562 from skydoves/wasm/kmp-wasm
Browse files Browse the repository at this point in the history
Configure wasm supports for landscapist modules containing coil3
  • Loading branch information
skydoves authored Sep 24, 2024
2 parents c71e6ce + 268e74f commit ce13cc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
*/

import com.android.build.gradle.LibraryExtension
import com.skydoves.landscapist.configureAndroidCompose
import com.skydoves.landscapist.configureComposeMultiplatform
import com.skydoves.landscapist.configureKotlinAndroid
import com.skydoves.landscapist.kotlinOptions
import com.skydoves.landscapist.configureComposeMultiplatformWasm
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalogsExtension
Expand All @@ -40,7 +37,7 @@ class ComposeMultiplatformWasmLibraryConventionPlugin : Plugin<Project> {

extensions.configure<LibraryExtension> libraryExtension@{
extensions.configure<KotlinMultiplatformExtension> kmpExtension@{
configureComposeMultiplatform(this@libraryExtension, this@kmpExtension)
configureComposeMultiplatformWasm(this@libraryExtension, this@kmpExtension)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ package com.skydoves.landscapist

import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.kotlin.dsl.invoke
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

/**
* Configure Compose-Multiplatform-specific options
Expand All @@ -37,8 +34,7 @@ internal fun Project.configureComposeMultiplatformWasm(
kotlinMultiplatformExtension.apply {
androidTarget { publishLibraryVariants("release") }
jvm("desktop")

@OptIn(ExperimentalWasmDsl::class)

wasmJs {
browser {
testTask {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kotlin = "2.0.20"
dokka = "1.9.20"
jvmTarget = "11"
nexusPlugin = "0.29.0"
kotlinxCoroutines = "1.8.1"
kotlinxCoroutines = "1.9.0"
kotlinBinaryCompatibility = "0.16.3"
androidGradlePlugin = "8.6.1"
androidxActivity = "1.9.2"
Expand Down

0 comments on commit ce13cc2

Please sign in to comment.