Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix build-error
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Jul 22, 2022
1 parent 719ba66 commit 08904a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ android {
if (signingPropFile.canRead()) {
signingProps.load(new FileInputStream(signingPropFile))
}
File keyStore = new File(System.getenv("STORE_PATH") ?: signingProps["release.storePath"])
if (keyStore.canRead()) {
String keyStorePath = System.getenv("STORE_PATH") ?: signingProps["release.storePath"]
File keyStore = keyStorePath ? new File(keyStorePath) : null
if (keyStore?.canRead()) {
signingConfigs {
release {
storeFile keyStore
Expand Down

0 comments on commit 08904a2

Please sign in to comment.