-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix auto-res namespace handling #1847
Conversation
I tested this locally. It fixes the regression - we had 18 tests cases that failed earlier, but they pass now with this patch. |
I think this PR might have caused some breakages in our build:- On one project:- On another:- Caused by: java.lang.NumberFormatException: For input string: "/path/to/resources/color/some_resource.xml" |
@jongerrish Ugh, I'll see if I can figure something out during the day. The resource code is icky and hard to test as you and @holmari have conflicting cases here. It would be nice to have a few samples that we test against that can be more complex. By the way it looks like you have stack trace filtering off, is this for performance reasons? |
It's for confidentiality reasons I can't leak stack traces unfortunately... ...let me know if you have any questions I'll see what info I can provide.
|
@jongerrish Would be great if you could give #1851 a try. |
I just ran this through our submit queue and it works. Previous failures are fixed and no new failures. I'll go ahead and merge this. Thanks for the quick response. |
@holmari notified me that 8d0e029 might cause a regression in regards to library handling. This is because resources from a library project will have
http://schemas.android.com/apk/res-auto
replaced with the library package name instead of the application package name.This commit changes this so we never actually replace package names but instead look up by
http://schemas.android.com/apk/res-auto
if looking up by package name fail. I don't have a specific test case but regression tests pass.