Last active
July 4, 2022 11:46
-
-
Save bmc08gt/e941b49854f7a5d38161b8099e0a499b to your computer and use it in GitHub Desktop.
Gradle task that downloads a signing config from a remote server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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