Skip to content

Commit

Permalink
Add configurations to publish kotlin multiplatform lib
Browse files Browse the repository at this point in the history
  • Loading branch information
extmkv committed Sep 10, 2024
1 parent 4eae42c commit cef7a33
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 27 additions & 16 deletions mvi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import org.jlleitschuh.gradle.ktlint.KtlintExtension

plugins {
Expand All @@ -15,22 +18,26 @@ kotlin {
withJava()
}

iosX64()
iosArm64()
iosSimulatorArm64()

macosX64()
macosArm64()

watchosArm32()
watchosArm64()
watchosDeviceArm64()
watchosSimulatorArm64()
watchosX64()

tvosArm64()
tvosSimulatorArm64()
tvosX64()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
macosX64(),
macosArm64(),
watchosArm32(),
watchosArm64(),
watchosDeviceArm64(),
watchosSimulatorArm64(),
watchosX64(),
tvosArm64(),
tvosSimulatorArm64(),
tvosX64(),
).forEach {
it.binaries.framework {
baseName = "mvi"
isStatic = true
}
}

sourceSets {
commonMain.dependencies {
Expand All @@ -55,3 +62,7 @@ tasks {
useJUnitPlatform()
}
}

configure<MavenPublishBaseExtension> {
configure(KotlinMultiplatform(javadocJar = JavadocJar.Empty()))
}
2 changes: 1 addition & 1 deletion mvi/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
POM_ARTIFACT_ID=mvi
GROUP=com.adidas.mvi
VERSION_CODE=1
VERSION_NAME=1.8.0
VERSION_NAME=1.8.1
POM_NAME=Adidas MVI
POM_DESCRIPTION=Adidas MVI

0 comments on commit cef7a33

Please sign in to comment.