Skip to content

Commit c6ac0dc

Browse files
petekanevPlamen5kov
authored andcommitted
fix(project build script): update app_resources/ and app/ paths
1 parent 9d6b86d commit c6ac0dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test-app/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def getAppResourcesDirectory = { ->
7676
if (nsConfigFile.exists()) {
7777
def nsConfigJsonContent = new JsonSlurper().parseText(nsConfigFile.getText("UTF-8"))
7878

79-
if (nsConfigJsonContent.app_resources != null) {
80-
pathToAppResources = java.nio.file.Paths.get(USER_PROJECT_ROOT).resolve(nsConfigJsonContent.app_resources).toAbsolutePath()
79+
if (nsConfigJsonContent.appResourcesPath != null) {
80+
pathToAppResources = java.nio.file.Paths.get(USER_PROJECT_ROOT).resolve(nsConfigJsonContent.appResourcesPath).toAbsolutePath()
81+
} else if (nsConfigJsonContent.appPath != null) {
82+
pathToAppResources = java.nio.file.Paths.get(USER_PROJECT_ROOT).resolve(nsConfigJsonContent.appPath).toAbsolutePath()
8183
}
8284
}
8385

0 commit comments

Comments
 (0)