App Distribution for iOS, Android and Windows
DashboardStart for free
  • Updraft App Distribution Documentation
  • Microsoft App Center Alternative
    • Windows App Distribution
    • App Center Migration Tool
  • Welcome to Updraft!
    • What is Updraft?
  • Quickstart
    • Register your Organization
    • Your first app project
      • Upload your first app versions (builds)
      • Install your app
  • Dashboard
    • Create Projects
    • Latest received Feedbacks
    • Documentation
    • Usermanagement
      • Permission Groups
      • Tester Dashboard
    • Profile & User Account
      • Profile Preferences
        • Two-factor authentication
      • Personal token
      • Notifications
      • Organizations
      • Account Settings
      • Plan & Billing
        • Free Plan
        • Paid Plan (Pay-As-You-Go)
      • Security (Single Sign-On)
        • Single Sign-On with Okta
        • Single Sign-On with Google Worspace
        • Single Sign-On with Microsoft Entra
        • Single Sign-On with JumpCloud
        • Single Sign-On with Ping Identity
        • Custom SSO (SAML)
      • Developer Accounts
        • App Store Connect API
        • Google Play Connect API
  • Your Projects
    • Project Settings
      • Overview
      • Automatically clean up build binaries
      • Notification Integrations
        • Slack integration
        • Webhook integration
        • Microsoft Teams integration
        • Discord integration
        • WebEx integration
      • User & Permissions
    • App Overview & App Settings
      • Notifications
      • Security
      • Last uploaded build
      • Add another app to your project
      • Android App Bundle (AAB)
    • Builds and App versions
      • Build history / app version history
        • iOS Resigning
        • Android Resigning
      • Release Notes
      • Exchange already uploaded app version
      • Distribute and install a pre-release version of your app
        • App download page
    • Feedback
    • App Distribution
      • Testers & Distribution Groups
      • Distribute your app
        • Single Release
        • Beta Release (one link two apps)
        • Store
          • App Store Distribution
          • Play Store Distribution
      • Release History
      • Install an app distributed from Updraft
  • Integrations
    • Jenkins Plugin Updraft
    • Fastlane
    • Gradle
    • Teamcity with Gradle (Android)
    • Teamcity
    • GitLab CI/CD
      • GitLab iOS with Fastlane
      • GitLab app distribution for iOS builds
      • GitLab app distribution for Android builds
    • Bitrise
  • API
    • Upload API
    • Upload Apps with CURL
    • Rest API
      • Distribution group and Permission group API
  • Updraft SDK
    • Autoupdate
    • Integrating Updraft Android SDK
    • Integrating Updraft iOS SDK
    • Integrating Updraft Flutter SDK
  • Android
    • Unknown sources in Android
    • .apk installation on Samsung Browser
    • Android FAQ
    • 🪅Android Icon Troubleshooting
    • Google Play Store upload issues
  • iOS
    • Untrusted Enterprise Developer
    • Code Signing Explained (Certificates, Identifiers, Profiles – what?)
    • Registering a UDID for Ad Hoc Distribution
    • What does "App could not be installed at this time" mean?
    • iPadOS on Safari
    • iOS FAQ
  • Data Security
    • Data hosting in Switzerland
      • Swiss data privacy law
    • End to end data encryption
    • General Data Protection Regulation (GDPR)
    • Single Sign On (SSO)
    • Custom Storage
      • Google Cloud Storage
      • Custom S3 bucket
    • ISO 27001
  • What's New/ Changelog
  • Roadmap
  • FAQ
  • Contact us
Powered by GitBook
On this page
  • Instructions 🚀
  • Usage of Gradle Updraft Plugin
  • Get the Updraft Gradle Plugin
  1. Integrations

Gradle

This is a gradle plugin for automated Updraft upload.

PreviousFastlaneNextTeamcity with Gradle (Android)

Last updated 4 years ago

Updraft allows even faster application deployment with the Updraft Gradle Plugin. Android Studio uses Gradle, a build toolkit to automate and manage the entire build process. Gradle can be flexibly expanded and configured by yourself. Integrate the Gradle Updraft plugin into your Android code. The tested and signed builds are then uploaded directly to Updraft where you can easily manage the distribution of the beta app to your beta-testers.

There are a number of sub-sections on this page:

Instructions 🚀

  1. Add the code below to you build.gradle file in the app folder.

buildscript {
 repositories {
   ...
   mavenCentral()
 }
 
 dependencies {
   ...
   classpath 'com.appswithlove.updraft:updraft:2.1.5'
  }
 }

2. Apply the plugin in build.gradle in app folder (same file as before).

apply plugin: 'updraft'

The part YourBuildVariant should be replaced by the exact name your build variant. For example:

updraftExtension {
  updraftUrls['YourBuildVariant'] = [".../your/staging/url/"]
  updraftUrls['ProdRelease'] = [".../your/prod/url/", ".../your/prod2/url/"]
}

4. Done!

Usage of Gradle Updraft Plugin

After installing the plugin, you should be able to find the Gradle Updraft tasks in Android Studio. The naming is always updraft + buildVariant. The appropriate url will be choosen as destination. There is 1 task for every available buildVariant. "Gradle Project" Window -> Tasks -> Other -> updraft... (e.g. updraftStagingRelease) In order to use them, make sure that you build the project before.

Otherwise, you can call the gradle tasks via command:

./gradlew updraftStagingRelease

Or combined with clean + assemble:

./gradlew clean assembleStagingRelease updraftStagingRelease

Get the Updraft Gradle Plugin

3. Add one or multiple updraftUrls['YOURPRODUCTFLAVOUR'] wrapped in updraftExtension to the file. In order to get the needed url, go to the Edit Panel of your Updraft App and get the https:// url part of the curl command. (e.g. ).

You can find the plugin on our Github Page:

https://getupdraft.com/api/app_upload/.../.../
https://github.com/appswithlove/updraft-plugin-android
Instruction to integrate Updraft Gradle
Usage of Gradle Plugin