Assigned
Status Update
Comments
sg...@google.com <sg...@google.com> #2
Actually, the second part of that (@font/some_other_font not being resolved) doesn't seem to be the case after re-opening the project. The main issue (@app_font not being resolved by the IDE in layout files despite working correctly at build/run time) is still there however
go...@jakewharton.com <go...@jakewharton.com> #3
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
go...@jakewharton.com <go...@jakewharton.com> #4
(Adding to 3.5 hotlist in case this is a regression)
sg...@google.com <sg...@google.com> #5
This is not a regression, our XML stack doesn't handle "non-values" resource types well in res/values files. We'll have to rework it as soon as possible to fix this.
Description
Feature request from Jake Wharton on Slack:
I know it would be kind of weird, but it would be incredibly convenient if
ExtractR8Rules
also supported extractingMETA-INF/proguard
rules since it (andExtractR8RulesCommand
andEmbeddedRulesExtractor
) already contains 99% of the infrastructure required for doing this.I am setting up a test harness to validate my library's embedded rules. It extracts R8 rules and then runs R8 over the test suite and everything it references to ensure it still passes. I am also doing the same for ProGuard, but nothing seems to exist to extract its rules conveniently. I would not like to write one, and instead contribute like 20 LOC to yours to add a new flag (
--proguard
?) which is disjoint with--compiler-version
for doing this. What do you think?