refactor(build): sync Gradle properties set with current AGP
This commit is contained in:
parent
6b8ca1601d
commit
e05c704539
5 changed files with 23 additions and 37 deletions
|
@ -22,6 +22,7 @@ crowdin {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileOptions { isCoreLibraryDesugaringEnabled = true }
|
compileOptions { isCoreLibraryDesugaringEnabled = true }
|
||||||
|
namespace = "app.passwordstore"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "app.passwordstore"
|
applicationId = "app.passwordstore"
|
||||||
|
@ -30,13 +31,11 @@ android {
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
compose = true
|
compose = true
|
||||||
composeOptions {
|
|
||||||
useLiveLiterals = false
|
|
||||||
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
composeOptions {
|
||||||
namespace = "app.passwordstore"
|
useLiveLiterals = false
|
||||||
|
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -31,44 +31,28 @@ kapt.include.compile.classpath=false
|
||||||
kotlin.compiler.preciseCompilationResultsBackup=true
|
kotlin.compiler.preciseCompilationResultsBackup=true
|
||||||
kotlin.build.report.output=file
|
kotlin.build.report.output=file
|
||||||
|
|
||||||
# Use R8 instead of ProGuard for code shrinking.
|
|
||||||
android.enableR8.fullMode=true
|
|
||||||
|
|
||||||
# Enable AndroidX
|
# Enable AndroidX
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
|
|
||||||
# Enable non-transitive R class namespacing where each library only contains
|
# Disable mostly unused default Android build features
|
||||||
# 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
|
|
||||||
android.defaults.buildfeatures.resvalues=false
|
android.defaults.buildfeatures.resvalues=false
|
||||||
android.defaults.buildfeatures.shaders=false
|
android.defaults.buildfeatures.shaders=false
|
||||||
|
android.library.defaults.buildfeatures.androidresources=false
|
||||||
|
|
||||||
# Disable warnings about unsupported features, we know what we're doing
|
# Disallow resolution of dependencies at configuration time
|
||||||
android.suppressUnsupportedOptionWarnings=android.enableR8.fullMode,android.enableResourceOptimizations,android.nonTransitiveRClass,android.experimental.legacyTransform.forceNonIncremental,android.suppressUnsupportedOptionWarnings,android.sdk.channel
|
android.dependencyResolutionAtConfigurationTime.disallow=true
|
||||||
|
|
||||||
|
# Disallow parsing the manifest too early in the build process
|
||||||
|
android.disableEarlyManifestParsing=true
|
||||||
|
|
||||||
|
# Disable warnings about unsupported features
|
||||||
|
android.suppressUnsupportedOptionWarnings=android.dependencyResolutionAtConfigurationTime.disallow,android.disableEarlyManifestParsing,android.suppressUnsupportedOptionWarnings
|
||||||
|
|
||||||
# Maven publishing
|
# Maven publishing
|
||||||
GROUP=com.github.android-password-store
|
GROUP=com.github.android-password-store
|
||||||
|
|
||||||
# OSSRH sometimes struggles with slow deployments, so this makes Gradle
|
# OSSRH sometimes struggles with slow deployments, so this makes Gradle
|
||||||
# more tolerant to those delays.
|
# 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_CONNECT_TIMEOUT_SECONDS=120
|
||||||
SONATYPE_CLOSE_TIMEOUT_SECONDS=1800
|
SONATYPE_CLOSE_TIMEOUT_SECONDS=1800
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,9 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
sourceSets { getByName("test") { resources.srcDir("src/main/res/raw") } }
|
|
||||||
namespace = "app.passwordstore.passgen.diceware"
|
namespace = "app.passwordstore.passgen.diceware"
|
||||||
|
buildFeatures { androidResources = true }
|
||||||
|
sourceSets { getByName("test") { resources.srcDir("src/main/res/raw") } }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -11,6 +11,7 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "app.passwordstore.ssh"
|
namespace = "app.passwordstore.ssh"
|
||||||
|
buildFeatures { androidResources = true }
|
||||||
sourceSets { getByName("test") { resources.srcDir("src/main/res/raw") } }
|
sourceSets { getByName("test") { resources.srcDir("src/main/res/raw") } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,11 @@ plugins {
|
||||||
android {
|
android {
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
compose = true
|
compose = true
|
||||||
composeOptions {
|
androidResources = true
|
||||||
useLiveLiterals = false
|
}
|
||||||
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
composeOptions {
|
||||||
}
|
useLiveLiterals = false
|
||||||
|
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
||||||
}
|
}
|
||||||
namespace = "app.passwordstore.ui.compose"
|
namespace = "app.passwordstore.ui.compose"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue