mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
优化界面以及大小
This commit is contained in:
63
app/build.gradle.kts
Normal file
63
app/build.gradle.kts
Normal file
@@ -0,0 +1,63 @@
|
||||
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 31
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.lt2333.simplicitytools"
|
||||
minSdk = 30
|
||||
targetSdk = 32
|
||||
versionCode = 10
|
||||
versionName = "1.0.9"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isZipAlignEnabled = true
|
||||
isShrinkResources = true
|
||||
setProguardFiles(
|
||||
listOf(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
||||
}
|
||||
packagingOptions {
|
||||
resources {
|
||||
excludes += "/META-INF/**"
|
||||
excludes += "/kotlin/**"
|
||||
excludes += "/*.txt"
|
||||
excludes += "/*.bin"
|
||||
}
|
||||
dex {
|
||||
useLegacyPackaging = true
|
||||
}
|
||||
}
|
||||
applicationVariants.all {
|
||||
outputs.all {
|
||||
(this as BaseVariantOutputImpl).outputFileName =
|
||||
"Simplicity_Tools_Xposed-${versionName}-${name}.apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
//API
|
||||
compileOnly("de.robv.android.xposed:api:82")
|
||||
//UI
|
||||
implementation(project(":blockmiui"))
|
||||
}
|
||||
Reference in New Issue
Block a user