-
Notifications
You must be signed in to change notification settings - Fork 18
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
Consider resources in flavor sources sets #452
Consider resources in flavor sources sets #452
Conversation
Codecov Report
@@ Coverage Diff @@
## master #452 +/- ##
============================================
+ Coverage 77.81% 77.88% +0.07%
Complexity 112 112
============================================
Files 16 16
Lines 631 633 +2
Branches 99 99
============================================
+ Hits 491 493 +2
Misses 63 63
Partials 77 77
|
Thanks! I'll try to take a look soon :) (I can also record new screenshots if they fail, since that's unconvenient for most people:/ )
Can you clarify which tasks did you have problems with? Which tasks you expected to run and which were up-to-date (or from-cache?)? Also, I wanted to let you know to ignore failing optional checks - I'm still working on restoring build's configuration-cache compatibility :) |
6296e62
to
ccd161d
Compare
Thanks! I tried to run the
My bad, I messed up the example and thought it was some caching issue. To showcase the problem, I created a simple sample: My understanding of how the different ways of specifying app icons work together was too weak to integrate it into the |
ccd161d
to
e84a449
Compare
Screenshots require very specific setup to be recorded:
Your error suggests you tried to run it on api >28 device which is well... not yet supported :/ I have a plan to migrate to paparazzi at some point, but last time I checked it was not yet stable.
I think the only missing part was the fact all the pngs you added are used on api <26 devices only, and you were missing an override for adaptive icons. I merged Regarding the fix itself, it was an obvious bug, thanks for fixing it 👍 |
Hi, @mateuszkwiecinski do you plan new release soon? 🙏 I just today faces to this merged (not released yet) issue :). |
Hey 👋 right, sorry for the delay 😞 |
When a product flavor overrides resources, they are currently not picked up by the plugin.
This PR includes the source set names of all defined product flavors and also extends
samle/example-custom
with some overriden icons to test.Steps to reproduce before the fix: build via
example-custom:installStagingAaaDebug
and observe that the app icon used is from themain
source set which has lower priority thanstaging
After the fix, the correct icons from
staging/res
are picked up.Note: I had to use
--rerun-tasks
at times since the task does not always run, depending on the changes made since the last execution.