Skip to content

Commit

Permalink
feat: update to support main on the FlutterFire repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Jul 31, 2024
1 parent 98fa1ae commit 81f553e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/flutterfire_cli/lib/src/commands/install.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class InstallCommand extends FlutterFireCommand {
String bomVersion,
) async {
const bomPath =
'https://raw.githubusercontent.com/firebase/flutterfire/master/scripts/versions.json';
'https://raw.githubusercontent.com/firebase/flutterfire/main/scripts/versions.json';

final http = HttpClient();
final request = await http.getUrl(Uri.parse(bomPath));
Expand All @@ -193,7 +193,7 @@ class InstallCommand extends FlutterFireCommand {

if (!json.containsKey(bomVersion)) {
throw Exception(
'BoM version $bomVersion not found. Check the available versions at https://github.com/firebase/flutterfire/blob/master/VERSIONS.md',
'BoM version $bomVersion not found. Check the available versions at https://github.com/firebase/flutterfire/blob/main/VERSIONS.md',
);
}

Expand Down Expand Up @@ -314,7 +314,7 @@ class InstallCommand extends FlutterFireCommand {
bomVersion.contains('git')) {
final gitBranch = bomVersion.contains('git')
? bomVersion.replaceFirst('git:', '')
: 'master';
: 'main';
final gitSpinner = spinner(
(done) {
if (!done) {
Expand Down

0 comments on commit 81f553e

Please sign in to comment.