Enable stable config cache
This commit is contained in:
parent
5187b7cb04
commit
20b8ad58aa
|
@ -7,18 +7,9 @@ plugins {
|
||||||
|
|
||||||
apply from: "../instance-build.gradle"
|
apply from: "../instance-build.gradle"
|
||||||
|
|
||||||
def getGitSha = {
|
final def gitSha = providers.exec {
|
||||||
def stdout = new ByteArrayOutputStream()
|
commandLine('git', 'rev-parse', '--short=7', 'HEAD')
|
||||||
try {
|
}.standardOutput.asText.get().trim()
|
||||||
exec {
|
|
||||||
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
|
||||||
standardOutput = stdout
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
return "unknown"
|
|
||||||
}
|
|
||||||
return stdout.toString().trim()
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk 33
|
compileSdk 33
|
||||||
|
@ -53,7 +44,7 @@ android {
|
||||||
green {
|
green {
|
||||||
resValue "string", "app_name", APP_NAME + " Test"
|
resValue "string", "app_name", APP_NAME + " Test"
|
||||||
applicationIdSuffix ".test"
|
applicationIdSuffix ".test"
|
||||||
versionNameSuffix "-" + getGitSha()
|
versionNameSuffix "-" + gitSha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +70,7 @@ android {
|
||||||
// Exclude unneeded files added by libraries
|
// Exclude unneeded files added by libraries
|
||||||
packagingOptions.resources.excludes += [
|
packagingOptions.resources.excludes += [
|
||||||
'LICENSE_OFL',
|
'LICENSE_OFL',
|
||||||
'LICENSE_UNICODE',
|
'LICENSE_UNICODE',
|
||||||
]
|
]
|
||||||
|
|
||||||
bundle {
|
bundle {
|
||||||
|
|
|
@ -15,5 +15,8 @@ org.gradle.jvmargs=-Xmx4096m
|
||||||
# use parallel execution
|
# use parallel execution
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|
||||||
|
# https://docs.gradle.org/7.6/userguide/configuration_cache.html
|
||||||
|
org.gradle.unsafe.configuration-cache=true
|
||||||
|
|
||||||
android.enableR8.fullMode=true
|
android.enableR8.fullMode=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
|
|
|
@ -14,4 +14,6 @@ dependencyResolutionManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
|
||||||
|
|
||||||
include ':app'
|
include ':app'
|
||||||
|
|
Loading…
Reference in New Issue