From 77d72b13e43d0ebe2983e943c4339fb747ee707b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 8 May 2024 12:54:23 -0700 Subject: [PATCH] Added check for signingConfigs --- Branch-SDK-Automation-TestBed/build.gradle | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Branch-SDK-Automation-TestBed/build.gradle b/Branch-SDK-Automation-TestBed/build.gradle index 121d9b2ef..730c84a64 100644 --- a/Branch-SDK-Automation-TestBed/build.gradle +++ b/Branch-SDK-Automation-TestBed/build.gradle @@ -5,12 +5,14 @@ plugins { android { compileSdk 33 - signingConfigs { - debug { - keyAlias System.getenv("SIGNING_KEY_ALIAS") - keyPassword System.getenv("SIGNING_KEY_PASSWORD") - storeFile file("automationSigningKeys.jks") - storePassword System.getenv("SIGNING_STORE_PASSWORD") + if (file('automationSigningKeys.jks').exists()) { + signingConfigs { + debug { + keyAlias System.getenv("SIGNING_KEY_ALIAS") + keyPassword System.getenv("SIGNING_KEY_PASSWORD") + storeFile file("automationSigningKeys.jks") + storePassword System.getenv("SIGNING_STORE_PASSWORD") + } } } defaultConfig {