Skip to content

Add initial bare-bones Cordova support / popup redirect #4379

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

Merged
merged 4 commits into from
Feb 2, 2021

Conversation

sam-gc
Copy link
Contributor

@sam-gc sam-gc commented Feb 1, 2021

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Feb 1, 2021

⚠️ No Changeset found

Latest commit: e228278

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@sam-gc sam-gc requested review from avolkovi and yuchenshi February 1, 2021 22:58
@sam-gc sam-gc marked this pull request as ready for review February 1, 2021 22:58
export { browserLocalPersistence } from './src/platform_browser/persistence/local_storage';
export { browserSessionPersistence } from './src/platform_browser/persistence/session_storage';

export { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect';
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to export this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It can be used independently (if you use initializeAuth() for example instead of getAuth())

});
});

function setExpectedPluginsButMissing(missingPlugins: string[]): void {
Copy link
Member

Choose a reason for hiding this comment

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

IMO it's probably easier to just have this function mock the whole thing (with all plugins), and then write things like delete window.universalLinks.subscribe in individual tests. It's more straightforward and don't need the awkward object traversing below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Still have to do a bit of a dance because the package doesn't mark those as optional. Still cleaner 👍

Base automatically changed from samgho/fix-auth-tests to master February 2, 2021 02:11
@sam-gc sam-gc force-pushed the samgho/platform-cordova branch from 983c226 to e228278 Compare February 2, 2021 02:28
@sam-gc sam-gc merged commit 6766da2 into master Feb 2, 2021
@sam-gc sam-gc deleted the samgho/platform-cordova branch February 2, 2021 03:50
@firebase firebase locked and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants