2023-01-28 00:00:52 +01:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("org.jetbrains.kotlin.android")
|
2023-05-26 14:58:14 +02:00
|
|
|
id("com.google.devtools.ksp")
|
2023-01-28 00:28:39 +01:00
|
|
|
id("kotlin-parcelize")
|
2023-07-07 18:14:27 +02:00
|
|
|
kotlin("plugin.serialization") version "1.8.21"
|
2023-06-29 22:05:43 +02:00
|
|
|
id("com.mikepenz.aboutlibraries.plugin") version "10.8.0"
|
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"
|
|
|
|
|
|
|
|
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-07 18:14:27 +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-06-03 20:03:14 +02:00
|
|
|
packaging {
|
2023-05-19 20:49:32 +02:00
|
|
|
resources {
|
|
|
|
excludes += "/prebuilt/**"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-07 18:14:27 +02:00
|
|
|
jvmTarget = "17"
|
2023-01-28 00:00:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures.compose = true
|
|
|
|
|
2023-05-13 14:00:06 +02:00
|
|
|
composeOptions.kotlinCompilerExtensionVersion = "1.4.7"
|
2023-01-28 00:00:52 +01:00
|
|
|
}
|
|
|
|
|
2023-06-03 20:03:14 +02:00
|
|
|
kotlin {
|
2023-07-07 18:14:27 +02:00
|
|
|
jvmToolchain(17)
|
2023-06-03 20:03:14 +02:00
|
|
|
}
|
|
|
|
|
2023-01-28 00:00:52 +01:00
|
|
|
dependencies {
|
|
|
|
|
|
|
|
// AndroidX Core
|
2023-05-13 14:00:06 +02:00
|
|
|
implementation("androidx.core:core-ktx:1.10.1")
|
2023-05-19 20:49:32 +02:00
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.1")
|
2023-04-23 14:36:52 +02:00
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
|
|
|
|
implementation("androidx.core:core-splashscreen:1.0.1")
|
2023-06-03 20:03:14 +02:00
|
|
|
implementation("androidx.activity:activity-compose:1.7.2")
|
2023-05-06 12:42:30 +02:00
|
|
|
implementation("androidx.paging:paging-common-ktx:3.1.1")
|
2023-05-19 20:49:32 +02:00
|
|
|
implementation("androidx.work:work-runtime-ktx:2.8.1")
|
2023-01-28 00:00:52 +01:00
|
|
|
|
|
|
|
// Compose
|
2023-07-07 15:14:55 +02:00
|
|
|
implementation(platform("androidx.compose:compose-bom:2023.06.01"))
|
2023-04-23 14:36:52 +02:00
|
|
|
implementation("androidx.compose.ui:ui")
|
|
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
2023-06-09 17:34:10 +02:00
|
|
|
implementation("androidx.compose.runtime:runtime-livedata")
|
2023-05-06 12:42:30 +02:00
|
|
|
implementation("androidx.compose.material:material-icons-extended")
|
2023-05-13 14:00:06 +02:00
|
|
|
implementation("androidx.compose.material3:material3")
|
2023-01-28 00:19:15 +01:00
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// Accompanist
|
2023-05-18 13:38:02 +02:00
|
|
|
val accompanistVersion = "0.30.1"
|
2023-05-06 12:42:30 +02:00
|
|
|
//implementation("com.google.accompanist:accompanist-systemuicontroller:$accompanistVersion")
|
2023-03-18 11:53:25 +01:00
|
|
|
//implementation("com.google.accompanist:accompanist-placeholder-material:$accompanistVersion")
|
2023-05-18 13:38:02 +02:00
|
|
|
implementation("com.google.accompanist:accompanist-drawablepainter:$accompanistVersion")
|
2023-07-07 10:56:04 +02:00
|
|
|
implementation("com.google.accompanist:accompanist-webview:$accompanistVersion")
|
2023-03-18 11:53:25 +01:00
|
|
|
//implementation("com.google.accompanist:accompanist-flowlayout:$accompanistVersion")
|
|
|
|
//implementation("com.google.accompanist:accompanist-permissions:$accompanistVersion")
|
|
|
|
|
2023-05-06 12:42:30 +02:00
|
|
|
// Coil (async image loading, network image)
|
2023-06-03 20:03:14 +02:00
|
|
|
implementation("io.coil-kt:coil-compose:2.4.0")
|
|
|
|
implementation("me.zhanghai.android.appiconloader:appiconloader-coil:1.5.0")
|
2023-05-06 12:42:30 +02:00
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// KotlinX
|
2023-06-17 13:45:52 +02:00
|
|
|
val serializationVersion = "1.5.1"
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
|
2023-06-03 20:03:14 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5")
|
2023-03-18 11:53:25 +01:00
|
|
|
|
2023-05-26 14:58:14 +02:00
|
|
|
// Room
|
2023-07-07 15:14:55 +02:00
|
|
|
val roomVersion = "2.5.2"
|
2023-05-26 14:58:14 +02:00
|
|
|
implementation("androidx.room:room-runtime:$roomVersion")
|
|
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
|
|
annotationProcessor("androidx.room:room-compiler:$roomVersion")
|
|
|
|
ksp("androidx.room:room-compiler:$roomVersion")
|
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// ReVanced
|
2023-07-01 15:09:21 +02:00
|
|
|
implementation("app.revanced:revanced-patcher:11.0.4")
|
2023-01-28 00:19:15 +01:00
|
|
|
|
2023-05-20 12:14:30 +02:00
|
|
|
// Signing
|
2023-07-07 15:14:55 +02:00
|
|
|
implementation("com.android.tools.build:apksig:8.2.0-alpha10")
|
2023-05-20 12:14:30 +02:00
|
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
|
|
|
|
2023-01-28 00:19:15 +01:00
|
|
|
// Koin
|
2023-07-07 15:14:55 +02:00
|
|
|
val koinVersion = "3.4.2"
|
2023-05-19 20:49:32 +02:00
|
|
|
implementation("io.insert-koin:koin-android:$koinVersion")
|
2023-07-07 15:14:55 +02:00
|
|
|
implementation("io.insert-koin:koin-androidx-compose:3.4.5")
|
2023-05-19 20:49:32 +02:00
|
|
|
implementation("io.insert-koin:koin-androidx-workmanager:$koinVersion")
|
2023-01-28 00:19:15 +01:00
|
|
|
|
2023-01-28 00:28:39 +01:00
|
|
|
// Compose Navigation
|
2023-04-23 14:36:52 +02:00
|
|
|
implementation("dev.olshevski.navigation:reimagined:1.4.0")
|
2023-03-18 11:53:25 +01:00
|
|
|
|
2023-06-29 22:05:43 +02:00
|
|
|
// Licenses
|
|
|
|
implementation("com.mikepenz:aboutlibraries-compose:10.8.0")
|
|
|
|
|
2023-03-18 11:53:25 +01:00
|
|
|
// Ktor
|
2023-07-07 15:14:55 +02:00
|
|
|
val ktorVersion = "2.3.2"
|
2023-03-18 11:53:25 +01:00
|
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-client-logging:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
2023-05-06 12:42:30 +02:00
|
|
|
|
2023-07-07 10:56:04 +02:00
|
|
|
// Markdown to HTML
|
|
|
|
implementation("org.jetbrains:markdown:0.4.1")
|
2023-05-13 14:00:06 +02:00
|
|
|
}
|