Skip to content

Commit 8bc2880

Browse files
authored
chore: Set minimum Dart SDK to 3.5 (#254)
Throughout repo and in CLI, set the minimum Dart SDK to 3.5. This allows us to use the pub workspace feature while allowing 2 previous versions of Flutter/Dart to be supported. This change required re-formatting the CLI package which had been previously migrated to Dart 3.7 formatting.
1 parent 85c3d88 commit 8bc2880

File tree

441 files changed

+259667
-250327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+259667
-250327
lines changed

apps/cli/bin/celest.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import 'package:celest_cli/celest_cli.dart';
22

33
void main(List<String> args) async {
4-
final cli =
5-
Cli(
6-
'celest',
7-
'A command-line interface for Celest, the Flutter cloud platform.',
8-
version: packageVersion,
9-
)
10-
..addCommand(InitCommand())
11-
..addCommand(StartCommand())
12-
..addCommand(BuildCommand())
13-
..addCommand(AnalysisServerCommand())
14-
..addCommand(UpgradeCommand())
15-
..addCommand(UninstallCommand())
16-
..addCommand(PrecacheCommand());
4+
final cli = Cli(
5+
'celest',
6+
'A command-line interface for Celest, the Flutter cloud platform.',
7+
version: packageVersion,
8+
)
9+
..addCommand(InitCommand())
10+
..addCommand(StartCommand())
11+
..addCommand(BuildCommand())
12+
..addCommand(AnalysisServerCommand())
13+
..addCommand(UpgradeCommand())
14+
..addCommand(UninstallCommand())
15+
..addCommand(PrecacheCommand());
1716

1817
await cli.run(args);
1918
}

apps/cli/fixtures/apps/firebase/celest/client/lib/firebase_test_client.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ enum CelestEnvironment {
2929
production;
3030

3131
Uri get baseUri => switch (this) {
32-
local =>
33-
_$celest.kIsWeb || !Platform.isAndroid
34-
? Uri.parse('http://localhost:7777')
35-
: Uri.parse('http://10.0.2.2:7777'),
36-
production => Uri.parse('https://example.celest.run'),
37-
};
32+
local => _$celest.kIsWeb || !Platform.isAndroid
33+
? Uri.parse('http://localhost:7777')
34+
: Uri.parse('http://10.0.2.2:7777'),
35+
production => Uri.parse('https://example.celest.run'),
36+
};
3837
}
3938

4039
class Celest with _$celest.CelestBase {

apps/cli/fixtures/apps/firebase/celest/client/lib/src/auth.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension type CelestAuth._(_$celest.AuthImpl _hub) implements _$celest.Auth {
2626
class ExternalAuth extends _$celest.TokenSource {
2727
/// {@macro celest_auth.token_source.of}
2828
const ExternalAuth.of({required super.provider, required super.stream})
29-
: super.of();
29+
: super.of();
3030

3131
/// Creates an instance of [ExternalAuth] for Firebase Auth.
3232
///

apps/cli/fixtures/apps/firebase/celest/client/lib/src/functions.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class CelestFunctionsGreeting {
4040
StackTrace.fromString(stackTraceValue),
4141
),
4242
[final errorDetails as Map<String, Object?>, ...] => (
43-
errorDetails['@type'],
44-
errorDetails['value'],
45-
StackTrace.empty,
46-
),
43+
errorDetails['@type'],
44+
errorDetails['value'],
45+
StackTrace.empty,
46+
),
4747
};
4848

4949
switch (errorType) {

0 commit comments

Comments
 (0)