aboutsummaryrefslogtreecommitdiff
path: root/gradle.properties
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-05-19 21:33:37 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-05-20 23:50:39 +0530
commite05c704539648af957ee89c870b0a71b7be12b26 (patch)
treec5b487684881005b7255db368ec0ec84dd930c8c /gradle.properties
parent6b8ca1601d0668125071839d9f10912d765460ad (diff)
refactor(build): sync Gradle properties set with current AGP
Diffstat (limited to 'gradle.properties')
-rw-r--r--gradle.properties36
1 files changed, 10 insertions, 26 deletions
diff --git a/gradle.properties b/gradle.properties
index 51c9e082..924d6591 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -31,44 +31,28 @@ kapt.include.compile.classpath=false
kotlin.compiler.preciseCompilationResultsBackup=true
kotlin.build.report.output=file
-# Use R8 instead of ProGuard for code shrinking.
-android.enableR8.fullMode=true
-
# Enable AndroidX
android.useAndroidX=true
-# Enable non-transitive R class namespacing where each library only contains
-# references to the resources it declares instead of declarations plus all
-# transitive dependency references.
-android.nonTransitiveRClass=true
-
-# Only keep the single relevant constructor for types mentioned in XML files
-# instead of using a parameter wildcard which keeps them all.
-android.useMinimalKeepRules=true
-
-# Enable resource optimizations for release build
-android.enableResourceOptimizations=true
-
-# Compatibility with Gradle 8.0
-android.experimental.legacyTransform.forceNonIncremental=true
-
-# Default Android build features
-android.defaults.buildfeatures.buildconfig=false
-android.defaults.buildfeatures.aidl=false
-android.defaults.buildfeatures.renderscript=false
+# Disable mostly unused default Android build features
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false
+android.library.defaults.buildfeatures.androidresources=false
+
+# Disallow resolution of dependencies at configuration time
+android.dependencyResolutionAtConfigurationTime.disallow=true
+
+# Disallow parsing the manifest too early in the build process
+android.disableEarlyManifestParsing=true
-# Disable warnings about unsupported features, we know what we're doing
-android.suppressUnsupportedOptionWarnings=android.enableR8.fullMode,android.enableResourceOptimizations,android.nonTransitiveRClass,android.experimental.legacyTransform.forceNonIncremental,android.suppressUnsupportedOptionWarnings,android.sdk.channel
+# Disable warnings about unsupported features
+android.suppressUnsupportedOptionWarnings=android.dependencyResolutionAtConfigurationTime.disallow,android.disableEarlyManifestParsing,android.suppressUnsupportedOptionWarnings
# Maven publishing
GROUP=com.github.android-password-store
# OSSRH sometimes struggles with slow deployments, so this makes Gradle
# more tolerant to those delays.
-systemProp.org.gradle.internal.http.connectionTimeout=500000
-systemProp.org.gradle.internal.http.socketTimeout=500000
SONATYPE_CONNECT_TIMEOUT_SECONDS=120
SONATYPE_CLOSE_TIMEOUT_SECONDS=1800