Skip to content

buildless/sample-android-gradle

Repository files navigation

android + gradle sample

Buildless, Android, and Gradle.

Uncached build (1 minute 25 seconds) Cached build (32 seconds)
Clean build Cached build

Details about this sample

Together, these tools provide an Android development environment, enabled with blazing-fast remote build caching. Buildless handles build caching for the app.

Additional resources

Trying the sample

Before you start: Obtain an API key for Buildless, set it at BUILDLESS_APIKEY in your environment

  1. Clone the sample
  2. Run a build with ./gradlew build; observe that Gradle uses Buildless

That's it! Enjoy lightning-fast builds on Android 🔥

Building and running the app

To build the Android app:

./gradlew build

To run the Android app:

Launch an emulator ->
./gradlew installDebug

Using the sample for your own codebase

This is a GitHub Template repository; you can easily use it to create your own repo. Follow these steps to customize it for use with your Buildless account:

  1. Update .github/CODEOWNERS
  2. Add a GitHub Secret called BUILDLESS_APIKEY, set to the API key you want to use in CI
  3. That's it!

Sharing an API key across an organization

You can use Organization Secrets to automatically provide a BUILDLESS_APIKEY to all your repos.