Skip to content

Commit

Permalink
Merge pull request #3 from kyay10/split-seq
Browse files Browse the repository at this point in the history
Use a type-aligned SplitSeq to store the continuation frames
  • Loading branch information
kyay10 authored Oct 12, 2024
2 parents 3639455 + ff052cf commit 486d0ef
Show file tree
Hide file tree
Showing 38 changed files with 1,362 additions and 480 deletions.
18 changes: 8 additions & 10 deletions convention-plugins/src/main/kotlin/module.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,24 @@ publishing {

// Provide artifacts information required by Maven Central
pom {
name.set("Kotlin Multiplatform library template")
description.set("Dummy library to test deployment to Maven Central")
url.set("https://github.com/Kotlin/multiplatform-library-template")
name.set("KonTinuity")
description.set("Provides fully-fledged multishot delimitied continuations in Kotlin with Coroutines")
url.set("https://github.com/kyay10/kontinuity")

licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
name.set("Apache-2.0")
url.set("https://opensource.org/license/apache-2-0")
}
}
developers {
developer {
id.set("JetBrains")
name.set("JetBrains Team")
organization.set("JetBrains")
organizationUrl.set("https://www.jetbrains.com")
id.set("kyay10")
name.set("Youssef Shoaib")
}
}
scm {
url.set("https://github.com/Kotlin/multiplatform-library-template")
url.set("https://github.com/kyay10/kontinuity")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

allprojects {
group = "org.jetbrains.kotlinx.multiplatform-library-template"
group = "io.github.kyay10"
version = "0.0.1"
}

Expand Down
31 changes: 28 additions & 3 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

plugins {
alias(libs.plugins.kotlinMultiplatform)
Expand All @@ -13,13 +13,19 @@ kotlin {
}
explicitApi()
applyDefaultHierarchyTemplate()
jvm()
jvm {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
}
}
js {
browser()
nodejs {
testTask {
// nodeJsArgs += "--prof-sampling-interval=10"
// nodeJsArgs += "--prof"
useMocha {
timeout = "120s"
timeout = "600s"
}
}
}
Expand Down Expand Up @@ -55,4 +61,23 @@ kotlin {
dependsOn(nonJvmMain)
}
}
}

tasks.withType<Test> {
jvmArgs = listOf(
"-XX:+HeapDumpOnOutOfMemoryError",
"-Xmx600m",
// results in lots of thread name setting, which slows tests and throws off profiling, so we turn it off
"-Dkotlinx.coroutines.debug=off",
)
}

publishing {
publications.withType<MavenPublication> {
artifactId = if (name == "kotlinMultiplatform") {
"kontinuity"
} else {
"kontinuity-$name"
}
}
}
8 changes: 7 additions & 1 deletion library/karma.config.d/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
config.set({
browserDisconnectTimeout: 600000,
browserNoActivityTimeout: 600000,
processKillTimeout: 600000,
captureTimeout: 600000,
browserDisconnectTolerance : 3,
pingTimeout: 600000,
client: {
mocha: {
timeout: 120000
timeout: 600000
}
}
})
Loading

0 comments on commit 486d0ef

Please sign in to comment.