From e05c704539648af957ee89c870b0a71b7be12b26 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 19 May 2023 21:33:37 +0530 Subject: refactor(build): sync Gradle properties set with current AGP --- gradle.properties | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) (limited to 'gradle.properties') 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 -- cgit v1.2.3