|
4 | 4 |
|
5 | 5 | part of '../firebase_ml_model_downloader.dart'; |
6 | 6 |
|
| 7 | +@Deprecated( |
| 8 | + 'Firebase ML is deprecated and will shut down on June 15, 2027. ' |
| 9 | + 'Migrate hosted custom models to another solution, such as Cloud Storage ' |
| 10 | + 'for Firebase. See https://firebase.google.com/docs/ml/migrate-to-cloud-storage.', |
| 11 | +) |
7 | 12 | class FirebaseModelDownloader extends FirebasePlugin { |
| 13 | + @Deprecated( |
| 14 | + 'Firebase ML is deprecated and will shut down on June 15, 2027. ' |
| 15 | + 'Migrate hosted custom models to another solution, such as Cloud Storage ' |
| 16 | + 'for Firebase. See https://firebase.google.com/docs/ml/migrate-to-cloud-storage.', |
| 17 | + ) |
8 | 18 | FirebaseModelDownloader._({required this.app}) |
9 | 19 | : super(app.name, 'plugins.flutter.io/firebase_ml_model_downloader'); |
10 | 20 |
|
@@ -34,6 +44,11 @@ class FirebaseModelDownloader extends FirebasePlugin { |
34 | 44 | } |
35 | 45 |
|
36 | 46 | /// Returns an instance using a specified [FirebaseApp]. |
| 47 | + @Deprecated( |
| 48 | + 'Firebase ML is deprecated and will shut down on June 15, 2027. ' |
| 49 | + 'Migrate hosted custom models to another solution, such as Cloud Storage ' |
| 50 | + 'for Firebase. See https://firebase.google.com/docs/ml/migrate-to-cloud-storage.', |
| 51 | + ) |
37 | 52 | factory FirebaseModelDownloader.instanceFor({required FirebaseApp app}) { |
38 | 53 | return _cachedInstances.putIfAbsent(app.name, () { |
39 | 54 | return FirebaseModelDownloader._(app: app); |
|
0 commit comments