-
Notifications
You must be signed in to change notification settings - Fork 66
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
Update plugin to support multiple plugins in the same project #41
Open
mic345
wants to merge
10
commits into
capacitor-community:master
Choose a base branch
from
mic345:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2016f48
fixed compilation error TS2794: Expected 1 arguments, but got 0
80e7d2b
Added initial support for multi Firebase plugins in the same project
8256fae
fixed Firebase script is loaded several times
be8a150
[refactor] gather plugins' common code together
2830da9
[refactor] unify plugin's common code with capacitor-community/fireba…
ea17070
fixed firebase may not be ready on firebaseObjectReadyPromise
4978d65
[privacy] removed unrequired Firebase/Core pod
eb0fe10
fixed [bug] project supports capacitor 2
8fa1827
update depentant packages
bb1d0ff
fixed [bug] method setScreenName is no longer supported.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,6 @@ end | |
|
||
target 'Plugin' do | ||
capacitor_pods | ||
|
||
pod 'Firebase/Core' | ||
pod 'Firebase/Analytics' | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you split this out into a separate PR, can you add some details about what is going wrong and what you did to fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly, we did this in order to create a reusable code between
firebase-analytics
andfirebase-remote-config
for their common needs (loading the scripts, etc.).In an ideal world someone would create a
firebase-common
project, move all the common code there and would use that project bothfirebase-analytics
,firebase-remote-config
and anywhere else firebase needs to load scripts (likely everywhere). Over time more common code would move there.I apologize for the single PR. We issue those fixes in the same PR as we needed to proceed with our work and the original project was discarded. Different PRs would have never been merged on time.
You are rightfully asking for splitting, but I'm afraid I wont have time for it anytime soon, as I'm already over loaded with work 😬. At this point I can suggest either to create a branch on the original project, merge the whole PR to it and test/refactor as much as needed, and only than merge to the master, or to cherry pick the commits from the PR. If it was me, I'd go for the first option, as the entire PR is already tested and used on our project.
I hope you find our code helpful.