Created
August 22, 2019 18:29
-
-
Save mhd-zulqarnain/c9073d959d15bdc2aff365bd53a71221 to your computer and use it in GitHub Desktop.
circle.ci Android version 28 config.yml file configuration
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/ProjectName | |
docker: | |
- image: circleci/android:api-28-alpha | |
environment: | |
JVM_OPTS: -Xmx3200m | |
steps: | |
- checkout | |
- restore_cache: | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Download Dependencies | |
command: | | |
sudo chmod +x gradlew | |
./gradlew androidDependencies | |
- save_cache: | |
paths: | |
- ~/.gradle | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Create build | |
command: ./gradlew assembleDebug --console=plain | |
- store_artifacts: | |
path: app/build/outputs | |
destination: apk | |
# if this error pop up 'What went wrong: A problem occurred configuring project ':app'. > The SDK directory' | |
# remove localproperties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment