[Native] Respect local.properties in build config
This commit is contained in:
committed by
Space Team
parent
81fd9a679d
commit
4d80e0f08d
+1
-1
@@ -6,7 +6,7 @@ import java.util.*
|
|||||||
class PropertiesProvider(val project: Project) {
|
class PropertiesProvider(val project: Project) {
|
||||||
private val localProperties by lazy {
|
private val localProperties by lazy {
|
||||||
Properties().apply {
|
Properties().apply {
|
||||||
project.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
|
project.rootProject.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
|
||||||
load(it)
|
load(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user