Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
The workaround I found so far is to use project.afterEvaluate {} to access the build types, as they are created only after Baseline Profile Gradle Plugin creates them:
Kotlin
android {
buildTypes {
release { ... }
project.afterEvaluate {
getByName("benchmarkRelease") { }
getByName("nonMinifiedRelease") { }
}
}
}
Groovy
android {
buildTypes {
release { ... }
project.afterEvaluate {
benchmarkRelease { }
nonMinifiedRelease { }
}
}
}
This way there are no redundant build variants created.
pr...@google.com <pr...@google.com> #3
Attaching a sample project for convenience.
Description
I am adding custom data sources to Perfetto which also need custom configs. E.g.:
Could you extend or add a more generic variant of PerfettoTrace.record that takes a custom config as parameter?
Something along these lines should work for me:
Thank you