gradle: update properties list for build improvements

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-09-20 22:43:31 +05:30
parent e212404dbe
commit 7a3274b06d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 40 additions and 13 deletions

View file

@ -27,6 +27,7 @@ android {
adbOptions.installOptions("--user 0") adbOptions.installOptions("--user 0")
buildFeatures.viewBinding = true buildFeatures.viewBinding = true
buildFeatures.buildConfig = true
defaultConfig { defaultConfig {
applicationId = "dev.msfjarvis.aps" applicationId = "dev.msfjarvis.aps"

View file

@ -2,24 +2,50 @@
# Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved. # Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
# SPDX-License-Identifier: GPL-3.0-only # SPDX-License-Identifier: GPL-3.0-only
# #
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
# AndroidX # Enabling filesystem watching
android.enableJetifier=false org.gradle.vfs.watch=true
android.useAndroidX=true org.gradle.unsafe.watch-fs=true
# R8 Full mode # Enable Kotlin incremental compilation
kotlin.incremental=true
# Enable parallel tasks execution for Kotlin Gradle plugin
kotlin.parallel.tasks.in.project=true
# Kotlin code style
kotlin.code.style=official
# Enable incremental annotation processor for KAPT
kapt.incremental.apt=true
# Turn off AP discovery in compile path to enable compile avoidance
kapt.include.compile.classpath=false
# Use R8 instead of ProGuard for code shrinking.
android.enableR8.fullMode=true android.enableR8.fullMode=true
# Disable warnings for experimental options # Enable AndroidX
android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.enableR8.fullMode,android.useMinimalKeepRules,android.namespacedRClass android.useAndroidX=true
# https://jakewharton.com/increased-accuracy-of-aapt2-keep-rules/ # Enable non-transitive R class namespacing where each library only contains
android.useMinimalKeepRules=true
# Enable rudimentary R class namespacing where each library only contains
# references to the resources it declares instead of declarations plus all # references to the resources it declares instead of declarations plus all
# transitive dependency references. # transitive dependency references.
android.namespacedRClass=true android.nonTransitiveRClass=true
# Gradle FS watching # Only keep the single relevant constructor for types mentioned in XML files
org.gradle.unsafe.watch-fs=true # instead of using a parameter wildcard which keeps them all.
android.useMinimalKeepRules=true
# Enable resource optimizations for release build
android.enableResourceOptimizations=true
# Default Android build features
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false