|
2 | 2 | // it can be checked into version control. |
3 | 3 | // ignore_for_file: type=lint, unused_local_variable, unnecessary_cast, unnecessary_import, deprecated_member_use, invalid_use_of_internal_member |
4 | 4 |
|
5 | | -library; |
| 5 | +library; // ignore_for_file: no_leading_underscores_for_library_prefixes |
6 | 6 |
|
7 | | -import 'package:celest/celest.dart'; |
8 | | -import 'package:celest/src/core/context.dart'; |
| 7 | +import 'package:celest/celest.dart' as _$celest; |
| 8 | +import 'package:celest/src/core/context.dart' as _$celest; |
9 | 9 |
|
10 | 10 | /// An environment of a deployed Celest service. |
11 | 11 | /// |
12 | 12 | /// Celest services can have multiple isolated branches, for example |
13 | 13 | /// a `development` and `production` environment. |
14 | 14 | extension type const CelestEnvironment._(String _env) |
15 | | - implements Environment, String { |
| 15 | + implements _$celest.Environment, String { |
16 | 16 | /// The local Celest environment, used to delineate when a |
17 | 17 | /// Celest service is running on a developer machine as opposed |
18 | 18 | /// to the cloud. |
@@ -41,9 +41,10 @@ class CelestVariables { |
41 | 41 | /// |
42 | 42 | /// This is set by the deployment environment and is used to |
43 | 43 | /// determine the current environment of the Celest service. |
44 | | - String get currentEnvironment => context.expect(env.environment); |
| 44 | + String get currentEnvironment => |
| 45 | + _$celest.context.expect(_$celest.env.environment); |
45 | 46 |
|
46 | 47 | /// The value of the `FIREBASE_PROJECT_ID` environment variable. |
47 | 48 | String get firebaseProjectId => |
48 | | - context.expect(const env('FIREBASE_PROJECT_ID')); |
| 49 | + _$celest.context.expect(const _$celest.env('FIREBASE_PROJECT_ID')); |
49 | 50 | } |
0 commit comments