Skip to content

Commit

Permalink
fix(android): build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Feb 18, 2022
1 parent 9b313b3 commit d985433
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions plugin/platforms/android/include.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@

import groovy.json.JsonSlurper
repositories {
mavenCentral()
def appDir = "$rootDir/../../.."
def widgetsDir = "$appDir/node_modules/@nativescript/core/platforms/android"
def appPackageJsonFile = file("$appDir/package.json")
if (appPackageJsonFile.exists()) {
def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
widgetsDir = "$appDir/node_modules/@akylas/nativescript/platforms/android"
}
}
flatDir {
dirs "$widgetsDir"
}
}
dependencies {
def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "2.3.0"

Expand All @@ -30,3 +14,19 @@ dependencies {
// }
implementation(name:'widgets-release', ext:'aar')
}

repositories {
mavenCentral()
def appDir = "$rootDir/../../.."
def widgetsDir = "$appDir/node_modules/@nativescript/core/platforms/android"
def appPackageJsonFile = file("$appDir/package.json")
if (appPackageJsonFile.exists()) {
def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
if (appPackageJson.dependencies["@akylas/nativescript"] != null) {
widgetsDir = "$appDir/node_modules/@akylas/nativescript/platforms/android"
}
}
flatDir {
dirs "$widgetsDir"
}
}

0 comments on commit d985433

Please sign in to comment.