Skip to content

Commit

Permalink
set up uploading apks to Firebase using fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
lmac012 committed Oct 22, 2024
1 parent d45a29e commit 4fd3bfb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,27 @@ platform :android do

end

desc "Upload APK to Firebase App Distribution"
lane :deploy_firebase do |options|

versionCode = google_play_track_version_codes(track: 'internal').max
apkPath = "duckduckgo.apk"

download_universal_apk_from_google_play(
version_code: versionCode,
destination: apkPath
)

firebase_app_distribution(
app: "1:239339218528:android:732e03dcf13d1488db8505",
groups: "ddg-employees",
android_artifact_type: "APK",
android_artifact_path: apkPath,
release_notes: options[:release_notes]
)

end

desc "Deploy APK to GitHub"
lane :deploy_github do

Expand Down
16 changes: 16 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ Update GitHub release notes

Upload APK to Play Store internal testing track

### android deploy_firebase

```sh
[bundle exec] fastlane android deploy_firebase
```

Upload APK to Firebase App Distribution

### android deploy_github

```sh
Expand All @@ -55,6 +63,14 @@ Upload APK to Play Store internal testing track

Deploy APK to GitHub

### android tag_and_release_version

```sh
[bundle exec] fastlane android tag_and_release_version
```

Tag and release a new app version

### android release

```sh
Expand Down

0 comments on commit 4fd3bfb

Please sign in to comment.