breautek commented on PR #1896: URL: https://github.com/apache/cordova-android/pull/1896#issuecomment-4099680486
> If an Android Studio project is using gradle wrapper in this way, maybe Cordova can do it in the same way? It does already -- The wrapper is downloaded/installed by Gradle itself. Instead of using the main projects gradle build environment to install the wrapper, which only supports a fairly limited gradle version range... we use an empty gradle build script, which is that "tools" project I mentioned. The wrapper gets installed inside the tools project. Then we simply copy the wrapper files up to the main project so that the Android IDE finds and uses that wrapper. Android Studio does ship with its own gradle -- so it doesn't run into the version conflicts cause it basically always has an acceptable gradle version builtin. But that gradle is not shipped as a standalone executable, it's a java library that Android Studio uses to do gradle tasks programmatically -- so we can't really take advantage of that. And even if it was a standalone executable -- using it would make a new dependency on Android Studio, Cordova should be usable with the android sdk tools alone without android studio. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
