fix: Retarget Android assets with path names#7328
Conversation
src/SourceGenerators/Uno.UI.SourceGenerators/DrawableLookup/DrawableLookupGenerator.cs
Outdated
Show resolved
Hide resolved
src/SourceGenerators/Uno.UI.SourceGenerators/DrawableLookup/DrawableLookupGenerator.cs
Outdated
Show resolved
Hide resolved
src/SourceGenerators/Uno.UI.SourceGenerators/DrawableLookup/DrawableLookupGenerator.cs
Outdated
Show resolved
Hide resolved
BREAKING CHANGE: This update adjust the name of android drawables, in order to have full path disambiguation. This also means that actual resource names now will be separated by "_" in place of the folder hierarchy. This is generally not a problem is the files are read using `ImageSource`.
1a95f56 to
5f76bc2
Compare
|
The build 49465 found UI Test snapshots differences: Details
|
|
The build 49492 found UI Test snapshots differences: Details
|
closes #3754, closes #8618
Continued PR from #4239
PR Type
What is the current behavior?
Currently having two images with the same name in different subfolders on Android causes issues as incorrect image may be referenced. For example:
When
Image.Sourceis set to/Assets/TitleBar.png, the/Assets/Code/TitleBar.pngis displayed instead.What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.