-
Notifications
You must be signed in to change notification settings - Fork 243
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 xcassets icon generation (correct image sizes) + stop overriding user defined assets once generated #951
base: master
Are you sure you want to change the base?
Conversation
Hey @AndreMiras , I fixed the icon generation issues within the buildozer -v ios debug |
Thank you for spending time on that one 🙏 |
I used black for formatting. So, I'll just realign the list back to their original style. Please wait!! |
@AndreMiras Reverted Dict formatting to original. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Novfensec I see we still have some indentation that breaks the original style, can you please take a look?
Ahhh. Sorry for that I just overlooked, just a second! |
@misl6 |
Hey, @misl6 @AndreMiras , I earlier thought of a mechanism which adds specific checks for each required icon file in the These are the major steps :-
This is a huge automation of the process, but this is likely to be very rarely used. For now it has only basic checks for directories not for specific files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From your explanation I got what we're trying to achieve and how we can make the appropriate changes.
kivy-ios overriding the generated files is not necessarily a bug, actually that could be a wanted feature (or at least now is an undocumented feature that someone might be taking advantage of).
But, I also agree that in certain cases (like when used in buildozer automations) kivy-ios overriding user-defined assets might be unexpected.
Can we split the PRs in two parts?
- Fix correct image sizes
- Allow through a flag to not overwrite an already-existing asset (defaults to overwrite for backward compatibility)
Then, in buildozer, feel free to open a PR which adds an option to not overwrite an existing asset.
Yes, so should I unindent the code blocks or you'll undo those changes after merging, and make a new pull ?? |
Introduction
This pull-request is related to the below bug;
Changes
_buildimage
function inkivy_ios.tools.external.xcassets
to build correct image sizes.Images.xcassets.AppIcon.appiconset
andImages.xcassets.LaunchImage.launchimage
if they are already present.With kivy_ios merging the below pull-requests along with this makes it usable along with
buildozer
:Testing
3.11
0.29.36
8.2.0
with old recipe.2.2.0
with latest recipe by the pull-request Upgrade itsdangerous recipe to 2.2.0 #946.1.5.0