Skip to content

Instantly share code, notes, and snippets.

@bmc08gt
Last active July 4, 2022 11:46
Show Gist options
  • Save bmc08gt/e941b49854f7a5d38161b8099e0a499b to your computer and use it in GitHub Desktop.
Save bmc08gt/e941b49854f7a5d38161b8099e0a499b to your computer and use it in GitHub Desktop.
Gradle task that downloads a signing config from a remote server
def execDownloadSigningInfo(ProductFlavor flavor) {
task z {
download {
src "$url"
dest {
return rootProject.file("../file")
}
onlyIfNewer true
}
}
task x(dependsOn: z) {
rootProject.ext.generateSigningConfig(android.signingConfigs, flavor)
}
}
buildscript {
[...]
dependencies {
[...]
classpath 'de.undercouch:gradle-download-task:3.4.3'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment