Skip to content

Plamen5kov/update project template #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 8, 2017
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions android-static-binding-generator/project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def cachedJarsFilePath = "$projectDir/cached.txt"
def jsParserP = "$projectDir/parser/js_parser.js"
def jsFilesParametersP = "$projectDir/jsFilesParameters.txt"

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

def workersExcludeFile = file(webpackWorkersExcludePath);
Expand All @@ -40,8 +40,13 @@ if (project.hasProperty("outDir")) {
def absoluteJsCodeDir;
def jsCodeAbsolutePath;
if (!project.hasProperty("test")) {
absoluteJsCodeDir = project.jsCodeDir
jsCodeAbsolutePath = absoluteJsCodeDir.getAbsolutePath()
println project.jsCodeDir.equals(null)
if(project.jsCodeDir.exists()) {
absoluteJsCodeDir = project.jsCodeDir
jsCodeAbsolutePath = absoluteJsCodeDir.getAbsolutePath()
} else {
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.");
}
}

def utf8 = StandardCharsets.UTF_8
Expand Down
Loading