-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: copy gradle wrapper from tools to platform root dir #1781
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1781 +/- ##
==========================================
- Coverage 72.00% 71.89% -0.11%
==========================================
Files 23 23
Lines 1850 1854 +4
==========================================
+ Hits 1332 1333 +1
- Misses 518 521 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
It will be needed if the installed gradle at the system level is less than what AGP requires. That was the whole point of adding it, to serve as a dummy project with no dependencies so that we can get our gradle wrapper. |
To solve #1760 I think what we should do is copy the generated We should also retain the tools/ gradle wrapper copy for future install commands. Like I mentioned, the Android Studio will use the wrapper installed at I hope this makes sense. I know having a copy is not ideal, but it helps give us the best of both worlds:
If the symlink idea works, then that could be use to reduce the maintenance burden as well. |
This is kind of out of scope for #1760 but I also notice that we don't install the wrapper on create. I think it may only occur on build. We should also consider doing a gradle install on project creation too (on As it stands right now, the wrapper is only installed on Just something I noticed while testing the current behaviour. |
c1fb457
to
85f0c36
Compare
81c43fd
to
ffaa33e
Compare
ffaa33e
to
11b6988
Compare
This PR now copy up a directory as suggested.
This should be complete. It always runs a copy with recursive+force on build.
Symlink will not be used because we need to ensure that the files remain when the platforms directory are zipped. It seems that there is a use case to prepare the platforms in one environment and built in another.
Done
CLI uses tools version.
CLI should always call the install gradle wrapper method and copy step during build. This would handle the case if users changes the version by preference. This PR does not, and will not, cover the case when users upgrades gradle version from Android Studio. CLI build will undo those changes and replace gradle with the tools version. This PR will not cover creating of the gradle wrapper on |
Motivation and Context
Copy the gradle wrapper files from
platforms/android/tools
toplatforms/android
Fixes #1760
Description
Updated install step to just copy all the gradle files up one directory.
Testing
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)