Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 7a3274b

Browse files
committed
gradle: update properties list for build improvements
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent e212404 commit 7a3274b

File tree

2 files changed

+40
-13
lines changed

2 files changed

+40
-13
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ android {
2727
adbOptions.installOptions("--user 0")
2828

2929
buildFeatures.viewBinding = true
30+
buildFeatures.buildConfig = true
3031

3132
defaultConfig {
3233
applicationId = "dev.msfjarvis.aps"

gradle.properties

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,50 @@
22
# Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
33
# SPDX-License-Identifier: GPL-3.0-only
44
#
5+
org.gradle.parallel=true
6+
org.gradle.configureondemand=true
7+
org.gradle.caching=true
58

6-
# AndroidX
7-
android.enableJetifier=false
8-
android.useAndroidX=true
9+
# Enabling filesystem watching
10+
org.gradle.vfs.watch=true
11+
org.gradle.unsafe.watch-fs=true
912

10-
# R8 Full mode
11-
android.enableR8.fullMode=true
13+
# Enable Kotlin incremental compilation
14+
kotlin.incremental=true
1215

13-
# Disable warnings for experimental options
14-
android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.enableR8.fullMode,android.useMinimalKeepRules,android.namespacedRClass
16+
# Enable parallel tasks execution for Kotlin Gradle plugin
17+
kotlin.parallel.tasks.in.project=true
1518

16-
# https://jakewharton.com/increased-accuracy-of-aapt2-keep-rules/
17-
android.useMinimalKeepRules=true
19+
# Kotlin code style
20+
kotlin.code.style=official
21+
22+
# Enable incremental annotation processor for KAPT
23+
kapt.incremental.apt=true
24+
25+
# Turn off AP discovery in compile path to enable compile avoidance
26+
kapt.include.compile.classpath=false
27+
28+
# Use R8 instead of ProGuard for code shrinking.
29+
android.enableR8.fullMode=true
30+
31+
# Enable AndroidX
32+
android.useAndroidX=true
1833

19-
# Enable rudimentary R class namespacing where each library only contains
34+
# Enable non-transitive R class namespacing where each library only contains
2035
# references to the resources it declares instead of declarations plus all
2136
# transitive dependency references.
22-
android.namespacedRClass=true
37+
android.nonTransitiveRClass=true
2338

24-
# Gradle FS watching
25-
org.gradle.unsafe.watch-fs=true
39+
# Only keep the single relevant constructor for types mentioned in XML files
40+
# instead of using a parameter wildcard which keeps them all.
41+
android.useMinimalKeepRules=true
42+
43+
# Enable resource optimizations for release build
44+
android.enableResourceOptimizations=true
45+
46+
# Default Android build features
47+
android.defaults.buildfeatures.buildconfig=false
48+
android.defaults.buildfeatures.aidl=false
49+
android.defaults.buildfeatures.renderscript=false
50+
android.defaults.buildfeatures.resvalues=false
51+
android.defaults.buildfeatures.shaders=false

0 commit comments

Comments
 (0)