69 lines
1.9 KiB
Kotlin
69 lines
1.9 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
kotlin("plugin.serialization")
|
|
id("kotlinx-serialization")
|
|
id("com.vanniktech.maven.publish") version "0.30.0"
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "githubQqqMavenRegistry"
|
|
url = uri("https://maven.pkg.github.com/QRun-IO/qqq-maven-registry")
|
|
// username and password (a personal Github access token) should be specified as
|
|
// `githubPackagesUsername` and `githubPackagesPassword` Gradle properties
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "com.kingsrook.qqq.frontend.android.core"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
|
|
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_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.junit.jupiter)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
// Kotlin serialization
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
|
|
|
// Retrofit
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
|
|
// Retrofit with Kotlin serialization Converter
|
|
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
|
|
implementation("com.squareup.okhttp3:okhttp:4.11.0")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.20")
|
|
} |