Skip to content

Commit 3c143aa

Browse files
committed
bump minor version, target sdk 35
1 parent f28438b commit 3c143aa

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

buildSrc/src/main/kotlin/Config.kt

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object Config {
1616
const val artifactId = "$group.$artifact"
1717

1818
const val majorRelease = 2
19-
const val minorRelease = 0
19+
const val minorRelease = 1
2020
const val patch = 0
2121
const val postfix = "" // include dash
2222
const val versionName = "$majorRelease.$minorRelease.$patch$postfix"
@@ -25,42 +25,49 @@ object Config {
2525
const val licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt"
2626
const val scmUrl = "https://github.com/respawn-app/ApiResult.git"
2727
const val name = "ApiResult"
28-
const val description = """
29-
ApiResult is a Kotlin Multiplatform declarative error handling framework that is performant, easy to use and
30-
feature-rich.
31-
"""
28+
@Suppress("MaxLineLength")
29+
const val description = """ApiResult is a Kotlin Multiplatform declarative error handling library. Just like Arrow's Either, but without the complexity."""
3230
const val supportEmail = "hello@respawn.pro"
3331
const val vendorName = "Respawn Open Source Team"
3432
const val vendorId = "respawn-app"
3533
const val developerUrl = "https://respawn.pro"
3634

3735
// kotlin
3836

37+
val jvmTarget = JvmTarget.JVM_11
38+
val javaVersion = JavaVersion.VERSION_11
39+
const val compileSdk = 35
40+
const val targetSdk = compileSdk
41+
const val minSdk = 21
42+
const val appMinSdk = 26
43+
const val publishingVariant = "release"
44+
3945
val optIns = listOf(
4046
"kotlinx.coroutines.ExperimentalCoroutinesApi",
4147
"kotlinx.coroutines.FlowPreview",
4248
"kotlin.RequiresOptIn",
4349
"kotlin.experimental.ExperimentalTypeInference",
44-
"kotlin.contracts.ExperimentalContracts"
50+
"kotlin.uuid.ExperimentalUuidApi",
51+
"kotlin.contracts.ExperimentalContracts",
4552
)
4653
val compilerArgs = listOf(
4754
"-Xbackend-threads=0", // parallel IR compilation
55+
"-Xexpect-actual-classes",
56+
"-Xwasm-use-new-exception-proposal",
57+
"-Xconsistent-data-class-copy-visibility",
58+
"-Xsuppress-warning=NOTHING_TO_INLINE",
59+
"-Xsuppress-warning=UNUSED_ANONYMOUS_PARAMETER",
60+
"-Xwasm-debugger-custom-formatters"
4861
)
4962
val jvmCompilerArgs = buildList {
5063
addAll(compilerArgs)
5164
add("-Xjvm-default=all") // enable all jvm optimizations
5265
add("-Xcontext-receivers")
5366
add("-Xstring-concat=inline")
54-
addAll(optIns.map { "-opt-in=$it" })
67+
add("-Xlambdas=indy")
68+
add("-Xjdk-release=${jvmTarget.target}")
5569
}
5670

57-
val jvmTarget = JvmTarget.JVM_11
58-
val javaVersion = JavaVersion.VERSION_11
59-
const val compileSdk = 34
60-
const val targetSdk = compileSdk
61-
const val minSdk = 21
62-
const val appMinSdk = 26
63-
const val publishingVariant = "release"
6471

6572
// android
6673
const val namespace = artifactId

0 commit comments

Comments
 (0)