revanced-manager/app/build.gradle.kts

174 lines
4.5 KiB
Text
Raw Normal View History

2023-01-28 00:00:52 +01:00
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.devtools)
2023-08-01 21:14:15 +02:00
alias(libs.plugins.about.libraries)
2023-01-28 00:28:39 +01:00
id("kotlin-parcelize")
kotlin("plugin.serialization") version "1.9.22"
2023-01-28 00:00:52 +01:00
}
2023-03-18 11:53:25 +01:00
2023-01-28 00:00:52 +01:00
android {
namespace = "app.revanced.manager"
2023-10-15 13:17:07 +02:00
compileSdk = 34
2023-10-26 16:25:12 +02:00
buildToolsVersion = "34.0.0"
2023-01-28 00:00:52 +01:00
defaultConfig {
applicationId = "app.revanced.manager"
2023-01-28 00:00:52 +01:00
minSdk = 26
2023-10-15 13:17:07 +02:00
targetSdk = 34
2023-01-28 00:00:52 +01:00
versionCode = 1
versionName = "0.0.1"
resourceConfigurations.addAll(listOf(
"en",
))
2023-01-28 00:00:52 +01:00
vectorDrawables.useSupportLibrary = true
}
buildTypes {
debug {
applicationIdSuffix = ".debug"
resValue("string", "app_name", "ReVanced Manager Debug")
}
2023-01-28 00:00:52 +01:00
release {
if (!project.hasProperty("noProguard")) {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
if (project.hasProperty("signAsDebug")) {
applicationIdSuffix = ".debug"
resValue("string", "app_name", "ReVanced Manager Debug")
signingConfig = signingConfigs.getByName("debug")
}
2023-01-28 00:00:52 +01:00
}
}
2023-01-28 00:00:52 +01:00
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2023-01-28 00:00:52 +01:00
}
2023-05-19 20:49:32 +02:00
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
2024-01-07 23:28:16 +01:00
packaging {
resources.excludes.addAll(listOf(
"/prebuilt/**",
"META-INF/DEPENDENCIES",
"META-INF/**.version",
"DebugProbesKt.bin",
"kotlin-tooling-metadata.json",
"org/bouncycastle/pqc/**.properties",
"org/bouncycastle/x509/**.properties",
))
jniLibs {
useLegacyPackaging = true
2023-05-19 20:49:32 +02:00
}
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
2023-01-28 00:00:52 +01:00
kotlinOptions {
jvmTarget = "17"
2023-01-28 00:00:52 +01:00
}
buildFeatures.compose = true
2023-09-09 15:18:00 +02:00
buildFeatures.aidl = true
buildFeatures.buildConfig=true
2023-01-28 00:00:52 +01:00
composeOptions.kotlinCompilerExtensionVersion = "1.5.10"
2023-01-28 00:00:52 +01:00
}
kotlin {
jvmToolchain(17)
}
2023-01-28 00:00:52 +01:00
dependencies {
// AndroidX Core
implementation(libs.androidx.ktx)
implementation(libs.runtime.ktx)
implementation(libs.runtime.compose)
implementation(libs.splash.screen)
implementation(libs.compose.activity)
implementation(libs.paging.common.ktx)
implementation(libs.work.runtime.ktx)
implementation(libs.preferences.datastore)
2023-01-28 00:00:52 +01:00
// Compose
implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
implementation(libs.compose.ui.preview)
2024-01-06 16:51:11 +01:00
implementation(libs.compose.ui.tooling)
implementation(libs.compose.livedata)
implementation(libs.compose.material.icons.extended)
implementation(libs.compose.material3)
2023-01-28 00:19:15 +01:00
2023-03-18 11:53:25 +01:00
// Accompanist
implementation(libs.accompanist.drawablepainter)
implementation(libs.accompanist.webview)
implementation(libs.accompanist.placeholder)
2023-03-18 11:53:25 +01:00
2023-07-14 10:54:42 +02:00
// HTML Scraper
implementation(libs.skrapeit.dsl)
implementation(libs.skrapeit.parser)
2023-07-14 10:54:42 +02:00
2023-05-06 12:42:30 +02:00
// Coil (async image loading, network image)
implementation(libs.coil.compose)
implementation(libs.coil.appiconloader)
2023-05-06 12:42:30 +02:00
2023-03-18 11:53:25 +01:00
// KotlinX
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.collection.immutable)
2023-03-18 11:53:25 +01:00
// Room
implementation(libs.room.runtime)
implementation(libs.room.ktx)
annotationProcessor(libs.room.compiler)
ksp(libs.room.compiler)
2023-03-18 11:53:25 +01:00
// ReVanced
implementation(libs.revanced.patcher)
implementation(libs.revanced.library)
2023-09-09 15:18:00 +02:00
implementation(libs.libsu.core)
implementation(libs.libsu.service)
implementation(libs.libsu.nio)
2023-01-28 00:19:15 +01:00
// Koin
implementation(libs.koin.android)
implementation(libs.koin.compose)
implementation(libs.koin.workmanager)
2023-01-28 00:19:15 +01:00
2023-01-28 00:28:39 +01:00
// Compose Navigation
implementation(libs.reimagined.navigation)
2023-03-18 11:53:25 +01:00
2023-06-29 22:05:43 +02:00
// Licenses
implementation(libs.about.libraries)
2023-06-29 22:05:43 +02:00
2023-03-18 11:53:25 +01:00
// Ktor
implementation(libs.ktor.core)
implementation(libs.ktor.logging)
implementation(libs.ktor.okhttp)
implementation(libs.ktor.content.negotiation)
implementation(libs.ktor.serialization)
2023-05-06 12:42:30 +02:00
// Markdown
implementation(libs.markdown.renderer)
// Fading Edges
implementation(libs.fading.edges)
2024-01-07 23:28:16 +01:00
// Scrollbars
implementation(libs.scrollbars)
// Compose Icons
implementation(libs.compose.icons.fontawesome)
}