From 6b08051bb887c7e44dd4f3c0937006c59af7fa84 Mon Sep 17 00:00:00 2001 From: Cesar de la Vega Date: Mon, 15 Mar 2021 14:55:14 -0700 Subject: [PATCH] uses new orb (#67) --- .circleci/config.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9f61cea2..20098712 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,7 @@ version: 2.1 orbs: android: circleci/android@0.2.1 + revenuecat: revenuecat/sdks-common-config@1.0.0 executors: android-executor: @@ -45,28 +46,19 @@ jobs: test-android: executor: android-executor + working_directory: ~/purchases-hybrid-common/android steps: - - checkout - - android/accept-licenses - - restore_cache: - key: jars-{{ checksum "android/build.gradle" }} - - run: - name: Download Dependencies - command: ./gradlew androidDependencies - working_directory: android - - save_cache: - paths: - - ~/.gradle - key: jars-{{ checksum "android/build.gradle" }} - - android/restore-build-cache + - checkout: + path: ~/purchases-hybrid-common + - revenuecat/prepare-android - run: name: Run Tests command: ./gradlew lint test - working_directory: android + - android/save-build-cache - store_artifacts: - path: android/build/reports + path: build/reports - store_test_results: - path: android/build/test-results + path: build/test-results deploy-android: executor: android-executor