Skip to content

Commit

Permalink
Check if dsu_sideloader.prop exists
Browse files Browse the repository at this point in the history
  • Loading branch information
VegaBobo committed Oct 12, 2022
1 parent 6fa614f commit 6e244e1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ android {
*
*/

val props = Properties()
props.load(File(".sign/dsu_sideloader.prop").inputStream())

storeFile = File(props.getProperty("keystore"))
storePassword = props.getProperty("keystore_pw")
keyAlias = props.getProperty("alias")
keyPassword = props.getProperty("alias_pw")
if (File(".sign/dsu_sideloader.prop").exists()) {
val props = Properties()
props.load(File(".sign/dsu_sideloader.prop").inputStream())

storeFile = File(props.getProperty("keystore"))
storePassword = props.getProperty("keystore_pw")
keyAlias = props.getProperty("alias")
keyPassword = props.getProperty("alias_pw")
}
}
}

Expand Down

0 comments on commit 6e244e1

Please sign in to comment.