summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-11-15 14:04:14 +0530
committerGitHub <noreply@github.com>2020-11-15 09:34:14 +0100
commitd3c1a73050cad74460a7fedddb114d196e5703aa (patch)
treeecd9ee3270a2c38e8d385e20d6a214ecde7466ef /app
parent02c853c3b1124d8d37c357f7040abd579c51bf8a (diff)
build: refactor for configuration cache compatibility (#1208)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle.kts44
1 files changed, 0 insertions, 44 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 87e436a0..a668a080 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -3,7 +3,6 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
-import java.util.Properties
plugins {
id("com.android.application")
@@ -11,12 +10,6 @@ plugins {
`aps-plugin`
}
-val keystorePropertiesFile = rootProject.file("keystore.properties")
-
-fun isSnapshot(): Boolean {
- return System.getenv("GITHUB_WORKFLOW") != null && System.getenv("SNAPSHOT") != null
-}
-
android {
if (isSnapshot()) {
applicationVariants.all {
@@ -26,13 +19,6 @@ android {
}
}
- adbOptions.installOptions("--user 0")
-
- buildFeatures {
- viewBinding = true
- buildConfig = true
- }
-
defaultConfig {
applicationId = "dev.msfjarvis.aps"
versionCode = 2_00_00
@@ -46,36 +32,6 @@ android {
disable("MissingTranslation", "PluralsCandidate", "ImpliedQuantity")
}
- buildTypes {
- named("release") {
- isMinifyEnabled = true
- setProguardFiles(listOf("proguard-android-optimize.txt", "proguard-rules.pro"))
- buildConfigField("boolean", "ENABLE_DEBUG_FEATURES", if (isSnapshot()) "true" else "false")
- }
- named("debug") {
- applicationIdSuffix = ".debug"
- versionNameSuffix = "-debug"
- isMinifyEnabled = false
- buildConfigField("boolean", "ENABLE_DEBUG_FEATURES", "true")
- }
- }
-
- if (keystorePropertiesFile.exists()) {
- val keystoreProperties = Properties()
- keystoreProperties.load(keystorePropertiesFile.inputStream())
- signingConfigs {
- register("release") {
- keyAlias = keystoreProperties["keyAlias"] as String
- keyPassword = keystoreProperties["keyPassword"] as String
- storeFile = rootProject.file(keystoreProperties["storeFile"] as String)
- storePassword = keystoreProperties["storePassword"] as String
- }
- }
- listOf("release", "debug").map {
- buildTypes.getByName(it).signingConfig = signingConfigs.getByName(it)
- }
- }
-
flavorDimensions("free")
productFlavors {
create("free") {