-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
use Chaquopy syntax directly in the android folder #2129
Conversation
03b6396
to
668f3b7
Compare
Tests run so far for reference:
|
Looking good; as a quick note, if you add a change note file to your PR, CI will run the full testbed suite when you push your code to GitHub. Right now, it's failing tests early because there's no change note. |
Also, I see there's a couple of CI failures in test_button (follow the "testbed (android)" link below):
|
Thank you! I was fumbling my way around until I had a bit of deeper understanding later on as I was testing it. I'll update this shortly with both updates (updating this dynamic_proxy, and removing libs). I really appreciate the help again folks @freakboy3742 and @mhsmith ! |
@freakboy3742 @mhsmith I'm sure you folks are aware of this and I think it was discussed in the discord but there is no It seems to be in the works, based on the discord discussion. |
The only errors that I get with this PR is
I get these tests to pass locally... I can't trigger this action to run again here unless I add another commit. I've removed the Thanks again for the help. |
On a separate note this PR affects #2130 |
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.
I've flagged a couple of minor things inline, but otherwise, this looks like a thorough set of changes. Nice work!
The test failures you're seeing look like they've been caused by the final removal of the libs directory. There's one last reference to toga_android.libs
in the tests_backend
folder. I'm guessing it's passing for you locally because of a stale .pyc
file or resource in your build. A clean build (including deleting the app from your phone/emulator) should reproduce the bug.
There's one closely related change that might also be possible as part of this - removing rubicon-java
as a package requirement. Now that we're not using Rubicon syntax, I think we may be able to finish the job and remove Rubicon as a package requirement. I'm not 100% certain about this - there might be one or two subtle uses that are lingering - but if we're in a position to remove it, we should. However, if it turns out things start exploding when you remove this requirement, and the fix isn't immediately obvious, that's not a blocker to merging what you've got here.
I've already removed the calls to This file currently lives in the Briefcase Android template, so to make it easier to update, it should be copied into toga_android. The copy in the template should be left alone for now, because it's needed by older versions of Toga. |
Co-authored-by: Russell Keith-Magee <[email protected]>
Just removed that reference in the PS. This project has a very impressive test suite folks, I'm glad I got to use and see it in full force here. |
Thanks, it's been our main focus for the last 6 months. Do you want to do the last couple of things mentioned above?
I think those are the only remaining references to "rubicon" in the |
Ironically, this is a module that will need to be in |
I didn't read this before I did my most recent push to remove the Rubicon requirement. I can remove it if needed, no problem there. If I'm not mistaken you folks are discussing using a similar approach to
toga_android.libs
IMO the easiest path forward for this would be to:
I'm good with either way:) Let me know what you folks think @mhsmith and @freakboy3742 |
Moving over android_events.py should be pretty simple, so I'll do it myself now. |
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.
Looks like Malcolm has pushed the ball the last couple of inches - so I think this is done! Thanks for the contribution - there's a lot of work here, and it significantly improves the readability of the Android codebase.
Noted, thanks. I'll do a merge when I finalize the PR. |
Trying to remove references to
toga_android.libs
by importing from chaquopy directly.Fixes #1980
PR Checklist: