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

fix: use react-native convention for version overrides, allows AndroidX to work #201

Merged
merged 1 commit into from
Jun 19, 2019
Merged

fix: use react-native convention for version overrides, allows AndroidX to work #201

merged 1 commit into from
Jun 19, 2019

Conversation

mikehardy
Copy link
Contributor

This implements the standard way that react-native modules allow for overrides, and moves the default to 28 so AndroidX will work, otherwise users can't jetify your library and use AndroidX dependencies.

Mentioned here: react-native-netinfo/react-native-netinfo#107 (comment)

@mikehardy
Copy link
Contributor Author

@pronav if you can look at this and merge it, it'll help users - there are compile fails happening now related to it unfortunately

mikehardy added a commit to mikehardy/rn-androidx-demo that referenced this pull request Jun 19, 2019
this uncovers some latent resource errors (react-native-razorpay has one: razorpay/react-native-razorpay#201)
@rocknegi
Copy link

@mikehardy working fine now

@sumedht sumedht merged commit ba399b1 into razorpay:master Jun 19, 2019
@pronav
Copy link
Contributor

pronav commented Jun 19, 2019

Thanks @mikehardy for the neat fix!

@mikehardy
Copy link
Contributor Author

Happy to help - this actually helped me strengthen my tests for jetifier, and now that it's resolved everyone benefits on both sides. Cheers

@mikehardy mikehardy deleted the allow-version-overrides branch June 21, 2019 17:17
@mikehardy
Copy link
Contributor Author

@pronav @sumedht React-Native 0.60 is in RC3 now, and will be released in the next couple days, if you don’t release this change, use of your library will result in broken builds for those using jetifier, the recommended way for developers to migrate.

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

Successfully merging this pull request may close these issues.

4 participants