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

[Wallet] Fix crash on iOS when segment is enabled #2222

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

jeanregisser
Copy link
Contributor

@jeanregisser jeanregisser commented Dec 12, 2019

Description

While preparing a TestFlight build I noticed the app was crashing on launch.
This was caused by Segment-Firebase which tried to initialize Firebase when it had already been done.
We didn't notice until now as we haven't created a new TestFlight build since Segment and React Native were upgraded. And Segment is not enabled in dev builds.

Fix was available upstream in Segment-Firebase 2.5.0 (segment-integrations/analytics-ios-integration-firebase#47) but required Firebase >= 6.2.

Given the implications of switching to Firebase 6, I simply relaxed that requirement in the podspec (the Segment-Firebase 2.5.0 update doesn't actually require new functionalities from Firebase 6.

Note: we can revert this commit when we upgrade to Firebase 6

Tested

App runs without crashing on launch.

Other changes

N/A

Related issues

Discussed on slack

Backwards compatibility

Yes

Copy link
Contributor

@i1skn i1skn left a comment

Choose a reason for hiding this comment

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

LGTM

@jeanregisser jeanregisser changed the title [Wallet] Fix crash when segment is enabled [Wallet] Fix crash on iOS when segment is enabled Dec 12, 2019
@jeanregisser jeanregisser added the automerge Have PR merge automatically when checks pass label Dec 12, 2019
@celo-ci-bot-user celo-ci-bot-user merged commit e5c5fda into master Dec 12, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the jeanregisser/fix-crash-when-segment-enabled branch December 12, 2019 14:40
aaronmgdr added a commit that referenced this pull request Dec 12, 2019
* master:
  [Wallet] Use Charles proxy to see eth JSON rpc calls when using forno (#2204)
  [Wallet] Disable skip button when the user enable contact access (#2224)
  [Wallet] Redesigning notification lists (#1967)
  [Wallet] Fix crash on iOS when segment is enabled (#2222)
  Update documentation wrt. epoch rewards fractions (#2182)
  Improvement facilitating to run a full node (#2130)
  [BlockchainApi] Add ability to get exchange rates from/to cGLD or cUSD (#2005)
  Improve reliability of e2e governance test (#2208)
  Fix/protocol test flakyness (#2155)
  Fix bignumber display in CLI (#2212)
  Doc changes to address frequently asked questions (#2209)
  Upgrade TS version (#2196)
  Wait for only waitTime - 1 blocks (#2207)
  Minor baklava docs reconnection fixes (#2215)
  Update walletkit gateway fee to fix transactions in forno mode (#2211)
  Update baklava network ID in docs for 1.1 (#2214)
  Support more than 1 attesation bot at a time (#2192)
  Check sync status of attestation service (#2191)
  Indicate to run Twilio globally (#2193)
  Add Twilio and attestation bot envs (#2194)
@jeanregisser jeanregisser self-assigned this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants