refactor(build): migrate to Baseline Profile Gradle Plugin

This commit is contained in:
Harsh Shandilya 2023-07-31 16:48:09 +05:30
parent d9ab751dbd
commit 3bb5dfffbe
No known key found for this signature in database
12 changed files with 19655 additions and 25322 deletions

View file

@ -18,6 +18,7 @@ plugins {
alias(libs.plugins.anvil)
alias(libs.plugins.modulegraphassert)
alias(libs.plugins.whetstone)
alias(libs.plugins.baselineprofile)
}
android {
@ -28,18 +29,16 @@ android {
useLiveLiterals = false
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
buildTypes {
create("benchmark") {
signingConfig = signingConfigs["debug"]
matchingFallbacks += "release"
isDebuggable = false
proguardFile("benchmark-rules.pro")
applicationIdSuffix = ".benchmark"
}
}
packaging { jniLibs { useLegacyPackaging = true } }
}
baselineProfile {
dexLayoutOptimization = true
mergeIntoMain = true
saveInSrc = true
from(projects.benchmark.dependencyProject)
}
moduleGraphAssert {
assertOnAnyBuild = true
maxHeight = 4