Skip to content

Commit 58007be

Browse files
authored
Plamen5kov/update project template (#875)
* update buildscript move xml files remove unused dependency from test-app * make changes to build.gradle * move xml files * move build.gradle file to app folder * update static binding generator remove unnecessary folder from build tools * remove redundant script * updates after review * added root level build gradle updated gradle to 4.1 updated settings.gradle updated gradle.properties * Update gradle.properties * include all jars found in .aar file * update path too user app folder * update relative path to project package.json
1 parent 872f037 commit 58007be

File tree

23 files changed

+749
-748
lines changed

23 files changed

+749
-748
lines changed

android-static-binding-generator/project/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def cachedJarsFilePath = "$projectDir/cached.txt"
1414
def jsParserP = "$projectDir/parser/js_parser.js"
1515
def jsFilesParametersP = "$projectDir/jsFilesParameters.txt"
1616

17-
def webpackWorkersExcludePath = "$projectDir/../../src/main/assets/app/__worker-chunks.json"
17+
def webpackWorkersExcludePath = "$rootDir/app/src/main/assets/app/__worker-chunks.json"
1818
def webpackWorkersExcludesList = [];
1919

2020
def workersExcludeFile = file(webpackWorkersExcludePath);
@@ -40,8 +40,13 @@ if (project.hasProperty("outDir")) {
4040
def absoluteJsCodeDir;
4141
def jsCodeAbsolutePath;
4242
if (!project.hasProperty("test")) {
43-
absoluteJsCodeDir = project.jsCodeDir
44-
jsCodeAbsolutePath = absoluteJsCodeDir.getAbsolutePath()
43+
println project.jsCodeDir.equals(null)
44+
if(project.jsCodeDir.exists()) {
45+
absoluteJsCodeDir = project.jsCodeDir
46+
jsCodeAbsolutePath = absoluteJsCodeDir.getAbsolutePath()
47+
} else {
48+
logger.log(LogLevel.WARN, "The input jsCodeDir: ${jsCodeDir} folder could not be found. Please make sure you've passed the correct folder containing the .js files that need to be parsed.");
49+
}
4550
}
4651

4752
def utf8 = StandardCharsets.UTF_8

0 commit comments

Comments
 (0)