With this plugin you can upload static assets build to Azure Storage via command line.
Update your root build.gradle
:
buildscript {
// other stuff here
dependencies {
classpath "gradle.plugin.com.xinjiangshao.gradle-azure-assets-publisher:gradle-azure-assets-publisher:[VERSION]"
}
}
And add this to your app build.gradle
:
apply plugin: "com.xinjiangshao.gradle-azure-assets-publisher"
azurePublishConfig {
connectionString "[CONNECTION_STRING]"
container "[CONTAINER_NAME]"
packageTarFile "[PACKAEGE_TAR_FILE]"
}
Property | Description |
---|---|
connectionString | Connection string for your Azure Storage |
container | Blob container name where your build will be uploaded |
path | A prefix to be prepended to the apk-file. Basically this can be considered as a path, e.g. you can have something like release/ here to upload to release folder. |
With the plugin installed, a set of new tasks, prefixed "azurePublish" will be added, one for each build type.
For example: to upload a build, run the following from terminal:
gradlew azurePublishAssets