Skip to content

Commit

Permalink
Update gitignore and gradle file.
Browse files Browse the repository at this point in the history
  • Loading branch information
liato committed Oct 9, 2013
1 parent dd900df commit 68e4f18
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ target/
.gradle
*.iml
build/
release.keystore
35 changes: 33 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
buildToolsVersion "17.0.0"

defaultConfig {
versionCode 162
versionName '1.9.6.2-RC1'
versionCode 163
versionName '1.9.6.2-RC2 (Certpinning)'
minSdkVersion 7
targetSdkVersion 10
packageName 'com.liato.bankdroid'
Expand All @@ -50,4 +50,35 @@ android {

instrumentTest.setRoot('tests')
}

final Console console = System.console();
if (console != null) {

// Building from console
signingConfigs {
release {
storeFile file("release.keystore")
storePassword console.readLine("\nEnter keystore password: ")
keyAlias "andmrkt"
keyPassword console.readLine("Enter key password: ")
}
}

} else {

// Building from IDE
signingConfigs {
release {

}
}

}


buildTypes {
release {
signingConfig signingConfigs.release
}
}
}

0 comments on commit 68e4f18

Please sign in to comment.