Skip to content

Commit a1b75ca

Browse files
committed
fix(android): buid fix in some cases
1 parent 531e906 commit a1b75ca

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"bootstrapper": "nativescript-plugin-seed",
3535
"dependencies": {
3636
"@nativescript-community/observable": "^2.0.8"
37-
}
37+
},
38+
"gitHead": "531e9068c445832a6faf6bb8e227b738baa6ef18"
3839
}

plugin/platforms/android/include.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ dependencies {
44
implementation "androidx.annotation:annotation:1.1.0"
55
}
66
repositories {
7-
def widgetsDir = '../../../node_modules/@nativescript/core/platforms/android'
8-
def appPackageJsonFile = file("../../../package.json")
7+
def appDir = "$rootDir/../../.."
8+
def widgetsDir = "$appDir/node_modules/@nativescript/core/platforms/android"
9+
def appPackageJsonFile = file("$appDir/package.json")
910
if (appPackageJsonFile.exists()) {
1011
def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
1112
if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
12-
widgetsDir = '../../../node_modules/@akylas/nativescript/platforms/android'
13+
widgetsDir = "$appDir/node_modules/@akylas/nativescript/platforms/android"
1314
}
1415
}
1516
flatDir {

0 commit comments

Comments
 (0)