-
Notifications
You must be signed in to change notification settings - Fork 150
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
Android lib: update to build.gradle #56
base: master
Are you sure you want to change the base?
Conversation
Hi @rozPierog, thanks for the contribution. I'm not sure that this solves the real issue. While it will work for this specific library, a typical RN project uses multiple dependencies, and naturally you will not be able to apply this strategy to all of them... If you need specific versions, why not use |
Hi @artald great to hear from you, here is my take on this. Well first of all it solves issue with
Also keeping buildTools and targetSDK updated benefits everyone using this library because of shorter compile times and better compatibility. |
Well @artald, my approach is now part of react-native. Does this change your mind on this PR? |
If it's a widely adopted pattern I don't mind merging it since it does no harm (none that I can't think of at least). I'm just wondering - what are you planning to do with other libraries that haven't adopted this approach yet? PRing everyone can't scale, and on RN projects lots of dependencies are typically being used and added all the time. That's why I thought that |
@rozPierog ⬆️ |
@artald Sorry for late reply it got buried in my inbox, and thanks @radex for reminding mi of this.
I know, but making changes in few libraries can be a cause of snowball effect so that in the future its going to be preferred way of writing versions. There is no need to force all libraries to this "new" approach, change can happen gradually, not all at once.
|
Previous gradle configuration had hard coded version numbers which sometimes clashed with project versions. Well not anymore. Now library uses rootProject values when its possible with fallback on default values.
I also removed ProGuard because the library is open source and obscuring code sounds like a bad idea in this case because it doesn't give use any benefits I can think of, and may cause problems on some configurations.