You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using a plugin like this one there are some buildscript configurations which need to be added in the application build.gradle file. Unfortunately this cannot be achieved through the app.gradle file nor through plugin's include.gradle files. They are being applied too late and the changes in the buildscript are not taken into account.
Describe the solution you'd like
To make an external buildscript work it should be applied by the following way:
buildscript {
apply from: "path/to/buildscript.gradle", to: buildscript
}
So to enable this functionality we need to introduce new gradle files named buildscript.gradle. Those files can be placed either in App_Resources/Android folder in a nativescript application or in the platforms/android of a plugin. If such files exist they will be applied to the buildscript of the application's build.gradle.
Describe alternatives you've considered
The alternative solution considered was to create after prepare hook which adds the needed buildscript configurations to the application's build.gradle file once the app is prepared, but this seems more error prone.
Additional context
Here's an example buildscript.gradle file for adding the needed dependencies for the plugin above:
Is your feature request related to a problem? Please describe.
When using a plugin like this one there are some buildscript configurations which need to be added in the application build.gradle file. Unfortunately this cannot be achieved through the app.gradle file nor through plugin's include.gradle files. They are being applied too late and the changes in the buildscript are not taken into account.
Describe the solution you'd like
To make an external buildscript work it should be applied by the following way:
So to enable this functionality we need to introduce new gradle files named buildscript.gradle. Those files can be placed either in
App_Resources/Android
folder in a nativescript application or in theplatforms/android
of a plugin. If such files exist they will be applied to the buildscript of the application's build.gradle.Describe alternatives you've considered
The alternative solution considered was to create after prepare hook which adds the needed buildscript configurations to the application's build.gradle file once the app is prepared, but this seems more error prone.
Additional context
Here's an example buildscript.gradle file for adding the needed dependencies for the plugin above:
The text was updated successfully, but these errors were encountered: