Skip to content

Commit

Permalink
Added documentation for AAB file, Bumping version to 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guness committed Jul 7, 2021
1 parent d424a82 commit ca34c95
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
- SAMPLE_APP_ANDROID: https://github.com/bitrise-io/sample-apps-android-sdk22.git
- SAMPLE_APP_IOS: https://github.com/bitrise-io/sample-apps-ios-simple-objc.git
- BITRISE_STEP_ID: firebase-app-distribution
- BITRISE_STEP_VERSION: 0.8.0
- BITRISE_STEP_VERSION: 0.9.0
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/guness/bitrise-step-firebase-app-distribution.git
- MY_STEPLIB_REPO_FORK_GIT_URL: https://github.com/guness/bitrise-steplib.git
- FIREBASE_CI_TOKEN: $FIREBASE_CI_TOKEN
Expand Down Expand Up @@ -75,7 +75,7 @@ workflows:
run_if: "true"
inputs:
- app: $FIREBASE_APP_ID_ANDROID
- app_path: $BITRISE_APK_PATH
- app_path: $BITRISE_APK_PATH|$BITRISE_AAB_PATH
- service_credentials_file: $BITRISEIO_service_credentials_file_URL
- is_debug: "true"
- release_notes: "Some Test ' #2 here"
Expand Down
14 changes: 11 additions & 3 deletions step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,19 @@ echo_details "* upgrade_firebase_tools: $upgrade_firebase_tools"
echo

if [ -z "${app_path}" ] ; then
echo_fail "App path for APK or IPA is not defined"
echo_fail "App path for APK, AAB or IPA is not defined"
fi

case "${app_path}" in
\|*)
*\|\|*)
echo_fail "App path contains || . You need to choose one build path: ${app_path}"
;;
\|*\|)
echo_warn "App path starts and ends with | . Manually fixing path: ${app_path}"
app_path="${app_path:1}"
app_path="${app_path%?}"
;;
\|*)
echo_warn "App path starts with | . Manually fixing path: ${app_path}"
app_path="${app_path:1}"
;;
Expand All @@ -118,7 +126,7 @@ case "${app_path}" in
echo_fail "App path contains | . You need to choose one build path: ${app_path}"
;;
*)
echo_info "App path contains one file 👍"
echo_info "App path contains a file, great!! 👍"
;;
esac

Expand Down
6 changes: 3 additions & 3 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ inputs:
description: |
The path or HTTP URL to your [service account](https://firebase.google.com/docs/app-distribution/android/distribute-gradle#authenticate_using_a_service_account) private key JSON file.
Required only if you use service account authentication.
- app_path: "$BITRISE_IPA_PATH|$BITRISE_APK_PATH"
- app_path: "$BITRISE_IPA_PATH|$BITRISE_APK_PATH|$BITRISE_AAB_PATH"
opts:
title: App Path
description: |-
Path of IPA or APK file to deploy.
Path of IPA, APK or AAB file to deploy.
Default values:
iOS: `$BITRISE_IPA_PATH`
Android: `$BITRISE_APK_PATH`
Android: `$BITRISE_APK_PATH|$BITRISE_AAB_PATH`
is_required: true
- app:
opts:
Expand Down

0 comments on commit ca34c95

Please sign in to comment.