Skip to content

Commit

Permalink
Merge pull request #12 from takahirom/takahirom/add-js-targets/2024-0…
Browse files Browse the repository at this point in the history
…9-20

Add JS targets
  • Loading branch information
takahirom authored Sep 20, 2024
2 parents 683f860 + 28f25b0 commit 4f3ca5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,8 @@ jobs:
strategy:
matrix:
include:
- target: publishIosArm64PublicationToSonatypeRepository --no-configuration-cache
- target: publish --no-configuration-cache
os: macos-latest
- target: publishIosX64PublicationToSonatypeRepository --no-configuration-cache
os: macos-latest
- target: publishAndroidReleasePublicationToSonatypeRepository --no-configuration-cache
os: ubuntu-latest
- target: publishIosSimulatorArm64PublicationToSonatypeRepository --no-configuration-cache
os: macos-latest
- target: publishJvmPublicationToSonatypeRepository --no-configuration-cache
os: ubuntu-latest
# - target: publishLinuxX64PublicationToSonatypeRepository
# os: ubuntu-latest
- target: publishKotlinMultiplatformPublicationToSonatypeRepository --no-configuration-cache
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kotlin.code.style=official
kotlin.js.compiler=ir
#MPP
kotlin.mpp.enableCInteropCommonization=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
#Android
android.useAndroidX=true
android.nonTransitiveRClass=true
20 changes: 16 additions & 4 deletions rin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ plugins {

kotlin {
applyDefaultHierarchyTemplate()

// darwin
iosArm64()
iosSimulatorArm64()
iosX64()

// Java bytecode
jvm()
androidTarget {
publishLibraryVariants("release")
Expand All @@ -18,10 +25,15 @@ kotlin {
}
}
}
iosX64()
iosArm64()
iosSimulatorArm64()
// linuxX64()

// JS
js {
browser()
}
wasmJs {
browser()
}

val compose = extensions.get("compose") as org.jetbrains.compose.ComposeExtension
sourceSets {
val commonMain by getting {
Expand Down

0 comments on commit 4f3ca5c

Please sign in to comment.