Skip to content

Commit da69515

Browse files
committed
add deprecation message
1 parent 4d6f705 commit da69515

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

packages/firebase_ai/firebase_ai/lib/src/firebase_ai.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ class FirebaseAI extends FirebasePluginPlatform {
6262
/// If pass in [appCheck], request session will get protected from abusing.
6363
static FirebaseAI vertexAI({
6464
FirebaseApp? app,
65+
@Deprecated(
66+
'Passing an explicit instance is deprecated, internal handling is now automatic.')
6567
FirebaseAppCheck? appCheck,
68+
@Deprecated(
69+
'Passing an explicit instance is deprecated, internal handling is now automatic.')
6670
FirebaseAuth? auth,
6771
String? location,
6872
bool? useLimitedUseAppCheckTokens,
@@ -97,7 +101,11 @@ class FirebaseAI extends FirebasePluginPlatform {
97101
/// If pass in [appCheck], request session will get protected from abusing.
98102
static FirebaseAI googleAI({
99103
FirebaseApp? app,
104+
@Deprecated(
105+
'Passing an explicit instance is deprecated, internal handling is now automatic.')
100106
FirebaseAppCheck? appCheck,
107+
@Deprecated(
108+
'Passing an explicit instance is deprecated, internal handling is now automatic.')
101109
FirebaseAuth? auth,
102110
bool? useLimitedUseAppCheckTokens,
103111
}) {

packages/firebase_app_check/firebase_app_check/lib/src/firebase_app_check.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

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

8-
class FirebaseAppCheck extends FirebasePluginPlatform implements FirebaseService {
8+
class FirebaseAppCheck extends FirebasePluginPlatform
9+
implements FirebaseService {
910
static Map<String, FirebaseAppCheck> _firebaseAppCheckInstances = {};
1011

1112
FirebaseAppCheck._({required this.app})

packages/firebase_core/firebase_core/test/firebase_core_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ void main() {
6767

6868
test('.registerService() and .getService()', () {
6969
FirebaseApp app = Firebase.app(testAppName);
70-
70+
7171
final testService = TestService();
7272
app.registerService<TestService>(testService);
73-
73+
7474
expect(app.getService<TestService>(), testService);
7575
});
7676
});

0 commit comments

Comments
 (0)