First preview of 0.3.0

This commit is contained in:
Alexander Nozik 2023-11-15 16:43:13 +03:00
parent d21d6ebb2a
commit ea7869e39d
7 changed files with 48 additions and 14 deletions

View File

@ -1,4 +1,3 @@
import space.kscience.gradle.isInDevelopment
import space.kscience.gradle.useApache2Licence
import space.kscience.gradle.useSPCTeam
@ -24,15 +23,8 @@ ksciencePublish {
useApache2Licence()
useSPCTeam()
}
github("SciProgCentre", "maps-kt")
space(
if (isInDevelopment) {
"https://maven.pkg.jetbrains.space/spc/p/sci/dev"
} else {
"https://maven.pkg.jetbrains.space/spc/p/sci/maven"
}
)
sonatype()
repository("spc","https://maven.sciprog.center/kscience")
sonatype("https://oss.sonatype.org")
}
subprojects {
@ -47,4 +39,3 @@ subprojects {
readme.readmeTemplate = file("docs/templates/README-TEMPLATE.md")

View File

@ -1,6 +1,6 @@
kotlin.code.style=official
compose.version=1.5.2
compose.version=1.5.10
org.jetbrains.compose.experimental.jscanvas.enabled=true
agp.version=8.1.0
@ -9,4 +9,4 @@ android.enableJetifier=true
org.gradle.jvmargs=-Xmx4096m
toolsVersion=0.14.9-kotlin-1.9.0
toolsVersion=0.15.0-kotlin-1.9.20

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -55,3 +55,7 @@ readme {
id = "osm",
) { "OpenStreetMap tile provider." }
}
//tasks.getByName<Copy>("downloadWix"){
// duplicatesStrategy = DuplicatesStrategy.WARN
//}

View File

@ -0,0 +1,31 @@
plugins {
id("space.kscience.gradle.mpp")
id("org.jetbrains.compose")
`maven-publish`
}
kscience{
js {
binaries.executable()
}
}
kotlin {
sourceSets {
val jsMain by getting {
dependencies {
implementation(projects.mapsKtCompose)
implementation(compose.runtime)
implementation(compose.html.core)
implementation(npm("@types/leaflet", "1.9.6"))
}
}
}
}
compose {
experimental.web{
application{}
}
// web{}
}

View File

@ -0,0 +1,7 @@
import org.jetbrains.skiko.wasm.onWasmReady
fun main() {
onWasmReady {
}
}

View File

@ -56,6 +56,7 @@ include(
":maps-kt-features",
":maps-kt-compose",
":maps-kt-scheme",
// ":maps-kt-leaflet",
":demo:maps",
":demo:scheme",
":demo:polygon-editor",