Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hoth committed Apr 1, 2014
2 parents 52a3023 + be0d6fe commit f626903
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ before_script:
- adb shell input keyevent 82 &

script:
- ./gradlew connectedInstrumentTest
- ./gradlew connectedAndroidTest

38 changes: 20 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 19
versionCode 5
versionName "0.4.1"
versionCode 6
versionName "0.4.2"
}

compileOptions {
Expand Down Expand Up @@ -69,31 +69,33 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

if (secretProps.hasProperty("DEPLOYGATE_USERNAME") && secretProps.hasProperty("DEPLOYGATE_TOKEN")) {

if (secretProps.containsKey("DEPLOYGATE_USERNAME") && secretProps.containsKey("DEPLOYGATE_TOKEN")) {

apply plugin: 'deploygate'
gradle.taskGraph.whenReady { graph ->

deploygate {
userName = secretProps.getProperty("DEPLOYGATE_USERNAME")
token = secretProps.getProperty("DEPLOYGATE_TOKEN")
project.configure(deploygate, {
userName = secretProps.getProperty("DEPLOYGATE_USERNAME")
token = secretProps.getProperty("DEPLOYGATE_TOKEN")

apks {
beta {
sourceFile = file("build/apk/app-beta-unaligned.apk")
apks {
beta {
sourceFile = file("build/apk/app-beta-unaligned.apk")

def betaComment = secretProps.getProperty("DEPLOYGATE_RELEASE_NOTES")
if (betaComment != null && betaComment.length() > 0) {
releaseNote = betaComment
message = betaComment
}
def betaComment = secretProps.getProperty("DEPLOYGATE_RELEASE_NOTES")
if (betaComment != null && betaComment.length() > 0) {
releaseNote = betaComment
message = betaComment
}

if (secretProps.hasProperty("DEPLOYGATE_DISTRIBUTION_ID")) {
distributionKey = secretProps.getProperty("DEPLOYGATE_DISTRIBUTION_ID")
if (secretProps.hasProperty("DEPLOYGATE_DISTRIBUTION_ID")) {
distributionKey = secretProps.getProperty("DEPLOYGATE_DISTRIBUTION_ID")
}
}
}
}
})
}

}

def getReleaseNotes(flavor) {
Expand Down

0 comments on commit f626903

Please sign in to comment.