mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-29 22:24:35 +02:00
88 lines
2.4 KiB
Plaintext
88 lines
2.4 KiB
Plaintext
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
|
|
|
plugins {
|
|
alias(libs.plugins.androidApplication)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
alias(libs.plugins.compose.compiler)
|
|
id("kotlin-parcelize")
|
|
}
|
|
|
|
android {
|
|
namespace = rootProject.ext["applicationId"].toString() + ".manager"
|
|
compileSdk = 34
|
|
|
|
androidResources {
|
|
noCompress += ".so"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
defaultConfig {
|
|
buildConfigField("String", "APPLICATION_ID", "\"${rootProject.ext["applicationId"]}\"")
|
|
applicationId = rootProject.ext["applicationId"].toString() + ".manager"
|
|
versionCode = 1
|
|
versionName = "1.0.0"
|
|
minSdk = 28
|
|
targetSdk = 34
|
|
multiDexEnabled = true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles += file("proguard-rules.pro")
|
|
}
|
|
debug {
|
|
(properties["debug_flavor"] == null).also {
|
|
isDebuggable = !it
|
|
isMinifyEnabled = it
|
|
isShrinkResources = it
|
|
}
|
|
proguardFiles += file("proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
applicationVariants.all {
|
|
outputs.map { it as BaseVariantOutputImpl }.forEach { outputVariant ->
|
|
outputVariant.outputFileName = "manager.apk"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "21"
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
all {
|
|
resolutionStrategy {
|
|
exclude(group = "com.google.guava", module = "listenablefuture")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
implementation(libs.libsu)
|
|
implementation(libs.guava)
|
|
implementation(libs.apksig)
|
|
implementation(libs.dexlib2)
|
|
implementation(libs.gson)
|
|
implementation(libs.jsoup)
|
|
implementation(libs.okhttp)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.material3)
|
|
implementation(libs.androidx.activity.ktx)
|
|
implementation(libs.androidx.navigation.compose)
|
|
implementation(libs.androidx.material.icons.core)
|
|
implementation(libs.androidx.material.ripple)
|
|
implementation(libs.androidx.material.icons.extended)
|
|
} |