File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
packages/ui-canvas/platforms/android Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
1
import groovy.json.JsonSlurper
2
2
dependencies {
3
- implementation(name :' widgets-release' , ext :' aar' )
3
+ if (hasProperty(" tempBuild" )) {
4
+ implementation(name :' widgets-release' , ext :' aar' )
5
+ }
4
6
implementation " androidx.annotation:annotation:1.1.0"
5
7
}
6
8
repositories {
7
- def widgetsDir = " $USER_PROJECT_ROOT /node_modules/@nativescript/core/platforms/android"
8
- def appPackageJsonFile = file(" $USER_PROJECT_ROOT /package.json" )
9
- if (appPackageJsonFile. exists()) {
10
- def appPackageJson = new JsonSlurper (). parseText(appPackageJsonFile. text)
11
- if (appPackageJson. dependencies[' @akylas/nativescript' ] != null ) {
12
- widgetsDir = " $USER_PROJECT_ROOT /node_modules/@akylas/nativescript/platforms/android"
9
+ if (hasProperty(" tempBuild" )) {
10
+ def widgetsDir = " $USER_PROJECT_ROOT /node_modules/@nativescript/core/platforms/android"
11
+ def appPackageJsonFile = file(" $USER_PROJECT_ROOT /package.json" )
12
+ if (appPackageJsonFile. exists()) {
13
+ def appPackageJson = new JsonSlurper (). parseText(appPackageJsonFile. text)
14
+ if (appPackageJson. dependencies[' @akylas/nativescript' ] != null ) {
15
+ widgetsDir = " $USER_PROJECT_ROOT /node_modules/@akylas/nativescript/platforms/android"
16
+ }
17
+ }
18
+ flatDir {
19
+ dirs " $widgetsDir "
13
20
}
14
- }
15
- flatDir {
16
- dirs " $widgetsDir "
17
21
}
18
22
}
You can’t perform that action at this time.
0 commit comments