-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added high arity for arrow-core.api functions (#3360)
- Loading branch information
Showing
18 changed files
with
3,867 additions
and
7 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
arrow-libs/core/arrow-core-high-arity/api/arrow-core-high-arity.api
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@file:Suppress("DSL_SCOPE_VIOLATION") | ||
|
||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
id(libs.plugins.kotlin.multiplatform.get().pluginId) | ||
alias(libs.plugins.arrowGradleConfig.kotlin) | ||
alias(libs.plugins.arrowGradleConfig.publish) | ||
alias(libs.plugins.kotlinx.kover) | ||
alias(libs.plugins.kotest.multiplatform) | ||
alias(libs.plugins.spotless) | ||
} | ||
|
||
spotless { | ||
kotlin { | ||
ktlint().editorConfigOverride(mapOf("ktlint_standard_filename" to "disabled")) | ||
} | ||
} | ||
|
||
apply(from = property("ANIMALSNIFFER_MPP")) | ||
|
||
kotlin { | ||
sourceSets { | ||
commonMain { | ||
dependencies { | ||
api(projects.arrowCore) | ||
api(projects.arrowAtomic) | ||
api(projects.arrowContinuations) | ||
api(projects.arrowAnnotations) | ||
api(libs.kotlin.stdlibCommon) | ||
} | ||
} | ||
|
||
commonTest { | ||
dependencies { | ||
implementation(projects.arrowFxCoroutines) | ||
implementation(libs.kotest.frameworkEngine) | ||
implementation(libs.kotest.assertionsCore) | ||
implementation(libs.kotest.property) | ||
} | ||
} | ||
|
||
jvmTest { | ||
dependencies { | ||
runtimeOnly(libs.kotest.runnerJUnit5) | ||
} | ||
} | ||
|
||
jvmMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlib) | ||
} | ||
} | ||
|
||
jsMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibJS) | ||
} | ||
} | ||
} | ||
|
||
jvm { | ||
tasks.jvmJar { | ||
manifest { | ||
attributes["Automatic-Module-Name"] = "arrow.core-high-arity" | ||
} | ||
} | ||
} | ||
} | ||
|
||
// enables context receivers for Jvm Tests | ||
tasks.named<KotlinCompile>("compileTestKotlinJvm") { | ||
kotlinOptions.freeCompilerArgs += "-Xcontext-receivers" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Maven publishing configuration | ||
pom.name=Arrow Core High Arity | ||
# Build configuration | ||
kapt.incremental.apt=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
knit.package=arrow.core.examples | ||
knit.dir=src/jvmTest/kotlin/examples/ | ||
|
||
test.package=arrow.core.examples.test | ||
test.dir=src/jvmTest/kotlin/examples/test/ | ||
test.template=knit.test.template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file was automatically generated from ${file.name} by Knit tool. Do not edit. | ||
package ${test.package} | ||
|
||
import io.kotest.core.spec.style.StringSpec | ||
|
||
class ${test.name} : StringSpec({ | ||
<#list cases as case> | ||
"${case.name}" { | ||
${case.knit.package}.${case.knit.name}.test() | ||
} | ||
|
||
</#list> | ||
}) { | ||
override fun timeout(): Long = 1000 | ||
} |
Oops, something went wrong.