From 5ff7017b0edadc175e5c8e53e624b4d6eb900b2d Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Feb 2022 14:34:49 +0100 Subject: [PATCH] Local properties file is optional --- app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d45f9258c5..93127cf298 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,8 @@ def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties"))) Properties localProperties = new Properties() -localProperties.load(new FileInputStream(rootProject.file("local.properties"))) +if (rootProject.file("local.properties").exists()) + localProperties.load(new FileInputStream(rootProject.file("local.properties"))) android { compileSdkVersion 31