Skip to content

Commit

Permalink
Properly fetch project properties (google#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy authored Feb 28, 2020
1 parent 1366602 commit 6eba2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
buildscript {
def filamentPath = file("../out/android-release/filament").absolutePath
if (project.hasProperty("filament_dist_dir")) {
filamentPath = file("$filament_dist_dir").absolutePath
filamentPath = file(project.property("filament_dist_dir")).absolutePath
}

// Our minSdkVersion is actually 19, we lie and say 14 here so apps don't have
Expand Down
2 changes: 1 addition & 1 deletion android/buildSrc/src/main/groovy/FilamentPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class FilamentToolsPlugin implements Plugin<Project> {

project.ext.filamentToolsPath = project.file("../../../out/release/filament")
if (project.hasProperty("filament_tools_dir")) {
project.ext.filamentToolsPath = project.file("$filament_tools_dir")
project.ext.filamentToolsPath = project.file(project.property("filament_tools_dir"))
}

project.tasks.register("filamentCompileMaterials", MaterialCompiler) {
Expand Down

0 comments on commit 6eba2f1

Please sign in to comment.