Skip to content

Commit

Permalink
feat: update web API argument names for consistency in firebase_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sharjeelyunus committed Dec 19, 2024
1 parent 42edfea commit c870a7b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions starter/scripts/utils/firebase_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,24 @@ void uncommentFirebaseAnalyticsConfig(
);

if (platforms.contains('web')) {
String? webApiKey = getArgumentValue(arguments, 'web_api_key',
String? webApiKey = getArgumentValue(arguments, 'web_apiKey',
required: platforms.contains('web'));
String? webAppId = getArgumentValue(arguments, 'web_app_id',
String? webAppId = getArgumentValue(arguments, 'web_appId',
required: platforms.contains('web'));
String? webAuthDomain = getArgumentValue(arguments, 'web_auth_domain',
String? webAuthDomain = getArgumentValue(arguments, 'web_authDomain',
required: platforms.contains('web'));
String? webMessagingSenderId = getArgumentValue(
arguments, 'web_messaging_sender_id',
arguments, 'web_messagingSenderId',
required: platforms.contains('web'));
String? webProjectId = getArgumentValue(arguments, 'web_project_id',
String? webProjectId = getArgumentValue(arguments, 'web_projectId',
required: platforms.contains('web'));
String? webStorageBucket = getArgumentValue(
arguments, 'web_storage_bucket',
arguments, 'web_storageBucket',
required: platforms.contains('web'));
String? webMeasurementId = getArgumentValue(
arguments, 'web_measurement_id',
arguments, 'web_measurementId',
required: platforms.contains('web'));

// List of fields to be replaced in the accounts section
final fields = {
'apiKey': webApiKey,
Expand Down

0 comments on commit c870a7b

Please sign in to comment.