Multidimensional flavors are currently not working properly
See original GitHub issueOur project has several flavor dimensions (flavorDimensions 'pay', 'country', 'api'
) but the only ktlint task that works is the one that contains only the single dimension where the .kt files are (in our case app/src/italy/java/…/SomeFile.kt):
> Task :app:ktlintItalyCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] Checking /home/rleinardi/Workspace/git/dsa_android/app/src/italy/java/ui/digitalcard/DigitalCardActivity.kt
[DEBUG] Checking /home/rleinardi/Workspace/git/dsa_android/app/src/italy/java/ui/digitalcard/DigitalCardViewModel.kt
[DEBUG] Checking /home/rleinardi/Workspace/git/dsa_android/app/src/italy/java/ui/digitalcard/DigitalCardRepository.kt
[DEBUG] 612ms / 3file(s) / 4error(s)
> Task :app:ktlintNonpayCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 161ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyCompatCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 143ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyCompatDebugCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 133ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyCompatReleaseCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 145ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyDevCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 137ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyDevDebugCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 129ms / 0file(s) / 0error(s)
> Task :app:ktlintNonpayItalyDevReleaseCheck
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "checkstyle" reporter with {verbose=true}
[DEBUG] {} loaded from .editorconfig
[DEBUG] 125ms / 0file(s) / 0error(s)
The expected result is that all the task that include “Italy” as country flavor dimension will run the check/format verification.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Two dimensional product flavors, Android studio?
The method I have implemented to manage this situation is to use one flavor per character per market in my app-level build.gradle :...
Read more >Advanced Android Flavors Part 2 — Enter Flavor Dimensions
In the build variants menu we now have six flavors to choose from. Each has been created for us by Gradle. They are:...
Read more >Perspective: Complexities of flavour - Nature
So the quality we are interested in is not taste per se, but flavour. However, trying to define flavour is far from straightforward....
Read more >Accurate Physical Activity Recognition using Multidimensional ...
proposed a global spatial attention (GSA) model that explored different skeletal joints and adopted an accumulative learning curve to distinguish and recognize ...
Read more >Flavor and Rapid Prediction of Red Wine by the ... - NCBI
At present, there is no quantitative control study on the flavor of ... Also, for red wine multidimensional spectral data, the algorithm in ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
opened PR with support for unit, integration test and code
OK I found a solution that properly handle source build variances:
But this can be improved to also handle Unit and Espresso Tests.