This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
cloud functions multiple app support #1210
Merged
collinjackson
merged 10 commits into
flutter:master
from
collinjackson:functions_multiple_app_support
Feb 21, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
370b5ac
cloud functions multiple app support
collinjackson d275c73
Update CHANGELOG and pubspec.yaml for publishing
collinjackson 95cf9cb
Reformat
collinjackson 3ea42ee
Fix test
collinjackson face804
Fix errors in iOS code
collinjackson 1428c9a
reformat
collinjackson 1656d4d
Add missing import
collinjackson 7bafae8
Merge branch 'master' of github.com:flutter/plugins into functions_mu…
collinjackson f55f6f4
update dependency
collinjackson 5a361f5
Merge branch 'master' of github.com:flutter/plugins into functions_mu…
collinjackson 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| name: cloud_functions | ||
| description: Flutter plugin for Cloud Functions. | ||
| version: 0.1.0+1 | ||
| version: 0.1.1 | ||
| author: Flutter Team <[email protected]> | ||
| homepage: https://github.com/flutter/plugins/tree/master/packages/cloud_functions | ||
|
|
||
|
|
@@ -13,11 +13,11 @@ dependencies: | |
| meta: ^1.1.6 | ||
| flutter: | ||
| sdk: flutter | ||
| firebase_core: ^0.3.0 | ||
|
|
||
| dev_dependencies: | ||
| flutter_test: | ||
| sdk: flutter | ||
| firebase_core: ^0.3.0 | ||
|
|
||
| environment: | ||
| sdk: ">=2.0.0-dev.28.0 <3.0.0" | ||
|
|
||
This file contains hidden or 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.
if
appNameisnulldo we wantFirebaseApp.getInstance(), thats for defaultFirebaseAppas opposed toFirebaseApp.getInstance(null)which might throw? (it's not very clear per docs https://firebase.google.com/docs/reference/android/com/google/firebase/FirebaseApp.html#getInstance(java.lang.String))Uh oh!
There was an error while loading. Please reload this page.
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.
I think
appNamecannot be null with the firebase_core plugin that we are depending on. There is anassert(name != null)in firebase_core. The default app is named__FIRAPP_DEFAULTon iOS and[DEFAULT]on Android.Note that app can't be
nulleither; see the DartCloudFunctionsconstructor.