revanced-manager/app/build.gradle.kts

148 lines
3.7 KiB
Plaintext
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.8.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-01-28 00:00:52 +01:00
compileSdk = 33
buildToolsVersion = "33.0.2"
2023-01-28 00:00:52 +01:00
defaultConfig {
applicationId = "app.revanced.manager"
2023-01-28 00:00:52 +01:00
minSdk = 26
targetSdk = 33
versionCode = 1
versionName = "0.0.1"
resourceConfigurations.addAll(listOf(
"en",
))
2023-01-28 00:00:52 +01:00
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
2023-06-04 19:37:23 +02:00
isMinifyEnabled = true
isShrinkResources = true
2023-01-28 00:00:52 +01:00
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
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
}
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-08-26 16:03:44 +02:00
composeOptions.kotlinCompilerExtensionVersion = "1.5.1"
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)
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.patcher)
2023-01-28 00:19:15 +01:00
// Signing
implementation(libs.apksign)
implementation(libs.bcpkix.jdk18on)
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 to HTML
implementation(libs.markdown)
}