mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-04-29 22:24:34 +02:00

This commit improves the build files by using Gradle version catalogs and modernizes the Android build files. Additionally dependencies have been updated and some source files refactored.
65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin)
|
|
}
|
|
|
|
android {
|
|
namespace = "app.revanced.integrations"
|
|
compileSdk = 33
|
|
|
|
applicationVariants.all {
|
|
outputs.all {
|
|
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
|
|
|
|
outputFileName = "${rootProject.name}-$versionName.apk"
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "app.revanced.integrations"
|
|
minSdk = 23
|
|
targetSdk = 33
|
|
multiDexEnabled = false
|
|
versionName = project.version as String
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro",
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.appcompat)
|
|
compileOnly(libs.annotation)
|
|
compileOnly(libs.okhttp)
|
|
compileOnly(libs.retrofit)
|
|
|
|
compileOnly(project(":stub"))
|
|
}
|
|
|
|
tasks {
|
|
// Required to run tasks because Gradle semantic-release plugin runs the publish task.
|
|
// Tracking: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435
|
|
register("publish") {
|
|
group = "publishing"
|
|
description = "Publishes all publications produced by this project."
|
|
|
|
dependsOn(build)
|
|
}
|
|
}
|