Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
farfromrefug authored Sep 6, 2020
commit 759391e702a288fda581175bb9c80b2504d91876
3 changes: 2 additions & 1 deletion vendor/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dependencies {
}
}
}
implementation files('../../../node_modules/@nativescript/core/platforms/android/widgets-release.aar')
}

def getAppResourcesPath() {
Expand Down Expand Up @@ -99,4 +100,4 @@ def applyBeforePluginGradleConfiguration() {
println "\t + applying user-defined configuration from ${beforePluginGradle}"
apply from: pathToBeforePluginGradle
}
}
}