Skip to content
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

Add resources #1513

Merged
merged 5 commits into from
Nov 6, 2022
Merged

Add resources #1513

merged 5 commits into from
Nov 6, 2022

Conversation

RobertFlatt
Copy link
Contributor

Complement to p4a PR

@misl6
Copy link
Member

misl6 commented Oct 15, 2022

For the logs:
Related to kivy/python-for-android#2684, so we should keep this PR on hold.

Comment on lines +938 to +943
if ':' in resource:
resource_src, resource_dest = resource.split(":")
else:
resource_src = resource
resource_dest = ""
cmd.append(realpath(expanduser(resource_src)) + ':' + resource_dest)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, duplicating such logic on buildozer may lead to something unexpected (E.g: I needed to recall how the no : syntax worked on python-for-android side.)

This is bad, but I'm NOT blaming you, since we're expanding paths on buildozer side everywhere. ( Bad, and should be moved on python-for-android ? )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, absolutely, but as you point out this is consistent with for example https://github.com/kivy/buildozer/blob/master/buildozer/targets/android.py#L931L938

I choose to copy what is shown to work, it is the low risk implementation. And yes the whole interface needs a rewrite, and an automatic appclean, and the .spec reorganized into common and uncommon, and....

Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a super-minor suggestion (typo) and a thought about something that you should not address ATM, but that we should care about if we want to avoid to break the user experience at some point in the future.

buildozer/default.spec Outdated Show resolved Hide resolved
Co-authored-by: Mirko Galimberti <[email protected]>
@misl6 misl6 merged commit a67b52a into kivy:master Nov 6, 2022
Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants