-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't setup macro-bench different product flavor (we cannot choose between the following variants of project ) #161
Comments
You're describing an issue in your own implementation rather than the sample code. |
There are 2 possible workarounds I have found so far:
Neither solutions are ideal, so a new sample showcasing how to configure Gradle properly for multiple flavors would be much appreciated. |
@keyboardsurfer @Pittvandewitt I had a problem with my own implementation. I had to create both flavor and dimensions in the benchmark module too and then needed to add the required flavor resources benchmark module changes flavorDimensions "platform" |
There are 2 options to work with flavors and multi modules:
This allows benchmarking just the specified product flavor. In your case it may be enough. |
I also meet this question.
|
Please take a look at the implementation of macrobenchmark in the Now in Android application. It features product flavors and is configured to run benchmarks in the intended way. |
How Can I setup macro-bench different product flavors (we cannot choose between the following variants of the project )
The text was updated successfully, but these errors were encountered: