-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(fastlane): Refactor Fastlane configuration and workflows (#1846)
- Loading branch information
Showing
12 changed files
with
456 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Upload Demo App on Firebase | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tester_groups: | ||
description: 'Comma-separated list of tester groups' | ||
required: true | ||
default: 'mifos-mobile-testers' | ||
type: string | ||
|
||
pull_request: | ||
types: [ labeled ] | ||
branches: | ||
- 'development' | ||
- 'master' | ||
|
||
concurrency: | ||
group: firebase-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
upload_demo_app_on_firebase: | ||
name: Upload Demo App on Firebase | ||
runs-on: macos-latest | ||
if: github.event.label.name == 'firebase-test-on' || github.event_name == 'workflow_dispatch' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: ☁️ Deploy Android App on Firebase | ||
uses: openMF/[email protected] | ||
with: | ||
release_type: 'demo' | ||
android_package_name: 'mifospay-android' | ||
keystore_file: ${{ secrets.ORIGINAL_KEYSTORE_FILE }} | ||
keystore_password: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }} | ||
keystore_alias: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }} | ||
keystore_alias_password: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }} | ||
google_services: ${{ secrets.GOOGLESERVICES }} | ||
firebase_creds: ${{ secrets.FIREBASECREDS }} | ||
tester_groups: ${{ inputs.tester_groups }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
source "https://rubygems.org" | ||
|
||
ruby File.read(".ruby-version").strip | ||
begin | ||
ruby File.read(".ruby-version").strip | ||
rescue Errno::ENOENT | ||
ruby "3.3.5" # Default version if .ruby-version doesn't exist | ||
end | ||
|
||
gem "fastlane" | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
plugins_path = File.join(File.dirname(__FILE__), "fastlane", "Pluginfile") | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module FastlaneConfig | ||
module AndroidConfig | ||
STORE_CONFIG = { | ||
default_store_file: "release_keystore.keystore", | ||
default_store_password: "Mifospay", | ||
default_key_alias: "key0", | ||
default_key_password: "Mifos@123" | ||
} | ||
|
||
FIREBASE_CONFIG = { | ||
firebase_prod_app_id: "1:64530857057:android:f8d67b786db1b844", | ||
firebase_demo_app_id: "1:728434912738:android:48ccd9153349f31e1a1dbb", | ||
firebase_service_creds_file: "secrets/firebaseAppDistributionServiceCredentialsFile.json", | ||
firebase_groups: "mifos-mobile-testers" | ||
} | ||
|
||
BUILD_PATHS = { | ||
prod_apk_path: "mifospay-android/build/outputs/apk/prod/release/mifospay-android-prod-release.apk", | ||
demo_apk_path: "mifospay-android/build/outputs/apk/demo/release/mifospay-android-demo-release.apk", | ||
prod_aab_path: "mifospay-android/build/outputs/bundle/prodRelease/mifospay-android-prod-release.aab" | ||
} | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module FastlaneConfig | ||
module IosConfig | ||
FIREBASE_CONFIG = { | ||
firebase_app_id: "1:728434912738:ios:86a7badfaed88b841a1dbb", | ||
firebase_service_creds_file: "secrets/firebaseAppDistributionServiceCredentialsFile.json", | ||
firebase_groups: "mifos-mobile-testers" | ||
} | ||
|
||
BUILD_CONFIG = { | ||
project_path: "mifospay-ios/iosApp.xcodeproj", | ||
scheme: "iosApp", | ||
output_directory: "mifospay-ios/build" | ||
} | ||
end | ||
end |
Oops, something went wrong.