All checks were successful
Update Wiki Documentation / generate-docs (push) Successful in 2m22s
81 lines
2.0 KiB
Kotlin
81 lines
2.0 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.dokka)
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
|
|
dokkaSourceSets {
|
|
register("main") {
|
|
sourceRoots.from(file("src/main/java"))
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.retroha"
|
|
compileSdk {
|
|
version = release(36) {
|
|
minorApiLevel = 1
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.retroha"
|
|
minSdk = 14
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
multiDexEnabled = false
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
splits {
|
|
abi {
|
|
isEnable = true
|
|
reset()
|
|
include("armeabi-v7a", "x86", "x86_64")
|
|
isUniversalApk = false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":shared"))
|
|
|
|
// OkHttp 3.12.x — ostatnia wersja wspierająca API 19
|
|
implementation(libs.okhttp)
|
|
implementation(libs.okhttp.logging)
|
|
|
|
// Retrofit 2 + Gson converter
|
|
implementation(libs.retrofit)
|
|
implementation(libs.retrofit.gson)
|
|
implementation(libs.gson)
|
|
|
|
// MPAndroidChart
|
|
implementation(libs.mpandroidchart)
|
|
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
androidTestImplementation("androidx.test:runner:1.5.2")
|
|
androidTestImplementation("androidx.test:rules:1.5.0")
|
|
}
|