mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-18 18:09:23 +01:00
build: name output files & minor refactor
This commit is contained in:
commit
bc635a79c5
@ -8,29 +8,31 @@ plugins {
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.0"
|
||||
buildToolsVersion = "33.0.1"
|
||||
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", "")}\"")
|
||||
versionName = project.version as String
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
applicationVariants.all {
|
||||
outputs.all {
|
||||
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
|
||||
|
||||
outputFileName = "${rootProject.name}-$versionName.apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
@ -13,12 +13,6 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
// Tracking issue https://github.com/semantic-release/semantic-release/issues/963
|
||||
tasks.register("publish", DefaultTask::class) {
|
||||
group = "publish"
|
||||
description = "Dummy publish to pass the verification phase of the gradle-semantic-release-plugin"
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
}
|
||||
|
@ -4,11 +4,12 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "app.revanced.dummy"
|
||||
compileSdk = 32
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 26
|
||||
targetSdk = 32
|
||||
minSdk = 23
|
||||
targetSdk = 33
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@ -24,7 +25,4 @@ android {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
}
|
@ -8,4 +8,5 @@ dependencyResolutionManagement {
|
||||
}
|
||||
include(":app")
|
||||
include(":dummy")
|
||||
rootProject.name = "integrations"
|
||||
|
||||
rootProject.name = "revanced-integrations"
|
||||
|
Loading…
Reference in New Issue
Block a user