From 759391e702a288fda581175bb9c80b2504d91876 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Sun, 6 Sep 2020 22:33:59 +0200 Subject: [PATCH] allow plugins to use widgets lib I have plugins that use classes from the nativescript widget libs. Now i want to publish the plugin with the java sources directly. If i do that i need to add `widget-release` to the dependencies. Now i could do that in the plugin include.gradle, it will make plugin build to work however then app building wont work because the widgets lib will be included twice So the best solution is automatically add it here. I am not happy about the path thing, however it will work in all cases. --- vendor/gradle-plugin/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/gradle-plugin/build.gradle b/vendor/gradle-plugin/build.gradle index 2cb565e869..02f7c12015 100644 --- a/vendor/gradle-plugin/build.gradle +++ b/vendor/gradle-plugin/build.gradle @@ -60,6 +60,7 @@ dependencies { } } } + implementation files('../../../node_modules/@nativescript/core/platforms/android/widgets-release.aar') } def getAppResourcesPath() { @@ -99,4 +100,4 @@ def applyBeforePluginGradleConfiguration() { println "\t + applying user-defined configuration from ${beforePluginGradle}" apply from: pathToBeforePluginGradle } -} \ No newline at end of file +}