Merged default and debug keystore into a single keystore

This commit is contained in:
Karim Abou Zeid 2015-07-06 01:26:59 +02:00
commit feaf04a5c1
2 changed files with 4 additions and 4 deletions

View file

@ -23,21 +23,21 @@ android {
debug { debug {
keyAlias 'phonograph-debug' keyAlias 'phonograph-debug'
keyPassword 'debugkey' keyPassword 'debugkey'
storeFile file('../phonograph-debug.keystore') storeFile file('../phonograph.keystore')
storePassword 'debugkeystore' storePassword 'kabouzeid'
} }
release { release {
keyAlias 'phonograph' keyAlias 'phonograph'
storeFile file('../phonograph.keystore') storeFile file('../phonograph.keystore')
storePassword 'kabouzeid'
// "keystore.properties" file containing the keystore passwords is needed in order to sign for release // "keystore.properties" file containing the release keys password is needed in order to sign the apk for release
File propFile = project.rootProject.file('keystore.properties') File propFile = project.rootProject.file('keystore.properties')
if (propFile.exists()) { if (propFile.exists()) {
Properties properties = new Properties() Properties properties = new Properties()
properties.load(propFile.newDataInputStream()) properties.load(propFile.newDataInputStream())
keyPassword properties.getProperty('keyPassword') keyPassword properties.getProperty('keyPassword')
storePassword properties.getProperty('storePassword')
} }
} }
} }

Binary file not shown.