Fix xcassets icon generation (correct image sizes) + stop overriding user defined assets once generated#951
Fix xcassets icon generation (correct image sizes) + stop overriding user defined assets once generated#951Novfensec wants to merge 7 commits intokivy:masterfrom
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. |
misl6
left a comment
There was a problem hiding this comment.
@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. |
misl6
left a comment
There was a problem hiding this comment.
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.
|
@misl6 After a lot more thinking I concluded that we will never require a flag atleast for now beacuse most of the kivy-ios users don't even know that we have to provide a set of icons for all apple platforms. As you suggested this is a fantastic feature provided by kivy-ios. I reverted the changes by unindenting those code blocks to their original style. Now they will build a set of icons without interruption. But before a final merge I want to reexamine these changes by building a test app to see if it doesn't crash. I will inform with the appropriate link. Please leave your thoughts!!! |
|
@AndreMiras and @misl6 Sorry for pinging everytime. I tested with the updated The run used a custom fork of kivy-ios with bug fixes related to ios deploy target and xcassets only. |
Introduction
This pull-request is related to the below bug;
Changes
_buildimagefunction inkivy_ios.tools.external.xcassetsto build correct image sizes.Images.xcassets.AppIcon.appiconsetandImages.xcassets.LaunchImage.launchimageif they are already present.With kivy_ios merging the below pull-requests along with this makes it usable along with
buildozer:Testing
3.110.29.368.2.0with old recipe.2.2.0with latest recipe by the pull-request Upgrade itsdangerous recipe to 2.2.0 #946.1.5.0