Skip to content

Instantly share code, notes, and snippets.

@YukiMatsumura
Created April 15, 2015 13:40
Show Gist options
  • Save YukiMatsumura/fea93815fa980555d0f5 to your computer and use it in GitHub Desktop.
Save YukiMatsumura/fea93815fa980555d0f5 to your computer and use it in GitHub Desktop.
gradleからdeploygateへアップロードする ref: http://qiita.com/Yuki_312/items/1a0991e45a9bff1cc9a4
dependencies {
// ...
classpath 'com.deploygate:gradle:0.6.2'
}
apply plugin: 'deploygate'
deploygate {
userName = "[owner name]"
token = "[token]"
apks {
release {
sourceFile = file("[apk1 file path]")
}
debug {
sourceFile = file("[apk2 file path]")
//Below is optional
message = "test upload2 sample"
visibility = "public" // default private
distributionKey = "[distribution_key]"
releaseNote = "release note sample"
}
}
}
deploygate {
// load local.propertis
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
userName = "yuki312"
token = properties.getProperty('dev.key.deploygate')
apks {
release {
sourceFile = file("./build/outputs/apk/app-release.apk")
}
debug {
sourceFile = file("./build/outputs/apk/app-debug.apk")
//Below is optional
message = "test message"
visibility = "public" // default private
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment