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

How to handle AndroidX conversion in libraries, with react-native 0.60 #28

Closed
mikehardy opened this issue May 24, 2019 · 1 comment
Closed

Comments

@mikehardy
Copy link
Collaborator

There has been some discussion on Discord about how to support react-native-community module consumers on both sides of the AndroidX divide in the transition from react-native 0.59 to 0.60

The general problem is that react-native native modules are included in the Android build system as source generally, and all the Java source in a project must be using either AndroidX or the support libraries, but they may not mix.

So if a module converts to AndroidX and distributes as source, the only way to use the module in your project is to convert your project to AndroidX. It is reasonable to assume there are projects that either cannot do this, or cannot do it immediately, implying that we will be stranding those projects on old module versions for any module that converts to AndroidX.

I do not believe there has been consensus on how to support non-AndroidX and AndroidX projects at the same time, but the ideas I have seen so far are:

I'm interested in the AAR ideas but I'm unsure of the exact mechanics to generate an AAR, distribute it, and how to document AAR integration into a project.

@mikehardy
Copy link
Collaborator Author

mikehardy commented May 24, 2019

Closing in preference to react-native-community/discussions-and-proposals#129

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

No branches or pull requests

1 participant