Skip to content

Commit

Permalink
style: Cleanup library directives
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 14, 2024
1 parent 9c58953 commit b3033c9
Show file tree
Hide file tree
Showing 109 changed files with 101 additions and 125 deletions.
4 changes: 3 additions & 1 deletion all_lint_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ linter:
- unnecessary_final
- unnecessary_getters_setters
- unnecessary_lambdas
- unnecessary_library_directive
- unnecessary_library_name
- unnecessary_new
- unnecessary_null_aware_assignments
- unnecessary_null_checks
Expand Down Expand Up @@ -193,4 +195,4 @@ linter:
- use_test_throws_matchers
- use_to_and_as_if_applicable
- valid_regexps
- void_checks
- void_checks
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library cloud_firestore;
library;

import 'dart:convert';
// TODO(Lyokone): remove once we bump Flutter SDK min version to 3.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// [AggregateQuery] represents the data at a particular location for retrieving metadata
/// without retrieving the actual documents.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// [AggregateQuerySnapshot] represents a response to an [AggregateQuery] request.
class AggregateQuerySnapshot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

@immutable
// `extends Object?` so that type inference defaults to `Object?` instead of `dynamic`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// A [DocumentChange] represents a change to the documents matching a query.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// A [DocumentReference] refers to a document location in a [FirebaseFirestore] database
/// and can be used to write, read, or listen to the location.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

typedef FromFirestore<T> = T Function(
DocumentSnapshot<Map<String, dynamic>> snapshot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// Sentinel values that can be used when writing document fields with set() or
/// update().
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

class _FilterObject {
Map<String, Object?> build() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// The entry point for accessing a [FirebaseFirestore].
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

class LoadBundleTask {
LoadBundleTask._(this._delegate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// A [LoadBundleTaskSnapshot] is returned as the result or on-going process of a [LoadBundleTask].
class LoadBundleTaskSnapshot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

class PersistentCacheIndexManager {
PersistentCacheIndexManager._(this._delegate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// Represents a [Query] over the data at a particular location.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// A [QueryDocumentSnapshot] contains data read from a document in your [FirebaseFirestore]
/// database as part of a query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// Contains the results of a query.
/// It can contain zero or more [DocumentSnapshot] objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// Metadata about a snapshot, describing the state of the snapshot.
class SnapshotMetadata {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// The [TransactionHandler] may be executed multiple times; it should be able
/// to handle multiple executions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../../cloud_firestore.dart';

// ignore: do_not_use_environment
const kIsWasm = bool.fromEnvironment('dart.library.js_interop') &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_firestore;
part of '../cloud_firestore.dart';

/// A [WriteBatch] is a series of write operations to be performed as one unit.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library cloud_firestore_platform_interface;

import 'src/internal/pointer.dart';

export 'package:collection/collection.dart' show ListEquality;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// ignore_for_file: public_member_api_docs

@JS('firebase_firestore')
library firebase_interop.firestore;
library;

import 'dart:js_interop';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library cloud_functions;
library;

import 'dart:async';
// TODO(Lyokone): remove once we bump Flutter SDK min version to 3.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_functions;
part of '../cloud_functions.dart';

/// The entry point for accessing FirebaseFunctions.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_functions;
part of '../cloud_functions.dart';

/// A reference to a particular Callable HTTPS trigger in Cloud Functions.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of cloud_functions;
part of '../cloud_functions.dart';

/// The result of calling a HttpsCallable function.
class HttpsCallableResult<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library cloud_functions_platform_interface;

export 'src/firebase_functions_exception.dart';
export 'src/https_callable_options.dart';
export 'src/platform_interface/platform_interface_firebase_functions.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// ignore_for_file: avoid_unused_constructor_parameters, non_constant_identifier_names, public_member_api_docs

@JS('firebase_functions')
library firebase_interop.functions;
library;

import 'dart:js_interop';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library firebase_analytics;
library;

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of firebase_analytics;
part of '../firebase_analytics.dart';

/// Firebase Analytics API.
class FirebaseAnalytics extends FirebasePluginPlatform {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library firebase_analytics_platform_interface;

export 'src/method_channel/method_channel_firebase_analytics.dart';
export 'src/platform_interface/platform_interface_firebase_analytics.dart';
export 'src/analytics_event_item.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// ignore_for_file: avoid_unused_constructor_parameters, non_constant_identifier_names, public_member_api_docs

@JS('firebase_analytics')
library firebase_interop.analytics;
library;

import 'dart:js_interop';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library firebase_app_check;
library;

import 'package:firebase_app_check_platform_interface/firebase_app_check_platform_interface.dart';
import 'package:firebase_core/firebase_core.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of firebase_app_check;
part of '../firebase_app_check.dart';

class FirebaseAppCheck extends FirebasePluginPlatform {
static Map<String, FirebaseAppCheck> _firebaseAppCheckInstances = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library firebase_app_check_platform_interface;

export 'src/method_channel/method_channel_firebase_app_check.dart';
export 'src/platform_interface/platform_interface_firebase_app_check.dart';
export 'src/android_provider.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// ignore_for_file: public_member_api_docs

@JS('firebase_app_check')
library firebase_interop.app_check;
library;

import 'dart:js_interop';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library firebase_app_installations;
library;

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of firebase_app_installations;
part of '../firebase_app_installations.dart';

class FirebaseInstallations extends FirebasePluginPlatform {
FirebaseInstallations._({required this.app})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

library firebase_auth;
library;

import 'dart:async';
import 'dart:io';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of firebase_auth;
part of '../firebase_auth.dart';

/// A result from a phone number sign-in, link, or reauthenticate call.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of firebase_auth;
part of '../firebase_auth.dart';

/// The entry point of the Firebase Authentication SDK.
class FirebaseAuth extends FirebasePluginPlatform {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

part of firebase_auth;
part of '../firebase_auth.dart';

/// Defines multi-factor related properties and operations pertaining to a [User].
/// This class acts as the main entry point for enrolling or un-enrolling
Expand Down
Loading

0 comments on commit b3033c9

Please sign in to comment.