Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

defaults:
run:
working-directory: packages/dart_firebase_admin
working-directory: packages/firebase_admin_sdk

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:

defaults:
run:
working-directory: packages/dart_firebase_admin
working-directory: packages/firebase_admin_sdk

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:

- run: npm install -g firebase-tools

- name: Run dart_firebase_admin tests with coverage
- name: Run firebase_admin_sdk tests with coverage
run: ${{ github.workspace }}/scripts/coverage.sh

- name: Run google_cloud_firestore tests with coverage
Expand All @@ -171,7 +171,7 @@ jobs:
cp coverage.lcov coverage_admin.lcov
cp ../google_cloud_firestore/coverage.lcov coverage_firestore.lcov

# Merge coverage reports from all packages (relative to packages/dart_firebase_admin)
# Merge coverage reports from all packages (relative to packages/firebase_admin_sdk)
# Only merge files that exist
COVERAGE_FILES=""
[ -f coverage.lcov ] && COVERAGE_FILES="$COVERAGE_FILES coverage.lcov"
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:

# Console output
echo "=== Coverage Report ==="
echo "dart_firebase_admin: ${ADMIN_PCT}% (${ADMIN_HIT}/${ADMIN_TOTAL} lines)"
echo "firebase_admin_sdk: ${ADMIN_PCT}% (${ADMIN_HIT}/${ADMIN_TOTAL} lines)"
echo "google_cloud_firestore: ${FIRESTORE_PCT}% (${FIRESTORE_HIT}/${FIRESTORE_TOTAL} lines)"
echo "----------------------"
echo "Total: ${COVERAGE_PCT}% (${HIT_LINES}/${TOTAL_LINES} lines)"
Expand Down Expand Up @@ -280,7 +280,7 @@ jobs:
### Package Breakdown
| Package | Coverage |
|---------|----------|
| dart_firebase_admin | ${adminCov}% |
| firebase_admin_sdk | ${adminCov}% |
| google_cloud_firestore | ${firestoreCov}% |

_Minimum threshold: 40%_`;
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
continue-on-error: true
uses: codecov/codecov-action@v4
with:
files: packages/dart_firebase_admin/coverage.lcov
files: packages/firebase_admin_sdk/coverage.lcov
flags: unittests
fail_ci_if_error: false

Expand All @@ -340,7 +340,7 @@ jobs:

defaults:
run:
working-directory: packages/dart_firebase_admin
working-directory: packages/firebase_admin_sdk

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -380,8 +380,8 @@ jobs:
- name: Run WIF auth test
run: dart test test/integration/app/firebase_app_prod_test.dart --concurrency=1

build:
name: Build verification (Dart ${{ matrix.dart-version }})
publish:
name: Publish verification
runs-on: ubuntu-latest
needs: [check-license-header, lint, test, test-wif]
# Run even if test-wif was skipped (fork PRs), but not if other jobs failed
Expand All @@ -392,29 +392,24 @@ jobs:
needs.test.result == 'success' &&
(needs.test-wif.result == 'success' || needs.test-wif.result == 'skipped')

strategy:
fail-fast: false
matrix:
dart-version: [stable, beta]

defaults:
run:
working-directory: packages/dart_firebase_admin
working-directory: packages/firebase_admin_sdk

steps:
- uses: actions/checkout@v5

- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-version }}
sdk: stable

- name: Cache pub dependencies
uses: actions/cache@v5
with:
path: ~/.pub-cache
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
key: pub-stable-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
pub-${{ matrix.dart-version }}-
pub-stable-
pub-

- run: dart pub global activate melos
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ firestore-debug.log
coverage.lcov

node_modules
packages/dart_firebase_admin/test/client/package-lock.json
packages/firebase_admin_sdk/test/client/package-lock.json

build
coverage
Expand Down Expand Up @@ -34,4 +34,4 @@ pubspec.lock

service-account.json

**/pubspec_overrides.yaml
**/pubspec_overrides.yaml
25 changes: 0 additions & 25 deletions CHANGELOG.md

This file was deleted.

20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ Thank you for contributing to the Firebase community!
We get lots of those and we love helping you, but GitHub is not the best place for them. Issues which just ask about usage will be closed. Here are some resources to get help:

- Go through the [Firebase Admin SDK setup guide](https://firebase.google.com/docs/admin/setup/)
- Read the full [API reference](https://pub.dev/documentation/dart_firebase_admin/latest/)
- Read the full [API reference](https://pub.dev/documentation/firebase_admin_sdk/latest/)

If the official documentation doesn't help, try asking on [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase+dart).

**Please avoid double posting across multiple channels!**

## Think you found a bug?

Search through [existing issues](https://github.com/invertase/dart_firebase_admin/issues) before opening a new one — your question may have already been answered.
Search through [existing issues](https://github.com/firebase/firebase-admin-dart/issues) before opening a new one — your question may have already been answered.

If your issue appears to be a bug and hasn't been reported, [open a new issue](https://github.com/invertase/dart_firebase_admin/issues/new) using the bug report template and include a minimal repro.
If your issue appears to be a bug and hasn't been reported, [open a new issue](https://github.com/firebase/firebase-admin-dart/issues/new) using the bug report template and include a minimal repro.

If you are up to the challenge, [submit a pull request](#want-to-submit-a-pull-request) with a fix!

Expand All @@ -33,7 +33,7 @@ Share your idea through our [feature request support channel](https://firebase.g

## Want to submit a pull request?

Sweet, we'd love to accept your contribution! [Open a new pull request](https://github.com/invertase/dart_firebase_admin/pulls) and fill out the provided template.
Sweet, we'd love to accept your contribution! [Open a new pull request](https://github.com/firebase/firebase-admin-dart/pulls) and fill out the provided template.

**If you want to implement a new feature, please open an issue with a proposal first so that we can figure out if the feature makes sense and how it will work.**

Expand Down Expand Up @@ -78,7 +78,7 @@ All submissions, including submissions by project members, require review. We us
3. Verify your setup by running the analyzer and formatter:

```bash
cd packages/dart_firebase_admin
cd packages/firebase_admin_sdk
dart format --set-exit-if-changed .
dart analyze
```
Expand All @@ -88,11 +88,11 @@ All submissions, including submissions by project members, require review. We us
This repository is a monorepo managed by [Melos](https://melos.invertase.dev/).

```
dart_firebase_admin/ # Workspace root
firebase_admin_sdk/ # Workspace root
├── packages/
│ ├── dart_firebase_admin/ # Main Firebase Admin SDK package
│ ├── firebase_admin_sdk/ # Main Firebase Admin SDK package
│ │ ├── lib/
│ │ │ ├── dart_firebase_admin.dart # Public API barrel file
│ │ │ ├── firebase_admin_sdk.dart # Public API barrel file
│ │ │ ├── auth.dart # Auth public exports
│ │ │ ├── firestore.dart # Firestore public exports
│ │ │ ├── messaging.dart # Messaging public exports
Expand Down Expand Up @@ -123,7 +123,7 @@ Tests are split into unit/emulator tests and production integration tests.
#### Unit and Emulator Tests

```bash
# From packages/dart_firebase_admin
# From packages/firebase_admin_sdk

# Run all tests against emulators (requires Firebase CLI)
firebase emulators:exec --project dart-firebase-admin --only auth,firestore,functions,tasks,storage \
Expand Down Expand Up @@ -240,7 +240,7 @@ The project uses strict analysis settings (`strict-casts`, `strict-inference`, `
### Public API

- Each Firebase product has its own barrel file (e.g., `lib/auth.dart`, `lib/firestore.dart`). Only add exports there for types that users need directly.
- The top-level `lib/dart_firebase_admin.dart` re-exports core types. Product-specific types belong in their respective barrel files.
- The top-level `lib/firebase_admin_sdk.dart` re-exports core types. Product-specific types belong in their respective barrel files.
- Classes under `lib/src/` are implementation details and should not be exported from barrel files unless they are part of the public API.

### Documentation
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ analyzer:
errors:
lines_longer_than_80_chars: ignore
exclude:
- packages/dart_firebase_admin/example_server_app/**
- packages/firebase_admin_sdk/example_server_app/**
language:
strict-casts: true
strict-inference: true
Expand Down
4 changes: 2 additions & 2 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ <h1>Firebase Admin SDK for Dart</h1>

<ul class="package-list">
<li class="package-item">
<h2>dart_firebase_admin</h2>
<h2>firebase_admin_sdk</h2>
<p>Main Firebase Admin SDK package with support for Auth, Firestore, Messaging, App Check, Security Rules, and Functions.</p>
<a href="api/dart_firebase_admin/index.html">View Documentation →</a>
<a href="api/firebase_admin_sdk/index.html">View Documentation →</a>
</li>

<li class="package-item">
Expand Down
115 changes: 0 additions & 115 deletions packages/dart_firebase_admin/CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/dart_firebase_admin/example_server_app/CHANGELOG.md

This file was deleted.

Loading
Loading