forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cloud_functions] Update example, README, depend on web plugin (flutt…
…er#1909) * Update example, add web plugin to cloud_functions dependencies * Add web plugin section to pubspec * Bump version for cloud_functions_web to pull in README changes * Appease version checker
- Loading branch information
Showing
6 changed files
with
52 additions
and
8 deletions.
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
34 changes: 34 additions & 0 deletions
34
packages/cloud_functions/cloud_functions/example/web/index.html
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
~ Copyright 2020 The Chromium Authors. All rights reserved. | ||
~ Use of this source code is governed by a BSD-style license that can be | ||
~ found in the LICENSE file. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Cloud Functions example app</title> | ||
</head> | ||
<body> | ||
<!-- The core Firebase JS SDK is always required and must be listed first --> | ||
<script src="https://www.gstatic.com/firebasejs/7.6.2/firebase-app.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/7.6.2/firebase-functions.js"></script> | ||
|
||
<!-- Initialize Firebase --> | ||
<script> | ||
const firebaseConfig = { | ||
apiKey: "AIzaSyBq6mcufFXfyqr79uELCiqM_O_1-G72PVU", | ||
authDomain: "flutterfire-cd2f7.firebaseapp.com", | ||
databaseURL: "https://flutterfire-cd2f7.firebaseio.com", | ||
projectId: "flutterfire-cd2f7", | ||
storageBucket: "flutterfire-cd2f7.appspot.com", | ||
messagingSenderId: "297855924061", | ||
appId: "1:297855924061:web:ccfb5cc13360119c", | ||
}; | ||
// Initialize Firebase | ||
let firebaseApp = firebase.initializeApp(firebaseConfig); | ||
</script> | ||
<script src="main.dart.js" type="application/javascript"></script> | ||
</body> | ||
</html> |
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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.0.3 | ||
|
||
Update README with real version numbers. | ||
|
||
## 1.0.2 | ||
|
||
Delete Kotlin no-op plugin and replace with Java. | ||
|
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
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