build: Make baselineprofile compile all variants into one
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
9cf323fd71
commit
4753081469
2 files changed
+13
-1
No files matched your search
@@ -1,5 +1,11 @@
|
|||||||
package app.lawnchair.baseline
|
package app.lawnchair.baseline
|
||||||
|
|
||||||
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
|
|
||||||
object Constants {
|
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 {
|
composeCompiler {
|
||||||
stabilityConfigurationFiles.addAll(
|
stabilityConfigurationFiles.addAll(
|
||||||
layout.projectDirectory.file("compose_compiler_config.conf"),
|
layout.projectDirectory.file("compose_compiler_config.conf"),
|
||||||
|
|||||||
Reference in new issue
Block a user