Skip to content

Commit 90b3a95

Browse files
committed
fix(android): build fix with pnpm
1 parent 5855383 commit 90b3a95

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/gesturehandler/platforms/android/include.gradle

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

0 commit comments

Comments
 (0)