Skip to content

Commit

Permalink
migrate :fromtouz from Android lib to pure Java/Kotlin library
Browse files Browse the repository at this point in the history
  • Loading branch information
theberdakh committed Jul 22, 2024
1 parent fd64ce9 commit 53f457e
Showing 1 changed file with 8 additions and 42 deletions.
50 changes: 8 additions & 42 deletions fromtouz/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,57 +1,23 @@
import com.android.build.gradle.internal.utils.createPublishingInfoForLibrary

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.jvm")
id("maven-publish")
}

android {
namespace = "com.theberdakh.fromtouz"
compileSdk = 34

defaultConfig {
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}

publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}

kotlin {
jvmToolchain(17)
}

dependencies {

implementation("androidx.core:core-ktx:1.13.1")
testImplementation("junit:junit:4.13.2")

implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.6")
implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.6")
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") // Use core coroutines

}

publishing {
Expand All @@ -62,7 +28,7 @@ publishing {
version = "1.0.0"

afterEvaluate {
from(components["release"])
from(components["java"])
}
}
}
Expand Down

0 comments on commit 53f457e

Please sign in to comment.