Skip to content

Commit

Permalink
Feature/make apk available as artifact (#239)
Browse files Browse the repository at this point in the history
* added store artifacts step

* uncommented test job

* updated to use the release apk instead of the debug one

* added step to replace API KEY in sample app

* updated value to look for when replacing API key
  • Loading branch information
aboedo authored Jan 4, 2021
1 parent f8ee69c commit 7f7baa2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ jobs:
- android/accept-licenses
- android-wordpress-orb/restore-gradle-cache
- android/restore-build-cache
- run:
name: Replace API_KEY
working_directory: purchases-sample
command: |
sed -i s/api_key/$API_KEY/ src/main/java/com/revenuecat/sample/MainApplication.kt
- run:
name: Prepare Keystore
working_directory: purchases-sample
Expand All @@ -166,6 +171,8 @@ jobs:
-PreleaseKeyAlias=$RELEASE_KEY_ALIAS \
-PreleaseKeystorePassword=$RELEASE_KEYSTORE_PASSWORD \
-PreleaseKeyPassword=$RELEASE_KEY_PASSWORD
- store_artifacts:
path: purchases-sample/build/outputs/apk/release/purchases-sample-release.apk
- android-wordpress-orb/save-gradle-cache
- android/save-build-cache

Expand Down

0 comments on commit 7f7baa2

Please sign in to comment.