mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
67 lines
1.8 KiB
Kotlin
67 lines
1.8 KiB
Kotlin
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 = 31
|
|
targetSdk = 32
|
|
versionCode = 27
|
|
versionName = "1.2.6"
|
|
}
|
|
|
|
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 {
|
|
// implementation("androidx.constraintlayout:constraintlayout:2.1.3")
|
|
//API
|
|
compileOnly("de.robv.android.xposed:api:82")
|
|
//UI
|
|
implementation(project(":blockmiui"))
|
|
val appCenterSdkVersion = "4.3.1"
|
|
implementation("com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}")
|
|
implementation("com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}")
|
|
} |