mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-03 01:02:55 +01:00
a098594706
Co-authored-by: Tim Schneeberger <tim.schneeberger@outlook.de>
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
import java.io.FileInputStream
|
|
import java.util.Properties
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
compileSdk = 33
|
|
buildToolsVersion = "33.0.0"
|
|
namespace = "app.revanced.integrations"
|
|
|
|
defaultConfig {
|
|
applicationId = "app.revanced.integrations"
|
|
minSdk = 23
|
|
targetSdk = 33
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
multiDexEnabled = false
|
|
|
|
val properties = Properties()
|
|
if (rootProject.file("local.properties").exists()) {
|
|
properties.load(FileInputStream(rootProject.file("local.properties")))
|
|
}
|
|
|
|
buildConfigField("String", "YT_API_KEY", "\"${properties.getProperty("youtubeAPIKey", "")}\"")
|
|
}
|
|
|
|
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(project(mapOf("path" to ":dummy")))
|
|
compileOnly("androidx.annotation:annotation:1.5.0")
|
|
compileOnly("androidx.appcompat:appcompat:1.5.1")
|
|
compileOnly("com.squareup.okhttp3:okhttp:4.10.0")
|
|
compileOnly("com.squareup.retrofit2:retrofit:2.9.0")
|
|
}
|