File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ import groovy.json.JsonSlurper
12dependencies {
23 implementation(name :' widgets-release' , ext :' aar' )
34 implementation " androidx.annotation:annotation:1.1.0"
45}
56repositories {
6- mavenCentral()
7+ def widgetsDir = ' ../../../node_modules/@nativescript/core/platforms/android'
8+ def appPackageJsonFile = file(" ../../../package.json" )
9+ if (appPackageJsonFile. exists()) {
10+ def appPackageJson = new JsonSlurper (). parseText(appPackageJsonFile. text)
11+ if (appPackageJson. dependencies[' @akylas/nativescript' ] != null ) {
12+ widgetsDir = ' ../../../node_modules/@akylas/nativescript/platforms/android'
13+ }
14+ }
15+ println " \t + widgetsDir: $widgetsDir "
716 flatDir {
8- dirs ' ../../../node_modules/@nativescript/core/platforms/android '
17+ dirs " $w idgetsDir "
918 }
1019}
You can’t perform that action at this time.
0 commit comments