With this plugin you can upload Android build to Azure Storage via command line or Android Studio.
Update your root build.gradle
:
buildscript {
// other stuff here
dependencies {
classpath "gradle.plugin.li.mews.android.gradle-azure-apk-publisher:GradleAzureApkPublisher:[VERSION]"
}
}
And add this to your app build.gradle
:
apply plugin: "li.mews.android.gradle-azure-apk-publisher"
azurePublishConfig {
connectionString "[CONNECTION_STRING]"
container "[CONTAINER_NAME]"
}
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 debug build, run the following from terminal:
gradlew azurePublishDebug