Convert stargate module to Jvm library

This commit is contained in:
Severiano Jaramillo 2024-04-29 09:05:42 -07:00
parent 6bbc3be83e
commit 0e515f217c
14 changed files with 18 additions and 51 deletions

View file

@ -51,7 +51,7 @@ android {
dependencies {
implementation(projects.library.preferences)
implementation(projects.shared.stargate)
implementation(projects.library.stargate)
implementation(platform(libs.compose.bom))
implementation(libs.androidx.activity.compose)

View file

@ -5,4 +5,5 @@ plugins {
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinJvm) apply false
}

View file

@ -40,3 +40,4 @@ androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

View file

@ -0,0 +1,14 @@
plugins {
alias(libs.plugins.kotlinJvm)
}
dependencies {
implementation(projects.shared.crypto)
implementation(libs.cryptography.bigint)
implementation(libs.ktor.client.cio)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.websockets)
testImplementation(libs.kotlin.test)
}

View file

@ -21,4 +21,4 @@ dependencyResolutionManagement {
include(":app")
include(":shared:crypto")
include(":library:preferences")
include(":shared:stargate")
include(":library:stargate")

View file

@ -1,49 +0,0 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
}
kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "11"
}
}
}
jvm()
iosX64()
iosArm64()
iosSimulatorArm64()
sourceSets {
commonMain.dependencies {
implementation(projects.shared.crypto)
implementation(libs.cryptography.bigint)
implementation(libs.ktor.client.cio)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.websockets)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}
android {
namespace = "net.agorise.shared.stargate"
compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig {
minSdk = libs.versions.android.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}