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: android use googlePlayServicesIidVersion if available #804

Merged

Conversation

mikehardy
Copy link
Collaborator

@mikehardy mikehardy commented Sep 20, 2019

#802 showed that the initial attempt at a backwards-compatible dependency on the specific iid library prompted by #746 vs the full play services library had an error in the pre-AndroidX versioning (and will fail in the future for AndroidX)

This adds a new gradle variable googlePlayServicesIidVersion which targets the specific dependency version, and we will only fall back to the existing googlePlayServicesVersion if the IidVersion is not available. So this should fix the issue and still be compatible with the installed base.

While I was in the area I altered our build.gradle style to conform with current react-native-community best practices from react-native-community/discussions-and-proposals#151 (comment) and I committed a new version of example/yarn.lock for current development purposes

Checklist

  • I have tested this on a device/simulator for each compatible OS
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I added a sample use of the API (example/App.js)

@mikehardy
Copy link
Collaborator Author

@Johan-dutoit I tested this in all the variations I could think of, I think it's good to go but a second pair of eyes is best 👀

@Johan-dutoit
Copy link
Collaborator

LGTM 🔥

This is the outcome of a react-native-community discussion with the goal
of avoiding downloading multiple gradle versions and/or loading multiple
versions at the same time

react-native-community/discussions-and-proposals#151 (comment)
Makes the change to an iid-specific play services library dependency
truly backwards compatible and Fixes react-native-device-info#802
@mikehardy mikehardy merged commit 1f53fbc into react-native-device-info:master Oct 6, 2019
@mikehardy mikehardy deleted the gradle-iid-dep-fixup branch October 6, 2019 14:15
@mikehardy
Copy link
Collaborator Author

released as @next on NPM or 4.0.1-beta.2

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.

None yet

2 participants