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

fix(app-check): fix activate parameters and return, and app-check import advice #6056

Merged
merged 5 commits into from
Feb 7, 2022

Conversation

mikehardy
Copy link
Collaborator

@mikehardy mikehardy commented Feb 6, 2022

Description

Clean up some issues in the app-check implementation

Related issues

Fixes #5981 where @rawatnaresh noticed we were not handling parameters correctly for activate
Fixes #6052 where @birdofpreyru noticed we were not returning correctly from activate on ios
Fixes #6009 where @FakhruddinAbdi noticed the error message we gave on app-check import missing was wrong

Release Summary

all conventional commits, rebase-merge --> release

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan

I added e2e test cases to probe the failures noted by the people logging the issues in order to reproduce their problems, then repaired the code such that the e2e tests passed


Think react-native-firebase is great? Please consider supporting the project with any of the below:

fixes issue on some of my local build machines where ios won't build because
node is not found
previously iOS was not returning a promise, but Android was, documentation
was for a Promise to be returned

Fixes #6052 - Thanks to @birdofpreyru
@vercel
Copy link

vercel bot commented Feb 6, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

react-native-firebase – ./

🔍 Inspect: https://vercel.com/invertase/react-native-firebase/4WQvuGu4J82wn3UtDhVZx7iSKBXq
✅ Preview: Failed

[Deployment for 8db97b4 failed]

react-native-firebase-next – ./website_modular

🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/hs8yvE8bBABkGz11xhas5iU4BrsC
✅ Preview: Canceled

[Deployment for 8db97b4 canceled]

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Feb 6, 2022
@codecov
Copy link

codecov bot commented Feb 6, 2022

Codecov Report

Merging #6056 (6a01c0a) into main (924a829) will decrease coverage by 19.16%.
The diff coverage is 60.00%.

❗ Current head 6a01c0a differs from pull request most recent head 8db97b4. Consider uploading reports for the commit 8db97b4 to get more accurate results

@@              Coverage Diff              @@
##               main    #6056       +/-   ##
=============================================
- Coverage     72.11%   52.96%   -19.15%     
- Complexity        0      623      +623     
=============================================
  Files           109      208       +99     
  Lines          4600    10205     +5605     
  Branches       1033     1623      +590     
=============================================
+ Hits           3317     5404     +2087     
- Misses         1205     4546     +3341     
- Partials         78      255      +177     

previously, the required string argument was not validated, and
the optional boolean argument was not supplied to native, causing
an android native crash if not supplied

omitting the string now correctly throws an error, and omitting the
token refresh boolean will default correctly to app check token refresh
as configured in firebase.json, app-wide data collection if app check
does not have a config, and the default true if there is no config

Fixes #5981 - thanks to @rawatnaresh for catching this!
previously the error message for a missing import specified the
camel-case version of the package name, which is right for the
usage, but not for the import

Fixes #6009 - thanks to @FakhruddinAbdi for noticing it!
@vercel vercel bot temporarily deployed to Preview – react-native-firebase-next February 6, 2022 23:26 Inactive
@mikehardy mikehardy changed the title @mikehardy/app check cleanup fix(app-check): fix activate parameters and return, and app-check import advice Feb 6, 2022
@mikehardy mikehardy merged commit 5e898ec into main Feb 7, 2022
@mikehardy mikehardy deleted the @mikehardy/app-check-cleanup branch February 7, 2022 00:11
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant