109 lines
3.6 KiB
Kotlin
109 lines
3.6 KiB
Kotlin
@file:Suppress("UnstableApiUsage")
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-parcelize")
|
|
kotlin("plugin.serialization") version "1.7.10"
|
|
}
|
|
|
|
android {
|
|
namespace = "com.aliucord.manager"
|
|
compileSdk = 33
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
targetSdk = 33
|
|
versionCode = 1
|
|
versionName = "0.0.1"
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
buildConfigField("String", "TAG", "\"AliucordManager\"")
|
|
buildConfigField("String", "SUPPORT_SERVER", "\"EsNDvBaHVU\"")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants(selector().withBuildType("release")) {
|
|
it.packaging.resources.excludes.apply {
|
|
// Debug metadata
|
|
add("/**/*.version")
|
|
add("/kotlin-tooling-metadata.json")
|
|
// Kotlin debugging (https://github.com/Kotlin/kotlinx.coroutines/issues/2274)
|
|
add("/DebugProbesKt.bin")
|
|
}
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
resources {
|
|
// Reflection symbol list (https://stackoverflow.com/a/41073782/13964629)
|
|
excludes += "/**/*.kotlin_builtins"
|
|
|
|
// okhttp3 is used by some lib (no cookies so publicsuffixes.gz can be dropped)
|
|
excludes += "/okhttp3/**"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
freeCompilerArgs += "-Xcontext-receivers"
|
|
}
|
|
|
|
buildFeatures.compose = true
|
|
composeOptions.kotlinCompilerExtensionVersion = "1.3.1"
|
|
}
|
|
|
|
dependencies {
|
|
// AndroidX
|
|
implementation("androidx.core:core-ktx:1.9.0")
|
|
implementation("androidx.core:core-splashscreen:1.0.0")
|
|
implementation("androidx.activity:activity-compose:1.6.0")
|
|
implementation("androidx.paging:paging-compose:1.0.0-alpha16")
|
|
|
|
// Compose
|
|
val composeVersion = "1.3.0-beta02"
|
|
implementation("androidx.compose.ui:ui:$composeVersion")
|
|
implementation("androidx.compose.ui:ui-tooling:$composeVersion")
|
|
implementation("androidx.compose.material:material-icons-extended:$composeVersion")
|
|
implementation("androidx.compose.material3:material3:1.0.0-rc01")
|
|
|
|
// accompanist dependencies
|
|
val accompanistVersion = "0.26.3-beta"
|
|
implementation("com.google.accompanist:accompanist-systemuicontroller:$accompanistVersion")
|
|
implementation("com.google.accompanist:accompanist-permissions:$accompanistVersion")
|
|
|
|
// Ktor
|
|
val ktorVersion = "2.1.1"
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
|
|
|
// Koin
|
|
val koinVersion = "3.2.0"
|
|
implementation("io.insert-koin:koin-android:$koinVersion")
|
|
implementation("io.insert-koin:koin-androidx-compose:$koinVersion")
|
|
|
|
// Other
|
|
implementation("io.coil-kt:coil-compose:2.2.1")
|
|
implementation("com.github.X1nto:Taxi:1.2.0")
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
|
implementation("io.github.diamondminer88:zip-android:2.1.0@aar")
|
|
implementation("com.aliucord:axml:1.0.1")
|
|
implementation("com.android.tools.build:apksig:7.4.0-beta02")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
|
|
}
|