Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastlane/Firebase config: use stagingRelease buildType for :apk and :apk_local builds #1833

Merged
merged 6 commits into from
Nov 17, 2022

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Nov 16, 2022

📝 Description

Right now, non-release builds triggered from the CI on Android have a "release" buildType. Unfortunately, Firebase is configured statically with google-services.json files that are different depending on the buildType.

Since these non-release builds should be considered as "staging" builds, it seems normal that they use the staging configuration for Firebase, and thus target the staging Firebase project.

So this PR changes the logic of builds so that they use the "stagingRelease" buildType. It will have two impacts:

  • These builds will that the package name "com.ledger.live.staging", so they will be installed separately from the prod application.
  • These builds will target the Firebase staging environment.

❓ Context

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@ofreyssinet-ledger ofreyssinet-ledger requested a review from a team November 16, 2022 15:58
@vercel
Copy link

vercel bot commented Nov 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
live-common-tools ✅ Ready (Inspect) Visit Preview Nov 16, 2022 at 5:32PM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Nov 16, 2022 at 5:32PM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Nov 16, 2022 at 5:32PM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Nov 16, 2022 at 5:32PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Nov 16, 2022

🦋 Changeset detected

Latest commit: 447353c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
live-mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ofreyssinet-ledger ofreyssinet-ledger changed the title Firebase config: yse stagingRelease buildType for :apk and :apk_local builds Firebase config: use stagingRelease buildType for :apk and :apk_local builds Nov 16, 2022
@github-actions github-actions bot added the mobile Has changes in LLM label Nov 16, 2022
@ofreyssinet-ledger ofreyssinet-ledger changed the title Firebase config: use stagingRelease buildType for :apk and :apk_local builds Fastlane/Firebase config: use stagingRelease buildType for :apk and :apk_local builds Nov 16, 2022
@@ -1,7 +1,6 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://ea730d6c531f40679e7306c888f7fbc5@o118392.ingest.sentry.io/6723478
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unused and it's confusing everyone. Unfortunately we cannot easily configure Google services (thus Firebase) dynamically with a simple environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD stuff mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants