Properly fetch project properties (#2185)

This commit is contained in:
Romain Guy
2020-02-28 09:20:35 -08:00
committed by GitHub
parent 13666027cc
commit 6eba2f145e
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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) {