moves chess lib to version catalog
This commit is contained in:
@@ -26,6 +26,7 @@ javaKeyring = "1.0.4"
|
|||||||
jna = "5.18.1"
|
jna = "5.18.1"
|
||||||
jtorctl = "0.4.5.7"
|
jtorctl = "0.4.5.7"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
|
kchesslib = "1.0.0"
|
||||||
kotlin = "2.3.10"
|
kotlin = "2.3.10"
|
||||||
kotlinxCollectionsImmutable = "0.4.0"
|
kotlinxCollectionsImmutable = "0.4.0"
|
||||||
kotlinxCoroutinesCore = "1.10.2"
|
kotlinxCoroutinesCore = "1.10.2"
|
||||||
@@ -123,6 +124,7 @@ java-keyring = { group = "com.github.javakeyring", name = "java-keyring", versio
|
|||||||
jna = { group = "net.java.dev.jna", name = "jna", version.ref = "jna" }
|
jna = { group = "net.java.dev.jna", name = "jna", version.ref = "jna" }
|
||||||
jtorctl = { module = "info.guardianproject:jtorctl", version.ref = "jtorctl" }
|
jtorctl = { module = "info.guardianproject:jtorctl", version.ref = "jtorctl" }
|
||||||
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||||
|
kchesslib = { module = "io.github.cvb941:kchesslib", version.ref = "kchesslib" }
|
||||||
kotlinx-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotlinx-collections-immutable", version.ref = "kotlinxCollectionsImmutable" }
|
kotlinx-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotlinx-collections-immutable", version.ref = "kotlinxCollectionsImmutable" }
|
||||||
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
|
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
|
||||||
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "kotlinxCoroutinesCore" }
|
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "kotlinxCoroutinesCore" }
|
||||||
|
|||||||
+40
-36
@@ -21,8 +21,14 @@ kotlin {
|
|||||||
|
|
||||||
androidLibrary {
|
androidLibrary {
|
||||||
namespace = "com.vitorpamplona.quartz"
|
namespace = "com.vitorpamplona.quartz"
|
||||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
compileSdk =
|
||||||
minSdk = libs.versions.android.minSdk.get().toInt()
|
libs.versions.android.compileSdk
|
||||||
|
.get()
|
||||||
|
.toInt()
|
||||||
|
minSdk =
|
||||||
|
libs.versions.android.minSdk
|
||||||
|
.get()
|
||||||
|
.toInt()
|
||||||
|
|
||||||
compilerOptions {
|
compilerOptions {
|
||||||
jvmTarget.set(JvmTarget.JVM_21)
|
jvmTarget.set(JvmTarget.JVM_21)
|
||||||
@@ -51,7 +57,6 @@ kotlin {
|
|||||||
// https://developer.android.com/kotlin/multiplatform/migrate
|
// https://developer.android.com/kotlin/multiplatform/migrate
|
||||||
val xcfName = "quartz-kmpKit"
|
val xcfName = "quartz-kmpKit"
|
||||||
|
|
||||||
|
|
||||||
iosX64 {
|
iosX64 {
|
||||||
binaries.framework {
|
binaries.framework {
|
||||||
baseName = xcfName
|
baseName = xcfName
|
||||||
@@ -106,48 +111,50 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Must be defined before androidMain and jvmMain
|
// Must be defined before androidMain and jvmMain
|
||||||
val jvmAndroid = create("jvmAndroid") {
|
val jvmAndroid =
|
||||||
dependsOn(commonMain.get())
|
create("jvmAndroid") {
|
||||||
|
dependsOn(commonMain.get())
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Normalizes URLs
|
// Normalizes URLs
|
||||||
api(libs.rfc3986.normalizer)
|
api(libs.rfc3986.normalizer)
|
||||||
|
|
||||||
// Performant Parser of JSONs into Events
|
// Performant Parser of JSONs into Events
|
||||||
api(libs.jackson.module.kotlin)
|
api(libs.jackson.module.kotlin)
|
||||||
|
|
||||||
// Parses URLs from Text:
|
// Parses URLs from Text:
|
||||||
api(libs.url.detector)
|
api(libs.url.detector)
|
||||||
|
|
||||||
// Websockets API
|
// Websockets API
|
||||||
implementation(libs.okhttp)
|
implementation(libs.okhttp)
|
||||||
implementation(libs.okhttpCoroutines)
|
implementation(libs.okhttpCoroutines)
|
||||||
|
|
||||||
// Chess engine for move validation and legal move generation
|
// Chess engine for move validation and legal move generation
|
||||||
// NOTE: 1.0.4+ uses Java 21's removeLast() which crashes on Android API < 34
|
// NOTE: 1.0.4+ uses Java 21's removeLast() which crashes on Android API < 34
|
||||||
// TODO: Test if 1.0.0 works, or fork library to fix
|
// TODO: Test if 1.0.0 works, or fork library to fix
|
||||||
implementation("io.github.cvb941:kchesslib:1.0.0")
|
implementation(libs.kchesslib)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Must be defined before androidMain and jvmMain
|
// Must be defined before androidMain and jvmMain
|
||||||
val jvmAndroidTest = create("jvmAndroidTest") {
|
val jvmAndroidTest =
|
||||||
dependsOn(commonTest.get())
|
create("jvmAndroidTest") {
|
||||||
dependencies {
|
dependsOn(commonTest.get())
|
||||||
implementation(libs.kotlin.test)
|
dependencies {
|
||||||
implementation(libs.kotlinx.coroutines.test)
|
implementation(libs.kotlin.test)
|
||||||
|
implementation(libs.kotlinx.coroutines.test)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
jvmMain {
|
jvmMain {
|
||||||
dependsOn(jvmAndroid)
|
dependsOn(jvmAndroid)
|
||||||
dependencies {
|
dependencies {
|
||||||
// Bitcoin secp256k1 bindings
|
// Bitcoin secp256k1 bindings
|
||||||
implementation (libs.secp256k1.kmp.jni.jvm)
|
implementation(libs.secp256k1.kmp.jni.jvm)
|
||||||
|
|
||||||
// LibSodium for ChaCha encryption (NIP-44)
|
// LibSodium for ChaCha encryption (NIP-44)
|
||||||
implementation (libs.lazysodium.java)
|
implementation(libs.lazysodium.java)
|
||||||
implementation (libs.jna)
|
implementation(libs.jna)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,8 +175,8 @@ kotlin {
|
|||||||
api(libs.secp256k1.kmp.jni.android)
|
api(libs.secp256k1.kmp.jni.android)
|
||||||
|
|
||||||
// LibSodium for ChaCha encryption (NIP-44)
|
// LibSodium for ChaCha encryption (NIP-44)
|
||||||
implementation ("com.goterl:lazysodium-android:5.2.0@aar")
|
implementation("com.goterl:lazysodium-android:5.2.0@aar")
|
||||||
implementation ("net.java.dev.jna:jna:5.18.1@aar")
|
implementation("net.java.dev.jna:jna:5.18.1@aar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,7 +200,6 @@ kotlin {
|
|||||||
iosMain {
|
iosMain {
|
||||||
dependsOn(commonMain.get())
|
dependsOn(commonMain.get())
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,7 +218,6 @@ kotlin {
|
|||||||
iosTest {
|
iosTest {
|
||||||
dependsOn(commonTest.get())
|
dependsOn(commonTest.get())
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,20 +235,19 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mavenPublishing {
|
mavenPublishing {
|
||||||
// sources publishing is always enabled by the Kotlin Multiplatform plugin
|
// sources publishing is always enabled by the Kotlin Multiplatform plugin
|
||||||
configure(
|
configure(
|
||||||
KotlinMultiplatform(
|
KotlinMultiplatform(
|
||||||
// whether to publish a sources jar
|
// whether to publish a sources jar
|
||||||
sourcesJar = true,
|
sourcesJar = true,
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
coordinates(
|
coordinates(
|
||||||
groupId = "com.vitorpamplona.quartz",
|
groupId = "com.vitorpamplona.quartz",
|
||||||
artifactId = "quartz",
|
artifactId = "quartz",
|
||||||
version = "1.05.1"
|
version = "1.05.1",
|
||||||
)
|
)
|
||||||
|
|
||||||
// Configure publishing to Maven Central
|
// Configure publishing to Maven Central
|
||||||
|
|||||||
Reference in New Issue
Block a user