Convert to Android-only project #1

Merged
Ghost merged 6 commits from convert-to-android-project into main 2024-04-29 22:37:45 +00:00
14 changed files with 18 additions and 51 deletions
Showing only changes of commit 0e515f217c - Show all commits

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
}
}