-
Notifications
You must be signed in to change notification settings - Fork 52
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
[wip/tbd] remove Android Gradle tools reference #129
Conversation
from the generated code in `android/build.gradle` in order to avoid multiple Android build tools Gradle plugin versions in React Native projects as discussed in react-native-community/discussions-and-proposals#151
If I understood correctly from that PRs, @dulmandakh says that gradle files can be moved to root directory of a module, so the maintainers can develop their module just like before, but they have to open the root directory of the module instead of the
I've taken a look at your changes, it seems you only removed the buildscript sections from all files and not added any gradle related config file in the root directory of the module template, so I'm not sure if it's a correct way, because in all that @dulmandakh's PRs he moved the configs to the root directory not just removing them. |
I'm not sure if this is the best approach. As mentioned, by removing the Android Gradle plugin from the template the projects are no longer "self-sustaining": Without a separate project, it is no longer possible to open or build the project in Android Studio or on the command line. @brodybits
Yes, completely agree with you - The only Gradle wrapper jar (including related |
According to @dulmandakh statements in this comment, it still possible to open and maintain a project using android studio, maintainers should open the project from the module's root project instead of |
@SaeedZhiany - Yes, that's correct, both solutions would still allow the project to be edited in Android Studio. Both would equally solve the main problem (unnecessary downloads of/conflicts with older Android Gradle plugin distributions), while the |
Now closing this proposal as rejected. Thanks @friederbluemle. |
@friederbluemle Thank you for your great contribution. |
from the generated code in
android/build.gradle
in order to avoid multiple Android build tools Gradle plugin versions in React Native projects
as discussed in react-native-community/discussions-and-proposals#151
This is a quick fix approach that may be considered a little controversial since would completely disable Android Studio support (see #120). In general, I would recommend that people generate with the example and then open the example project with Android Studio (see #120 (comment)).
Some proposals linked by react-native-community/discussions-and-proposals#151 (comment) seem to fix Android Studio support in some other projects. I am not so happy about adding a committed Gradle JAR artifact or any other big Gradle artifacts that may be needed. Could be an interesting option.
It may be possible to fix Android Studio support by using Yarn workspaces (see #128).
/cc @SaeedZhiany