Permalink
Browse files

Skip password signing prompts during bintray upload

Demo code is not uploaded to bintray at all, nor is a signed apk being generated.
  • Loading branch information...
1 parent 8dadbe8 commit c172c12ceb11dd9e859f3061c5d533c25976d846 @protyposis committed Oct 28, 2016
Showing with 4 additions and 1 deletion.
  1. +3 −0 MediaPlayerDemo/signingconfig.gradle
  2. +1 −1 bintrayupload.bat
@@ -1,4 +1,7 @@
def readPasswordFromConsole(prompt) {
+ if (project.hasProperty('skippasswordprompts')) {
+ return ""
+ }
def c = System.console()
if(c != null) {
return new String(System.console().readPassword("\n\$ " + prompt + " "))
View
@@ -8,5 +8,5 @@ SET apikey=%2
SET modules="MediaPlayer" "MediaPlayer-DASH"
FOR %%m in (%modules%) DO (
- gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false
+ gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false -Pskippasswordprompts
)

0 comments on commit c172c12

Please sign in to comment.