mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
build: Make baselineprofile compile all variants into one
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
package app.lawnchair.baseline
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
|
||||
object Constants {
|
||||
val PACKAGE_NAME = "app.lawnchair"
|
||||
val PACKAGE_NAME: String
|
||||
get() = InstrumentationRegistry.getArguments()
|
||||
.getString("androidx.benchmark.targetPackageName")
|
||||
?: InstrumentationRegistry.getInstrumentation().targetContext.packageName
|
||||
.removeSuffix(".baseline")
|
||||
}
|
||||
|
||||
@@ -354,6 +354,12 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
baselineProfile {
|
||||
saveInSrc = true
|
||||
mergeIntoMain = true
|
||||
automaticGenerationDuringBuild = false
|
||||
}
|
||||
|
||||
composeCompiler {
|
||||
stabilityConfigurationFiles.addAll(
|
||||
layout.projectDirectory.file("compose_compiler_config.conf"),
|
||||
|
||||
Reference in New Issue
Block a user