From dfbdd729c4e7326191e909d2902fbe6f1d9ef20f Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 1 Oct 2024 21:02:43 -0600 Subject: [PATCH] Only set publishCredentialsFile if present --- app/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index aecfa1c..cf3373f 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -109,7 +109,9 @@ play { enabled.set(false) track.set("production") defaultToAppBundles.set(true) - serviceAccountCredentials.set(file((keystoreProperties["publishCredentialsFile"] as? String).orEmpty())) + (keystoreProperties["publishCredentialsFile"] as? String)?.let { + serviceAccountCredentials.set(file(it)) + } } dependencies {