2020-07-14 06:01:37 +00:00
|
|
|
#
|
2021-03-09 09:15:27 +00:00
|
|
|
# Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
2020-07-14 06:01:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#
|
2020-09-20 17:13:31 +00:00
|
|
|
org.gradle.parallel=true
|
2021-12-21 12:26:20 +00:00
|
|
|
org.gradle.configureondemand=false
|
2020-09-20 17:13:31 +00:00
|
|
|
org.gradle.caching=true
|
2020-07-14 06:01:37 +00:00
|
|
|
|
2021-11-15 17:51:57 +00:00
|
|
|
# Enable filesystem watching
|
2020-09-20 17:13:31 +00:00
|
|
|
org.gradle.vfs.watch=true
|
2019-10-13 06:06:19 +00:00
|
|
|
|
2022-02-17 04:43:04 +00:00
|
|
|
# Enable experimental configuration caching
|
|
|
|
org.gradle.unsafe.configuration-cache=true
|
|
|
|
|
2023-03-21 07:36:01 +00:00
|
|
|
# Enable kotlin-assignment plugin
|
|
|
|
systemProp.org.gradle.unsafe.kotlin.assignment=true
|
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# Enable Kotlin incremental compilation
|
|
|
|
kotlin.incremental=true
|
2019-10-13 06:06:19 +00:00
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# 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
|
|
|
|
|
2022-06-10 17:57:56 +00:00
|
|
|
# New incremental compilation for Kotlin
|
|
|
|
kotlin.incremental.useClasspathSnapshot=true
|
|
|
|
kotlin.build.report.output=file
|
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# Use R8 instead of ProGuard for code shrinking.
|
2023-03-25 05:55:50 +00:00
|
|
|
# TODO: Re-enable after diagnosing JGit VerifyError
|
|
|
|
android.enableR8.fullMode=false
|
2020-09-20 17:13:31 +00:00
|
|
|
|
|
|
|
# Enable AndroidX
|
|
|
|
android.useAndroidX=true
|
2019-10-13 06:06:19 +00:00
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# Enable non-transitive R class namespacing where each library only contains
|
2019-10-13 06:06:19 +00:00
|
|
|
# references to the resources it declares instead of declarations plus all
|
|
|
|
# transitive dependency references.
|
2020-09-20 17:13:31 +00:00
|
|
|
android.nonTransitiveRClass=true
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# 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
|
|
|
|
|
2022-12-29 16:30:40 +00:00
|
|
|
# Compatibility with Gradle 8.0
|
|
|
|
android.experimental.legacyTransform.forceNonIncremental=true
|
|
|
|
|
2023-01-13 09:24:28 +00:00
|
|
|
# Opt into new publishing APIs
|
|
|
|
android.disableAutomaticComponentCreation=true
|
|
|
|
|
2020-09-20 17:13:31 +00:00
|
|
|
# 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
|
2020-10-16 15:18:11 +00:00
|
|
|
|
|
|
|
# Disable warnings about unsupported features, we know what we're doing
|
2022-12-29 16:30:40 +00:00
|
|
|
android.suppressUnsupportedOptionWarnings=android.enableR8.fullMode,android.enableResourceOptimizations,android.nonTransitiveRClass,android.experimental.legacyTransform.forceNonIncremental,android.suppressUnsupportedOptionWarnings,android.sdk.channel
|
2021-02-06 12:04:17 +00:00
|
|
|
|
|
|
|
# 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
|
2023-03-03 18:21:02 +00:00
|
|
|
SONATYPE_CONNECT_TIMEOUT_SECONDS=120
|
|
|
|
SONATYPE_CLOSE_TIMEOUT_SECONDS=1800
|
2021-11-10 03:21:11 +00:00
|
|
|
|
|
|
|
# Add opens for KAPT
|
|
|
|
# https://youtrack.jetbrains.com/issue/KT-45545#focus=Comments-27-4862682.0-0
|
|
|
|
org.gradle.jvmargs=-Dfile.encoding=UTF-8 \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
|
|
|
|
|
|
|
|
kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
|
|
|
|
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
|