2023-01-28 00:00:52 +01:00
|
|
|
plugins {
|
2023-07-14 12:33:42 +02:00
|
|
|
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")
|
2023-07-17 14:27:19 +02:00
|
|
|
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 {
|
2023-06-04 18:27:40 +02:00
|
|
|
namespace = "app.revanced.manager"
|
2023-01-28 00:00:52 +01:00
|
|
|
compileSdk = 33
|
2023-04-23 14:36:52 +02:00
|
|
|
buildToolsVersion = "33.0.2"
|
2023-01-28 00:00:52 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
2023-06-04 18:27:40 +02:00
|
|
|
applicationId = "app.revanced.manager"
|
2023-01-28 00:00:52 +01:00
|
|
|
minSdk = 26
|
|
|
|
targetSdk = 33
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "0.0.1"
|
2023-07-17 14:27:19 +02:00
|
|
|
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-06-03 20:03:14 +02:00
|
|
|
|
2023-01-28 00:00:52 +01:00
|
|
|
compileOptions {
|
2023-07-17 14:27:19 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2023-01-28 00:00:52 +01:00
|
|
|
}
|
2023-05-19 20:49:32 +02:00
|
|
|
|
2023-07-17 14:27:19 +02:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2023-06-03 20:03:14 +02:00
|
|
|
packaging {
|
2023-07-17 14:27:19 +02:00
|
|
|
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",
|
2023-07-17 16:41:17 +02:00
|
|
|
))
|
2023-07-17 14:27:19 +02:00
|
|
|
jniLibs {
|
|
|
|
useLegacyPackaging = true
|
2023-05-19 20:49:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-26 14:58:14 +02:00
|
|
|
ksp {
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
|
|
}
|
|
|
|
|
2023-01-28 00:00:52 +01:00
|
|
|
kotlinOptions {
|
2023-07-17 14:27:19 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-06-03 20:03:14 +02:00
|
|
|
kotlin {
|
2023-07-17 14:27:19 +02:00
|
|
|
jvmToolchain(17)
|
2023-06-03 20:03:14 +02:00
|
|
|
}
|
|
|
|
|
2023-01-28 00:00:52 +01:00
|
|
|
dependencies {
|
|
|
|
|
|
|
|
// AndroidX Core
|
2023-07-14 12:33:42 +02:00
|
|
|
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)
|
2023-07-15 11:52:12 +02:00
|
|
|
implementation(libs.preferences.datastore)
|
2023-01-28 00:00:52 +01:00
|
|
|
|
|
|
|
// Compose
|
2023-07-14 12:33:42 +02:00
|
|
|
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
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.accompanist.drawablepainter)
|
|
|
|
implementation(libs.accompanist.webview)
|
2023-07-30 12:29:22 +02:00
|
|
|
implementation(libs.accompanist.placeholder)
|
2023-03-18 11:53:25 +01:00
|
|
|
|
2023-07-14 10:54:42 +02:00
|
|
|
// HTML Scraper
|
2023-07-14 13:11:34 +02:00
|
|
|
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)
|
2023-07-14 12:33:42 +02:00
|
|
|
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
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
implementation(libs.kotlinx.collection.immutable)
|
2023-03-18 11:53:25 +01:00
|
|
|
|
2023-05-26 14:58:14 +02:00
|
|
|
// Room
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.room.runtime)
|
|
|
|
implementation(libs.room.ktx)
|
|
|
|
annotationProcessor(libs.room.compiler)
|
|
|
|
ksp(libs.room.compiler)
|
2023-05-26 14:58:14 +02:00
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// ReVanced
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.patcher)
|
2023-01-28 00:19:15 +01:00
|
|
|
|
2023-05-20 12:14:30 +02:00
|
|
|
// Signing
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.apksign)
|
2023-07-17 14:27:19 +02:00
|
|
|
implementation(libs.bcpkix.jdk18on)
|
2023-05-20 12:14:30 +02:00
|
|
|
|
2023-01-28 00:19:15 +01:00
|
|
|
// Koin
|
2023-07-14 12:33:42 +02:00
|
|
|
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
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.reimagined.navigation)
|
2023-03-18 11:53:25 +01:00
|
|
|
|
2023-06-29 22:05:43 +02:00
|
|
|
// Licenses
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.about.libraries)
|
2023-06-29 22:05:43 +02:00
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// Ktor
|
2023-07-14 12:33:42 +02:00
|
|
|
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
|
|
|
|
2023-07-07 10:56:04 +02:00
|
|
|
// Markdown to HTML
|
2023-07-14 12:33:42 +02:00
|
|
|
implementation(libs.markdown)
|
2023-05-13 14:00:06 +02:00
|
|
|
}
|