-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(android): Enable AndroidX and use AndroidX dependencies #2045
Conversation
Should be accepted ASAP. |
It's planned for 2.0.0 Milestone but I noticed it being a roadblock for lots of devs including myself. Having said that, it might make or break some of the projects depending on the plugins installed (Mainly Cordova plugins). I'd suggest forking and installing @capacitor/android locally as a temporary measure until official release. These are the Cordova plugins that I am currently using without any issue.
|
I tested this by doing the following:
I then opened android studio and ran Refactor -> Migrate to AndroidX. That found some additional changes in Here's that diff:
@PR1YANKPAT3L Should those deps also be updated with this PR? |
This seems like something worth merging ASAP. I see it's on the 2.0 milestone, but https://github.com/ionic-team/capacitor/milestones doesn't strike me as being up to date. @jcesarmobile could you add some insight there? Edit - sorry, I see the milestones have been updated recently. What's going on there? Why are there only 1.1.0 and 2.0.0 milestones when there are 4 released versions since 1.1.0? |
It’s in the 2.0.0 milestone because it’s a breaking change, so can’t be merged ASAP |
@jcesarmobile no comment on the lack of milestone maintenance or insight into what's blocking this? Please advise as to what needs to happen to get this released. |
The only milestone I’m maintaining is 2.0.0 to track all the required breaking changes. |
@josh-m-sharpe Thanks for the feedback. I am looking into it, will post updates/changes in a few hours. |
@PR1YANKPAT3L nice update. After running android studio's migration I no longer see a diff. After clicking Run, I get this error though:
guessing I added capacitor-android incorrectly? I've added it with |
@jcesarmobile What is the plan for 2.0.0? |
@PR1YANKPAT3L following up on the previous comment... I'm definitely having trouble linking to a local version of
Then, when I build android, I get a whole slew of errors like the ones below, all referencing
and
How are you installing/linking/whatever your local version such that you can use it in a project? Thanks! |
@josh-m-sharpe I recorded the process for easy install: Link NOTE: It's important to checkout develop branch as it contains the AndroidX support. I am keeping develop up to date from upstream. Commands I used in sequence (Starting from your project root directory):
|
This reverts commit 79ad0e2.
1a5337a
to
cc56ed5
Compare
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.
You missed a few, but I'll fix it in a separate PR.
Other than that, it looks good, thanks!
Fixes Issue #1937