From de739b9d7b8d02a534eae378ed1a0a6b97df77c5 Mon Sep 17 00:00:00 2001 From: demolaf Date: Fri, 27 Feb 2026 14:30:33 +0100 Subject: [PATCH] refactor: rename to google_cloud_storage --- .github/workflows/build.yml | 10 +++++----- doc/index.html | 4 ++-- packages/dart_firebase_admin/README.md | 4 ++-- .../example/lib/storage_example.dart | 2 +- packages/dart_firebase_admin/example/pubspec.yaml | 6 +++--- .../lib/src/storage/storage.dart | 12 ++++++------ packages/dart_firebase_admin/pubspec.yaml | 2 +- .../test/storage/storage_integration_test.dart | 2 +- .../test/storage/storage_test.dart | 6 +++--- .../.firebaserc | 0 .../.gitignore | 0 .../CHANGELOG.md | 0 .../README.md | 0 .../analysis_options.yaml | 0 .../build.yaml | 0 .../example/googleapis_dart_storage_example.dart | 2 +- .../example/resumable_upload.dart | 2 +- .../example/three-mb-file.tif | Bin .../lib/google_cloud_storage.dart} | 6 +++--- .../lib/src/acl.dart | 2 +- .../lib/src/bucket.dart | 2 +- .../lib/src/channel.dart | 2 +- .../lib/src/crc32c.dart | 2 +- .../lib/src/credential.dart | 0 .../lib/src/environment.dart | 2 +- .../lib/src/file.dart | 2 +- .../lib/src/hash_stream_validator.dart | 2 +- .../lib/src/hmac_key.dart | 2 +- .../lib/src/iam.dart | 2 +- .../lib/src/internal/api.dart | 2 +- .../lib/src/internal/api_error.dart | 0 .../lib/src/internal/emulator_client.dart | 0 .../lib/src/internal/limit.dart | 0 .../lib/src/internal/service.dart | 4 ++-- .../lib/src/internal/service_object.dart | 2 +- .../lib/src/internal/storage_http_client.dart | 0 .../lib/src/internal/streaming.dart | 0 .../lib/src/internal/xml_multipart_helper.dart | 0 .../lib/src/notification.dart | 2 +- .../lib/src/resumable_upload.dart | 2 +- .../lib/src/signer.dart | 2 +- .../lib/src/storage.dart | 2 +- .../lib/src/transfer_manager.dart | 4 ++-- .../lib/src/types.dart | 2 +- .../lib/src/types.freezed.dart | 0 .../lib/version.g.dart | 0 .../pubspec.yaml | 2 +- .../test/helpers.dart | 2 +- .../test/integration/bucket_integration_test.dart | 2 +- .../test/integration/file_integration_test.dart | 2 +- .../test/integration/main.dart | 2 +- .../test/integration/signer_integration_test.dart | 2 +- .../test/integration/storage.dart | 2 +- .../test/integration/storage_integration_test.dart | 2 +- .../test/unit/acl_test.dart | 2 +- .../test/unit/bucket_test.dart | 2 +- .../test/unit/crc32c_test.dart | 2 +- .../test/unit/file_test.dart | 2 +- .../test/unit/hash_stream_validator_test.dart | 2 +- .../test/unit/hmac_key_test.dart | 2 +- .../test/unit/internal/limit.dart | 2 +- .../test/unit/signer_test.dart | 2 +- .../test/unit/storage_http_client_test.dart | 4 ++-- .../test/unit/storage_test.dart | 4 ++-- pubspec.yaml | 2 +- scripts/storage-coverage.sh | 2 +- 66 files changed, 71 insertions(+), 71 deletions(-) rename packages/{googleapis_storage => google_cloud_storage}/.firebaserc (100%) rename packages/{googleapis_storage => google_cloud_storage}/.gitignore (100%) rename packages/{googleapis_storage => google_cloud_storage}/CHANGELOG.md (100%) rename packages/{googleapis_storage => google_cloud_storage}/README.md (100%) rename packages/{googleapis_storage => google_cloud_storage}/analysis_options.yaml (100%) rename packages/{googleapis_storage => google_cloud_storage}/build.yaml (100%) rename packages/{googleapis_storage => google_cloud_storage}/example/googleapis_dart_storage_example.dart (79%) rename packages/{googleapis_storage => google_cloud_storage}/example/resumable_upload.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/example/three-mb-file.tif (100%) rename packages/{googleapis_storage/lib/googleapis_storage.dart => google_cloud_storage/lib/google_cloud_storage.dart} (87%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/acl.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/bucket.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/channel.dart (97%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/crc32c.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/credential.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/environment.dart (97%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/file.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/hash_stream_validator.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/hmac_key.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/iam.dart (97%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/api.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/api_error.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/emulator_client.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/limit.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/service.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/service_object.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/storage_http_client.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/streaming.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/internal/xml_multipart_helper.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/notification.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/resumable_upload.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/signer.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/storage.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/transfer_manager.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/types.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/lib/src/types.freezed.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/lib/version.g.dart (100%) rename packages/{googleapis_storage => google_cloud_storage}/pubspec.yaml (95%) rename packages/{googleapis_storage => google_cloud_storage}/test/helpers.dart (91%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/bucket_integration_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/file_integration_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/main.dart (97%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/signer_integration_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/storage.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/integration/storage_integration_test.dart (97%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/acl_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/bucket_test.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/crc32c_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/file_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/hash_stream_validator_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/hmac_key_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/internal/limit.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/signer_test.dart (99%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/storage_http_client_test.dart (98%) rename packages/{googleapis_storage => google_cloud_storage}/test/unit/storage_test.dart (99%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3992fe5b..6c9b9206 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -134,7 +134,7 @@ jobs: - name: Run googleapis_firestore tests with coverage run: ${{ github.workspace }}/scripts/firestore-coverage.sh - - name: Run googleapis_storage tests with coverage + - name: Run google_cloud_storage tests with coverage run: ${{ github.workspace }}/scripts/storage-coverage.sh - name: Merge coverage reports @@ -142,14 +142,14 @@ jobs: # Save individual package coverage files before merging cp coverage.lcov coverage_admin.lcov cp ../googleapis_firestore/coverage.lcov coverage_firestore.lcov - cp ../googleapis_storage/coverage.lcov coverage_storage.lcov + cp ../google_cloud_storage/coverage.lcov coverage_storage.lcov # Merge coverage reports from all packages (relative to packages/dart_firebase_admin) # Only merge files that exist COVERAGE_FILES="" [ -f coverage.lcov ] && COVERAGE_FILES="$COVERAGE_FILES coverage.lcov" [ -f ../googleapis_firestore/coverage.lcov ] && COVERAGE_FILES="$COVERAGE_FILES ../googleapis_firestore/coverage.lcov" - [ -f ../googleapis_storage/coverage.lcov ] && COVERAGE_FILES="$COVERAGE_FILES ../googleapis_storage/coverage.lcov" + [ -f ../google_cloud_storage/coverage.lcov ] && COVERAGE_FILES="$COVERAGE_FILES ../google_cloud_storage/coverage.lcov" if [ -n "$COVERAGE_FILES" ]; then cat $COVERAGE_FILES > merged_coverage.lcov @@ -220,7 +220,7 @@ jobs: echo "=== Coverage Report ===" echo "dart_firebase_admin: ${ADMIN_PCT}% (${ADMIN_HIT}/${ADMIN_TOTAL} lines)" echo "googleapis_firestore: ${FIRESTORE_PCT}% (${FIRESTORE_HIT}/${FIRESTORE_TOTAL} lines)" - echo "googleapis_storage: ${STORAGE_PCT}% (${STORAGE_HIT}/${STORAGE_TOTAL} lines)" + echo "google_cloud_storage: ${STORAGE_PCT}% (${STORAGE_HIT}/${STORAGE_TOTAL} lines)" echo "----------------------" echo "Total: ${COVERAGE_PCT}% (${HIT_LINES}/${TOTAL_LINES} lines)" @@ -257,7 +257,7 @@ jobs: |---------|----------| | dart_firebase_admin | ${adminCov}% | | googleapis_firestore | ${firestoreCov}% | - | googleapis_storage | ${storageCov}% | + | google_cloud_storage | ${storageCov}% | _Minimum threshold: 40%_`; diff --git a/doc/index.html b/doc/index.html index 56e25ae4..7b144ac1 100644 --- a/doc/index.html +++ b/doc/index.html @@ -67,9 +67,9 @@

googleapis_firestore

  • -

    googleapis_storage

    +

    google_cloud_storage

    Standalone Cloud Storage client library for Dart. Provides access to bucket and file operations including uploads, downloads, signed URLs, HMAC keys, and metadata management.

    - View Documentation → + View Documentation →
  • diff --git a/packages/dart_firebase_admin/README.md b/packages/dart_firebase_admin/README.md index c1c1d6f0..3ee1573d 100644 --- a/packages/dart_firebase_admin/README.md +++ b/packages/dart_firebase_admin/README.md @@ -401,7 +401,7 @@ await messaging.unsubscribeFromTopic(['', ''], 'news'); ```dart import 'package:dart_firebase_admin/dart_firebase_admin.dart'; -import 'package:googleapis_storage/googleapis_storage.dart' hide Storage; +import 'package:google_cloud_storage/google_cloud_storage.dart' hide Storage; final app = FirebaseApp.initializeApp(); final bucket = app.storage().bucket(''); @@ -544,7 +544,7 @@ The Firebase Admin Dart SDK currently supports the following Firebase services: Alongside the Firebase Admin Dart SDK, this repository contains additional workspace/pub.dev packages to accomodate the SDK: - [googleapis_firestore](/packages/googleapis_firestore/): Standalone Google APIs Firestore SDK, which the Firebase SDK extends. -- [googleapis_storage](/packages/googleapis_storage/): Standalone Google APIs Storage SDK, which the Firebase SDK extends. +- [google_cloud_storage](/packages/google_cloud_storage/): Standalone Google APIs Storage SDK, which the Firebase SDK extends. # Contributing diff --git a/packages/dart_firebase_admin/example/lib/storage_example.dart b/packages/dart_firebase_admin/example/lib/storage_example.dart index 24b80bd5..3d531510 100644 --- a/packages/dart_firebase_admin/example/lib/storage_example.dart +++ b/packages/dart_firebase_admin/example/lib/storage_example.dart @@ -1,6 +1,6 @@ import 'dart:convert'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; -import 'package:googleapis_storage/googleapis_storage.dart' hide Storage; +import 'package:google_cloud_storage/google_cloud_storage.dart' hide Storage; Future storageExample(FirebaseApp admin) async { print('\n### Storage Example ###\n'); diff --git a/packages/dart_firebase_admin/example/pubspec.yaml b/packages/dart_firebase_admin/example/pubspec.yaml index 42dcea29..07220648 100644 --- a/packages/dart_firebase_admin/example/pubspec.yaml +++ b/packages/dart_firebase_admin/example/pubspec.yaml @@ -6,14 +6,14 @@ environment: dependencies: dart_firebase_admin: ^0.1.0 + google_cloud_storage: ^0.1.0 googleapis_firestore: ^0.1.0 - googleapis_storage: ^0.1.0 dependency_overrides: dart_firebase_admin: path: ../../dart_firebase_admin + google_cloud_storage: + path: ../../google_cloud_storage googleapis_firestore: path: ../../googleapis_firestore - googleapis_storage: - path: ../../googleapis_storage diff --git a/packages/dart_firebase_admin/lib/src/storage/storage.dart b/packages/dart_firebase_admin/lib/src/storage/storage.dart index 606f9365..512e01aa 100644 --- a/packages/dart_firebase_admin/lib/src/storage/storage.dart +++ b/packages/dart_firebase_admin/lib/src/storage/storage.dart @@ -1,5 +1,5 @@ -import 'package:googleapis_storage/googleapis_storage.dart' - as googleapis_storage; +import 'package:google_cloud_storage/google_cloud_storage.dart' + as google_cloud_storage; import 'package:meta/meta.dart'; import '../app.dart'; @@ -21,8 +21,8 @@ class Storage implements FirebaseService { apiEndpoint = 'http://$emulatorHost'; } - _delegate = googleapis_storage.Storage( - googleapis_storage.StorageOptions( + _delegate = google_cloud_storage.Storage( + google_cloud_storage.StorageOptions( authClient: isEmulator ? null : app.client, apiEndpoint: apiEndpoint, useAuthWithCustomEndpoint: false, @@ -39,9 +39,9 @@ class Storage implements FirebaseService { @override final FirebaseApp app; - late final googleapis_storage.Storage _delegate; + late final google_cloud_storage.Storage _delegate; - googleapis_storage.Bucket bucket(String? name) { + google_cloud_storage.Bucket bucket(String? name) { final bucketName = name ?? app.options.storageBucket; if (bucketName == null || bucketName.isEmpty) { throw FirebaseAppException( diff --git a/packages/dart_firebase_admin/pubspec.yaml b/packages/dart_firebase_admin/pubspec.yaml index db1a9e94..f115c658 100644 --- a/packages/dart_firebase_admin/pubspec.yaml +++ b/packages/dart_firebase_admin/pubspec.yaml @@ -15,11 +15,11 @@ dependencies: dart_jsonwebtoken: ^3.0.0 equatable: ^2.0.7 google_cloud: ^0.3.0 + google_cloud_storage: ^0.1.0 googleapis: ^15.0.0 googleapis_auth: ^2.1.0 googleapis_beta: ^9.0.0 googleapis_firestore: ^0.1.0 - googleapis_storage: ^0.1.0 http: ^1.0.0 intl: ^0.20.0 jose: ^0.3.4 diff --git a/packages/dart_firebase_admin/test/storage/storage_integration_test.dart b/packages/dart_firebase_admin/test/storage/storage_integration_test.dart index 32c09b94..f18313cf 100644 --- a/packages/dart_firebase_admin/test/storage/storage_integration_test.dart +++ b/packages/dart_firebase_admin/test/storage/storage_integration_test.dart @@ -1,7 +1,7 @@ import 'dart:typed_data'; import 'package:dart_firebase_admin/src/app.dart'; -import 'package:googleapis_storage/googleapis_storage.dart' as gcs; +import 'package:google_cloud_storage/google_cloud_storage.dart' as gcs; import 'package:test/test.dart'; import '../helpers.dart'; diff --git a/packages/dart_firebase_admin/test/storage/storage_test.dart b/packages/dart_firebase_admin/test/storage/storage_test.dart index 540faf78..2e681ff5 100644 --- a/packages/dart_firebase_admin/test/storage/storage_test.dart +++ b/packages/dart_firebase_admin/test/storage/storage_test.dart @@ -2,8 +2,8 @@ import 'dart:async'; import 'package:dart_firebase_admin/src/app.dart'; import 'package:dart_firebase_admin/src/storage/storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart' as gcs; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart' as gcs; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; @@ -358,14 +358,14 @@ void main() { }); group('Integration with underlying Storage library', () { - test('should pass through to googleapis_storage correctly', () { + test('should pass through to google_cloud_storage correctly', () { final storage = Storage.internal(appWithBucket); final bucket = storage.bucket('integration-test-bucket'); expect(bucket, isA()); expect(bucket.name, 'integration-test-bucket'); - // The bucket should be a valid googleapis_storage.Bucket instance + // The bucket should be a valid google_cloud_storage.Bucket instance expect(bucket.storage, isNotNull); }); diff --git a/packages/googleapis_storage/.firebaserc b/packages/google_cloud_storage/.firebaserc similarity index 100% rename from packages/googleapis_storage/.firebaserc rename to packages/google_cloud_storage/.firebaserc diff --git a/packages/googleapis_storage/.gitignore b/packages/google_cloud_storage/.gitignore similarity index 100% rename from packages/googleapis_storage/.gitignore rename to packages/google_cloud_storage/.gitignore diff --git a/packages/googleapis_storage/CHANGELOG.md b/packages/google_cloud_storage/CHANGELOG.md similarity index 100% rename from packages/googleapis_storage/CHANGELOG.md rename to packages/google_cloud_storage/CHANGELOG.md diff --git a/packages/googleapis_storage/README.md b/packages/google_cloud_storage/README.md similarity index 100% rename from packages/googleapis_storage/README.md rename to packages/google_cloud_storage/README.md diff --git a/packages/googleapis_storage/analysis_options.yaml b/packages/google_cloud_storage/analysis_options.yaml similarity index 100% rename from packages/googleapis_storage/analysis_options.yaml rename to packages/google_cloud_storage/analysis_options.yaml diff --git a/packages/googleapis_storage/build.yaml b/packages/google_cloud_storage/build.yaml similarity index 100% rename from packages/googleapis_storage/build.yaml rename to packages/google_cloud_storage/build.yaml diff --git a/packages/googleapis_storage/example/googleapis_dart_storage_example.dart b/packages/google_cloud_storage/example/googleapis_dart_storage_example.dart similarity index 79% rename from packages/googleapis_storage/example/googleapis_dart_storage_example.dart rename to packages/google_cloud_storage/example/googleapis_dart_storage_example.dart index dcc6356f..61ad2f32 100644 --- a/packages/googleapis_storage/example/googleapis_dart_storage_example.dart +++ b/packages/google_cloud_storage/example/googleapis_dart_storage_example.dart @@ -1,4 +1,4 @@ -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; void main() async { final storage = Storage( diff --git a/packages/googleapis_storage/example/resumable_upload.dart b/packages/google_cloud_storage/example/resumable_upload.dart similarity index 98% rename from packages/googleapis_storage/example/resumable_upload.dart rename to packages/google_cloud_storage/example/resumable_upload.dart index a472c35e..c6488d1d 100644 --- a/packages/googleapis_storage/example/resumable_upload.dart +++ b/packages/google_cloud_storage/example/resumable_upload.dart @@ -1,6 +1,6 @@ import 'dart:io' as io; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; /// Example demonstrating resumable uploads with Google Cloud Storage. /// diff --git a/packages/googleapis_storage/example/three-mb-file.tif b/packages/google_cloud_storage/example/three-mb-file.tif similarity index 100% rename from packages/googleapis_storage/example/three-mb-file.tif rename to packages/google_cloud_storage/example/three-mb-file.tif diff --git a/packages/googleapis_storage/lib/googleapis_storage.dart b/packages/google_cloud_storage/lib/google_cloud_storage.dart similarity index 87% rename from packages/googleapis_storage/lib/googleapis_storage.dart rename to packages/google_cloud_storage/lib/google_cloud_storage.dart index be023667..ad338e57 100644 --- a/packages/googleapis_storage/lib/googleapis_storage.dart +++ b/packages/google_cloud_storage/lib/google_cloud_storage.dart @@ -9,9 +9,9 @@ import 'package:crypto/crypto.dart' as crypto; import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart'; -import 'package:googleapis_storage/src/internal/api_error.dart'; -import 'package:googleapis_storage/src/internal/api.dart'; -import 'package:googleapis_storage/src/internal/service.dart'; +import 'package:google_cloud_storage/src/internal/api_error.dart'; +import 'package:google_cloud_storage/src/internal/api.dart'; +import 'package:google_cloud_storage/src/internal/service.dart'; import 'package:http/http.dart' as http; import 'package:intl/intl.dart'; import 'package:meta/meta.dart'; diff --git a/packages/googleapis_storage/lib/src/acl.dart b/packages/google_cloud_storage/lib/src/acl.dart similarity index 99% rename from packages/googleapis_storage/lib/src/acl.dart rename to packages/google_cloud_storage/lib/src/acl.dart index 60ed73a5..82c4aa27 100644 --- a/packages/googleapis_storage/lib/src/acl.dart +++ b/packages/google_cloud_storage/lib/src/acl.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// Team role within a project team, matching the Node SDK's team values. enum ProjectTeamRole { diff --git a/packages/googleapis_storage/lib/src/bucket.dart b/packages/google_cloud_storage/lib/src/bucket.dart similarity index 99% rename from packages/googleapis_storage/lib/src/bucket.dart rename to packages/google_cloud_storage/lib/src/bucket.dart index 37c39b2f..a5fd4861 100644 --- a/packages/googleapis_storage/lib/src/bucket.dart +++ b/packages/google_cloud_storage/lib/src/bucket.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; class Bucket extends ServiceObject with diff --git a/packages/googleapis_storage/lib/src/channel.dart b/packages/google_cloud_storage/lib/src/channel.dart similarity index 97% rename from packages/googleapis_storage/lib/src/channel.dart rename to packages/google_cloud_storage/lib/src/channel.dart index 620fee3c..48802b10 100644 --- a/packages/googleapis_storage/lib/src/channel.dart +++ b/packages/google_cloud_storage/lib/src/channel.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// Create a channel object to interact with a Cloud Storage channel. /// diff --git a/packages/googleapis_storage/lib/src/crc32c.dart b/packages/google_cloud_storage/lib/src/crc32c.dart similarity index 99% rename from packages/googleapis_storage/lib/src/crc32c.dart rename to packages/google_cloud_storage/lib/src/crc32c.dart index 0f68a347..44d4e5c9 100644 --- a/packages/googleapis_storage/lib/src/crc32c.dart +++ b/packages/google_cloud_storage/lib/src/crc32c.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// A validator interface for CRC32C hashing and validation, analogous to the /// Node.js `CRC32CValidator`. diff --git a/packages/googleapis_storage/lib/src/credential.dart b/packages/google_cloud_storage/lib/src/credential.dart similarity index 100% rename from packages/googleapis_storage/lib/src/credential.dart rename to packages/google_cloud_storage/lib/src/credential.dart diff --git a/packages/googleapis_storage/lib/src/environment.dart b/packages/google_cloud_storage/lib/src/environment.dart similarity index 97% rename from packages/googleapis_storage/lib/src/environment.dart rename to packages/google_cloud_storage/lib/src/environment.dart index 931e7dc3..e9827a2f 100644 --- a/packages/googleapis_storage/lib/src/environment.dart +++ b/packages/google_cloud_storage/lib/src/environment.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'dart:io'; -import '../googleapis_storage.dart'; +import '../google_cloud_storage.dart'; /// Environment variable names used by Google Cloud Storage. /// diff --git a/packages/googleapis_storage/lib/src/file.dart b/packages/google_cloud_storage/lib/src/file.dart similarity index 99% rename from packages/googleapis_storage/lib/src/file.dart rename to packages/google_cloud_storage/lib/src/file.dart index f5d3b8e9..e6da550f 100644 --- a/packages/googleapis_storage/lib/src/file.dart +++ b/packages/google_cloud_storage/lib/src/file.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; final _gsUtilUrlRegex = RegExp(r'^gs://([a-z0-9_.-]+)/(.+)$'); final _httpsPublicUrlRegex = RegExp( diff --git a/packages/googleapis_storage/lib/src/hash_stream_validator.dart b/packages/google_cloud_storage/lib/src/hash_stream_validator.dart similarity index 99% rename from packages/googleapis_storage/lib/src/hash_stream_validator.dart rename to packages/google_cloud_storage/lib/src/hash_stream_validator.dart index 84efc012..7c756a0f 100644 --- a/packages/googleapis_storage/lib/src/hash_stream_validator.dart +++ b/packages/google_cloud_storage/lib/src/hash_stream_validator.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// Options for configuring a [HashStreamValidator]. class HashStreamValidatorOptions { diff --git a/packages/googleapis_storage/lib/src/hmac_key.dart b/packages/google_cloud_storage/lib/src/hmac_key.dart similarity index 99% rename from packages/googleapis_storage/lib/src/hmac_key.dart rename to packages/google_cloud_storage/lib/src/hmac_key.dart index 4fd80719..891abd8b 100644 --- a/packages/googleapis_storage/lib/src/hmac_key.dart +++ b/packages/google_cloud_storage/lib/src/hmac_key.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// A handle to a single HMAC key, analogous to the Node.js HmacKey class. /// diff --git a/packages/googleapis_storage/lib/src/iam.dart b/packages/google_cloud_storage/lib/src/iam.dart similarity index 97% rename from packages/googleapis_storage/lib/src/iam.dart rename to packages/google_cloud_storage/lib/src/iam.dart index 9241a78b..108ed757 100644 --- a/packages/googleapis_storage/lib/src/iam.dart +++ b/packages/google_cloud_storage/lib/src/iam.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; class Iam { final Bucket bucket; diff --git a/packages/googleapis_storage/lib/src/internal/api.dart b/packages/google_cloud_storage/lib/src/internal/api.dart similarity index 99% rename from packages/googleapis_storage/lib/src/internal/api.dart rename to packages/google_cloud_storage/lib/src/internal/api.dart index dd421c27..de8c6cb7 100644 --- a/packages/googleapis_storage/lib/src/internal/api.dart +++ b/packages/google_cloud_storage/lib/src/internal/api.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:googleapis/storage/v1.dart'; import 'package:google_cloud/google_cloud.dart' as google_cloud; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; /// Decide if an error should be retried, roughly mirroring Node's /// Util.shouldRetryRequest (status codes + JSON error reasons). diff --git a/packages/googleapis_storage/lib/src/internal/api_error.dart b/packages/google_cloud_storage/lib/src/internal/api_error.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/api_error.dart rename to packages/google_cloud_storage/lib/src/internal/api_error.dart diff --git a/packages/googleapis_storage/lib/src/internal/emulator_client.dart b/packages/google_cloud_storage/lib/src/internal/emulator_client.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/emulator_client.dart rename to packages/google_cloud_storage/lib/src/internal/emulator_client.dart diff --git a/packages/googleapis_storage/lib/src/internal/limit.dart b/packages/google_cloud_storage/lib/src/internal/limit.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/limit.dart rename to packages/google_cloud_storage/lib/src/internal/limit.dart diff --git a/packages/googleapis_storage/lib/src/internal/service.dart b/packages/google_cloud_storage/lib/src/internal/service.dart similarity index 98% rename from packages/googleapis_storage/lib/src/internal/service.dart rename to packages/google_cloud_storage/lib/src/internal/service.dart index 008febd1..6eb48d10 100644 --- a/packages/googleapis_storage/lib/src/internal/service.dart +++ b/packages/google_cloud_storage/lib/src/internal/service.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth_io; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:http/http.dart' as http; import 'emulator_client.dart'; @@ -221,7 +221,7 @@ abstract class Service { // Map buildHeaders([Map? extra]) { // final headers = { // HttpHeaders.userAgentHeader: - // userAgent ?? 'googleapis_storage/0.1.0 (dart)', + // userAgent ?? 'google_cloud_storage/0.1.0 (dart)', // 'x-goog-api-client': 'gl-dart/3 gccl/0.1.0', // }; // if (extra != null) { diff --git a/packages/googleapis_storage/lib/src/internal/service_object.dart b/packages/google_cloud_storage/lib/src/internal/service_object.dart similarity index 98% rename from packages/googleapis_storage/lib/src/internal/service_object.dart rename to packages/google_cloud_storage/lib/src/internal/service_object.dart index 0bc061b9..82dd91b7 100644 --- a/packages/googleapis_storage/lib/src/internal/service_object.dart +++ b/packages/google_cloud_storage/lib/src/internal/service_object.dart @@ -1,4 +1,4 @@ -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'service.dart'; mixin CreatableMixin on ServiceObject { diff --git a/packages/googleapis_storage/lib/src/internal/storage_http_client.dart b/packages/google_cloud_storage/lib/src/internal/storage_http_client.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/storage_http_client.dart rename to packages/google_cloud_storage/lib/src/internal/storage_http_client.dart diff --git a/packages/googleapis_storage/lib/src/internal/streaming.dart b/packages/google_cloud_storage/lib/src/internal/streaming.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/streaming.dart rename to packages/google_cloud_storage/lib/src/internal/streaming.dart diff --git a/packages/googleapis_storage/lib/src/internal/xml_multipart_helper.dart b/packages/google_cloud_storage/lib/src/internal/xml_multipart_helper.dart similarity index 100% rename from packages/googleapis_storage/lib/src/internal/xml_multipart_helper.dart rename to packages/google_cloud_storage/lib/src/internal/xml_multipart_helper.dart diff --git a/packages/googleapis_storage/lib/src/notification.dart b/packages/google_cloud_storage/lib/src/notification.dart similarity index 98% rename from packages/googleapis_storage/lib/src/notification.dart rename to packages/google_cloud_storage/lib/src/notification.dart index 5f622354..f279e86d 100644 --- a/packages/googleapis_storage/lib/src/notification.dart +++ b/packages/google_cloud_storage/lib/src/notification.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; class Notification extends ServiceObject with diff --git a/packages/googleapis_storage/lib/src/resumable_upload.dart b/packages/google_cloud_storage/lib/src/resumable_upload.dart similarity index 99% rename from packages/googleapis_storage/lib/src/resumable_upload.dart rename to packages/google_cloud_storage/lib/src/resumable_upload.dart index 3154f4b2..ce4bd3d7 100644 --- a/packages/googleapis_storage/lib/src/resumable_upload.dart +++ b/packages/google_cloud_storage/lib/src/resumable_upload.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; /// Configuration for a resumable upload. /// diff --git a/packages/googleapis_storage/lib/src/signer.dart b/packages/google_cloud_storage/lib/src/signer.dart similarity index 99% rename from packages/googleapis_storage/lib/src/signer.dart rename to packages/google_cloud_storage/lib/src/signer.dart index b48a376b..8369410d 100644 --- a/packages/googleapis_storage/lib/src/signer.dart +++ b/packages/google_cloud_storage/lib/src/signer.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; class _InternalSignedUrlConfig { final SignedUrlConfig signedConfig; diff --git a/packages/googleapis_storage/lib/src/storage.dart b/packages/google_cloud_storage/lib/src/storage.dart similarity index 99% rename from packages/googleapis_storage/lib/src/storage.dart rename to packages/google_cloud_storage/lib/src/storage.dart index 83fa131e..aedf2ec3 100644 --- a/packages/googleapis_storage/lib/src/storage.dart +++ b/packages/google_cloud_storage/lib/src/storage.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; class StorageOptions extends ServiceOptions { const StorageOptions({ diff --git a/packages/googleapis_storage/lib/src/transfer_manager.dart b/packages/google_cloud_storage/lib/src/transfer_manager.dart similarity index 99% rename from packages/googleapis_storage/lib/src/transfer_manager.dart rename to packages/google_cloud_storage/lib/src/transfer_manager.dart index 2534634f..8c1b95c6 100644 --- a/packages/googleapis_storage/lib/src/transfer_manager.dart +++ b/packages/google_cloud_storage/lib/src/transfer_manager.dart @@ -1,4 +1,4 @@ -part of '../googleapis_storage.dart'; +part of '../google_cloud_storage.dart'; // Constants const _defaultParallelUploadLimit = 5; @@ -78,7 +78,7 @@ class XMLMultiPartUploadHelper { } if (!userAgentFound) { - result['User-Agent'] = 'googleapis_storage/$packageVersion (dart)'; + result['User-Agent'] = 'google_cloud_storage/$packageVersion (dart)'; } return result; diff --git a/packages/googleapis_storage/lib/src/types.dart b/packages/google_cloud_storage/lib/src/types.dart similarity index 99% rename from packages/googleapis_storage/lib/src/types.dart rename to packages/google_cloud_storage/lib/src/types.dart index fbefb3d8..047dc7f8 100644 --- a/packages/googleapis_storage/lib/src/types.dart +++ b/packages/google_cloud_storage/lib/src/types.dart @@ -5,7 +5,7 @@ import 'dart:io' as io; import 'package:crypto/crypto.dart' as crypto; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:googleapis/storage/v1.dart' as storage_v1; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; part 'types.freezed.dart'; diff --git a/packages/googleapis_storage/lib/src/types.freezed.dart b/packages/google_cloud_storage/lib/src/types.freezed.dart similarity index 100% rename from packages/googleapis_storage/lib/src/types.freezed.dart rename to packages/google_cloud_storage/lib/src/types.freezed.dart diff --git a/packages/googleapis_storage/lib/version.g.dart b/packages/google_cloud_storage/lib/version.g.dart similarity index 100% rename from packages/googleapis_storage/lib/version.g.dart rename to packages/google_cloud_storage/lib/version.g.dart diff --git a/packages/googleapis_storage/pubspec.yaml b/packages/google_cloud_storage/pubspec.yaml similarity index 95% rename from packages/googleapis_storage/pubspec.yaml rename to packages/google_cloud_storage/pubspec.yaml index 3459e0d6..c2f6b8c7 100644 --- a/packages/googleapis_storage/pubspec.yaml +++ b/packages/google_cloud_storage/pubspec.yaml @@ -1,4 +1,4 @@ -name: googleapis_storage +name: google_cloud_storage resolution: workspace description: Dart client for Gogole Cloud Storage - unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving. version: 0.1.0 diff --git a/packages/googleapis_storage/test/helpers.dart b/packages/google_cloud_storage/test/helpers.dart similarity index 91% rename from packages/googleapis_storage/test/helpers.dart rename to packages/google_cloud_storage/test/helpers.dart index c9b7be1e..9cc9e108 100644 --- a/packages/googleapis_storage/test/helpers.dart +++ b/packages/google_cloud_storage/test/helpers.dart @@ -1,6 +1,6 @@ import 'dart:io'; -import 'package:googleapis_storage/googleapis_storage.dart' as storage; +import 'package:google_cloud_storage/google_cloud_storage.dart' as storage; /// Whether Google Application Default Credentials are available. /// Used to skip tests that require Google Cloud credentials. diff --git a/packages/googleapis_storage/test/integration/bucket_integration_test.dart b/packages/google_cloud_storage/test/integration/bucket_integration_test.dart similarity index 99% rename from packages/googleapis_storage/test/integration/bucket_integration_test.dart rename to packages/google_cloud_storage/test/integration/bucket_integration_test.dart index 5907ba50..375fddf4 100644 --- a/packages/googleapis_storage/test/integration/bucket_integration_test.dart +++ b/packages/google_cloud_storage/test/integration/bucket_integration_test.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; import '../helpers.dart'; diff --git a/packages/googleapis_storage/test/integration/file_integration_test.dart b/packages/google_cloud_storage/test/integration/file_integration_test.dart similarity index 99% rename from packages/googleapis_storage/test/integration/file_integration_test.dart rename to packages/google_cloud_storage/test/integration/file_integration_test.dart index 582a3fe1..8b344bc5 100644 --- a/packages/googleapis_storage/test/integration/file_integration_test.dart +++ b/packages/google_cloud_storage/test/integration/file_integration_test.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'dart:io'; import 'dart:typed_data'; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; import '../helpers.dart'; diff --git a/packages/googleapis_storage/test/integration/main.dart b/packages/google_cloud_storage/test/integration/main.dart similarity index 97% rename from packages/googleapis_storage/test/integration/main.dart rename to packages/google_cloud_storage/test/integration/main.dart index b1e41c7e..2c655e7d 100644 --- a/packages/googleapis_storage/test/integration/main.dart +++ b/packages/google_cloud_storage/test/integration/main.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:crypto/crypto.dart'; import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; import 'storage.dart'; diff --git a/packages/googleapis_storage/test/integration/signer_integration_test.dart b/packages/google_cloud_storage/test/integration/signer_integration_test.dart similarity index 99% rename from packages/googleapis_storage/test/integration/signer_integration_test.dart rename to packages/google_cloud_storage/test/integration/signer_integration_test.dart index 2246f47a..686ba6f2 100644 --- a/packages/googleapis_storage/test/integration/signer_integration_test.dart +++ b/packages/google_cloud_storage/test/integration/signer_integration_test.dart @@ -1,6 +1,6 @@ import 'dart:io'; import 'dart:async'; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; import '../helpers.dart'; diff --git a/packages/googleapis_storage/test/integration/storage.dart b/packages/google_cloud_storage/test/integration/storage.dart similarity index 99% rename from packages/googleapis_storage/test/integration/storage.dart rename to packages/google_cloud_storage/test/integration/storage.dart index f17f5f1b..86a4a947 100644 --- a/packages/googleapis_storage/test/integration/storage.dart +++ b/packages/google_cloud_storage/test/integration/storage.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:test/test.dart'; import 'package:googleapis/storage/v1.dart' as storage_v1; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'main.dart'; void storageTests() { diff --git a/packages/googleapis_storage/test/integration/storage_integration_test.dart b/packages/google_cloud_storage/test/integration/storage_integration_test.dart similarity index 97% rename from packages/googleapis_storage/test/integration/storage_integration_test.dart rename to packages/google_cloud_storage/test/integration/storage_integration_test.dart index f14d28f0..070c7e68 100644 --- a/packages/googleapis_storage/test/integration/storage_integration_test.dart +++ b/packages/google_cloud_storage/test/integration/storage_integration_test.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; import '../helpers.dart'; diff --git a/packages/googleapis_storage/test/unit/acl_test.dart b/packages/google_cloud_storage/test/unit/acl_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/acl_test.dart rename to packages/google_cloud_storage/test/unit/acl_test.dart index 7bdc691a..0d5bb0a1 100644 --- a/packages/googleapis_storage/test/unit/acl_test.dart +++ b/packages/google_cloud_storage/test/unit/acl_test.dart @@ -1,6 +1,6 @@ import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/packages/googleapis_storage/test/unit/bucket_test.dart b/packages/google_cloud_storage/test/unit/bucket_test.dart similarity index 98% rename from packages/googleapis_storage/test/unit/bucket_test.dart rename to packages/google_cloud_storage/test/unit/bucket_test.dart index 6be0f91d..266ff323 100644 --- a/packages/googleapis_storage/test/unit/bucket_test.dart +++ b/packages/google_cloud_storage/test/unit/bucket_test.dart @@ -1,4 +1,4 @@ -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/packages/googleapis_storage/test/unit/crc32c_test.dart b/packages/google_cloud_storage/test/unit/crc32c_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/crc32c_test.dart rename to packages/google_cloud_storage/test/unit/crc32c_test.dart index ff90bb48..41635e99 100644 --- a/packages/googleapis_storage/test/unit/crc32c_test.dart +++ b/packages/google_cloud_storage/test/unit/crc32c_test.dart @@ -2,7 +2,7 @@ import 'dart:convert'; import 'dart:io' as io; import 'dart:typed_data'; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; /// Known input to CRC32C mappings, validated from actual GCS object uploads. diff --git a/packages/googleapis_storage/test/unit/file_test.dart b/packages/google_cloud_storage/test/unit/file_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/file_test.dart rename to packages/google_cloud_storage/test/unit/file_test.dart index a3e5c8d1..6913132c 100644 --- a/packages/googleapis_storage/test/unit/file_test.dart +++ b/packages/google_cloud_storage/test/unit/file_test.dart @@ -5,7 +5,7 @@ import 'dart:typed_data'; import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:http/http.dart' as http; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/packages/googleapis_storage/test/unit/hash_stream_validator_test.dart b/packages/google_cloud_storage/test/unit/hash_stream_validator_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/hash_stream_validator_test.dart rename to packages/google_cloud_storage/test/unit/hash_stream_validator_test.dart index ef229317..8203ca00 100644 --- a/packages/googleapis_storage/test/unit/hash_stream_validator_test.dart +++ b/packages/google_cloud_storage/test/unit/hash_stream_validator_test.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:convert'; import 'package:crypto/crypto.dart' as crypto; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; void main() { diff --git a/packages/googleapis_storage/test/unit/hmac_key_test.dart b/packages/google_cloud_storage/test/unit/hmac_key_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/hmac_key_test.dart rename to packages/google_cloud_storage/test/unit/hmac_key_test.dart index 82e42983..1c56d7b2 100644 --- a/packages/googleapis_storage/test/unit/hmac_key_test.dart +++ b/packages/google_cloud_storage/test/unit/hmac_key_test.dart @@ -1,6 +1,6 @@ import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/packages/googleapis_storage/test/unit/internal/limit.dart b/packages/google_cloud_storage/test/unit/internal/limit.dart similarity index 99% rename from packages/googleapis_storage/test/unit/internal/limit.dart rename to packages/google_cloud_storage/test/unit/internal/limit.dart index e7b0f48b..c62e72dc 100644 --- a/packages/googleapis_storage/test/unit/internal/limit.dart +++ b/packages/google_cloud_storage/test/unit/internal/limit.dart @@ -1,6 +1,6 @@ import 'dart:async'; -import 'package:googleapis_storage/src/internal/limit.dart'; +import 'package:google_cloud_storage/src/internal/limit.dart'; import 'package:test/test.dart'; void main() { diff --git a/packages/googleapis_storage/test/unit/signer_test.dart b/packages/google_cloud_storage/test/unit/signer_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/signer_test.dart rename to packages/google_cloud_storage/test/unit/signer_test.dart index a4616a9e..bc18c3e4 100644 --- a/packages/googleapis_storage/test/unit/signer_test.dart +++ b/packages/google_cloud_storage/test/unit/signer_test.dart @@ -1,4 +1,4 @@ -import 'package:googleapis_storage/googleapis_storage.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; import 'package:test/test.dart'; void main() { diff --git a/packages/googleapis_storage/test/unit/storage_http_client_test.dart b/packages/google_cloud_storage/test/unit/storage_http_client_test.dart similarity index 98% rename from packages/googleapis_storage/test/unit/storage_http_client_test.dart rename to packages/google_cloud_storage/test/unit/storage_http_client_test.dart index c2eb426a..3dafe6cc 100644 --- a/packages/googleapis_storage/test/unit/storage_http_client_test.dart +++ b/packages/google_cloud_storage/test/unit/storage_http_client_test.dart @@ -1,7 +1,7 @@ import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; -import 'package:googleapis_storage/src/internal/storage_http_client.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; +import 'package:google_cloud_storage/src/internal/storage_http_client.dart'; import 'package:http/http.dart' as http; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/packages/googleapis_storage/test/unit/storage_test.dart b/packages/google_cloud_storage/test/unit/storage_test.dart similarity index 99% rename from packages/googleapis_storage/test/unit/storage_test.dart rename to packages/google_cloud_storage/test/unit/storage_test.dart index bdae2923..f6e63233 100644 --- a/packages/googleapis_storage/test/unit/storage_test.dart +++ b/packages/google_cloud_storage/test/unit/storage_test.dart @@ -2,8 +2,8 @@ import 'dart:async'; import 'package:googleapis/storage/v1.dart' as storage_v1; import 'package:googleapis_auth/auth_io.dart' as auth; -import 'package:googleapis_storage/googleapis_storage.dart'; -import 'package:googleapis_storage/src/environment.dart'; +import 'package:google_cloud_storage/google_cloud_storage.dart'; +import 'package:google_cloud_storage/src/environment.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index ccb41a6a..d997fa65 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ dev_dependencies: workspace: - packages/dart_firebase_admin - packages/googleapis_firestore - - packages/googleapis_storage + - packages/google_cloud_storage melos: scripts: diff --git a/scripts/storage-coverage.sh b/scripts/storage-coverage.sh index a3385999..a3977aa4 100755 --- a/scripts/storage-coverage.sh +++ b/scripts/storage-coverage.sh @@ -10,7 +10,7 @@ set -e # Get the script's directory and the package directory SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -PACKAGE_DIR="$SCRIPT_DIR/../packages/googleapis_storage" +PACKAGE_DIR="$SCRIPT_DIR/../packages/google_cloud_storage" # Change to package directory cd "$PACKAGE_DIR"