2022-09-22 18:47:46 +02:00
|
|
|
import java.io.FileInputStream
|
|
|
|
import java.util.Properties
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("org.jetbrains.kotlin.android")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-10-11 15:47:14 +02:00
|
|
|
compileSdk = 33
|
|
|
|
buildToolsVersion = "33.0.0"
|
2022-09-22 18:47:46 +02:00
|
|
|
namespace = "app.revanced.integrations"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "app.revanced.integrations"
|
|
|
|
minSdk = 23
|
2022-10-11 15:47:14 +02:00
|
|
|
targetSdk = 33
|
2022-09-22 18:47:46 +02:00
|
|
|
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 {
|
2022-09-26 16:28:55 +02:00
|
|
|
isMinifyEnabled = true
|
2022-09-22 18:47:46 +02:00
|
|
|
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 {
|
2022-09-27 15:30:25 +02:00
|
|
|
compileOnly(project(mapOf("path" to ":dummy")))
|
2022-09-22 18:47:46 +02:00
|
|
|
compileOnly("androidx.annotation:annotation:1.5.0")
|
2022-11-21 22:53:12 +01:00
|
|
|
compileOnly("androidx.appcompat:appcompat:1.5.1")
|
2022-09-22 18:47:46 +02:00
|
|
|
}
|