diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 53ccb34a..e17a4e0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: defaults: run: - working-directory: packages/dart_firebase_admin + working-directory: packages/firebase_admin_sdk steps: - uses: actions/checkout@v5 @@ -111,7 +111,7 @@ jobs: defaults: run: - working-directory: packages/dart_firebase_admin + working-directory: packages/firebase_admin_sdk steps: - uses: actions/checkout@v5 @@ -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 @@ -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" @@ -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)" @@ -280,7 +280,7 @@ jobs: ### Package Breakdown | Package | Coverage | |---------|----------| - | dart_firebase_admin | ${adminCov}% | + | firebase_admin_sdk | ${adminCov}% | | google_cloud_firestore | ${firestoreCov}% | _Minimum threshold: 40%_`; @@ -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 @@ -340,7 +340,7 @@ jobs: defaults: run: - working-directory: packages/dart_firebase_admin + working-directory: packages/firebase_admin_sdk steps: - uses: actions/checkout@v5 @@ -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 @@ -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 diff --git a/.gitignore b/.gitignore index b4fc488a..01337a06 100644 --- a/.gitignore +++ b/.gitignore @@ -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 @@ -34,4 +34,4 @@ pubspec.lock service-account.json -**/pubspec_overrides.yaml \ No newline at end of file +**/pubspec_overrides.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 453c9517..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,25 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## 2024-05-06 - -### Changes - ---- - -Packages with breaking changes: - - - There are no breaking changes in this release. - -Packages with other changes: - - - [`dart_firebase_admin` - `v0.3.1`](#dart_firebase_admin---v031) - ---- - -#### `dart_firebase_admin` - `v0.3.1` - - - **FEAT**: Use GOOGLE_APPLICATION_CREDENTIALS if json value (#32). - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 09e1031a..3557d973 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ 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). @@ -21,9 +21,9 @@ If the official documentation doesn't help, try asking on [Stack Overflow](https ## 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! @@ -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.** @@ -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 ``` @@ -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 @@ -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 \ @@ -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 diff --git a/analysis_options.yaml b/analysis_options.yaml index 1d6b95cd..3d6fa33d 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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 diff --git a/doc/index.html b/doc/index.html index ac3599bb..d6393f25 100644 --- a/doc/index.html +++ b/doc/index.html @@ -55,9 +55,9 @@

Firebase Admin SDK for Dart