Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appsup-dart/firebase_management
Tools for managing firebase projects
https://github.com/appsup-dart/firebase_management
firebase
Last synced: about 2 months ago
JSON representation
Tools for managing firebase projects
- Host: GitHub
- URL: https://github.com/appsup-dart/firebase_management
- Owner: appsup-dart
- License: other
- Created: 2022-07-06T07:59:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T15:11:26.000Z (4 months ago)
- Last Synced: 2024-11-15T00:02:24.104Z (2 months ago)
- Topics: firebase
- Language: Dart
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Tools for managing firebase projects
## Usage
```dart
// applicationDefault() will look for credentials in the following locations:
// * the service-account.json file in the package main directory
// * the env variable GOOGLE_APPLICATION_CREDENTIALS
// * a configuration file, specific for this library, stored in the user's home directory
// * gcloud's application default credentials
var credential = Credentials.applicationDefault();// when no credentials found, login using openid
// the credentials are stored on disk for later use
credential ??= await Credentials.login();// create an instance of the FirebaseManagement class
var firebaseManagement = FirebaseManagement(credential);// get the list of projects
var projects = await firebaseManagement.projects.listFirebaseProjects();for (var p in projects) {
print('${p.displayName} - ${p.projectId}');// get the list of apps
var apps = await firebaseManagement.apps.listFirebaseApps(p.projectId);
for (var a in apps) {
print(
' ${a.platform.toString().substring('AppPlatform.'.length)} - ${a.displayName} - ${a.appId}');
}
}
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/appsup-dart/firebase_management/issues
## Sponsor
Creating and maintaining this package takes a lot of time. If you like the result, please consider to [:heart: sponsor](https://github.com/sponsors/rbellens).
With your support, I will be able to further improve and support this project.
Also, check out my other dart packages at [pub.dev](https://pub.dev/packages?q=publisher%3Aappsup.be).