Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Azad99-9 committed Jan 7, 2024
1 parent ebbfabe commit 887db27
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 229 deletions.
31 changes: 0 additions & 31 deletions lib/view_model/pre_auth_view_models/login_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,37 +143,6 @@ class LoginViewModel extends BaseModel {
arguments: MainScreenArgs(mainScreenIndex: 0, fromSignUp: false),
);
}

final loginResult = result.data?['login'] as Map<String, dynamic>;
androidFirebaseOptions =
loginResult['androidFirebaseOptions'] as Map<String, dynamic>;
iosFirebaseOptions =
loginResult['iosFirebaseOptions'] as Map<String, dynamic>;
// if (androidFirebaseOptions['apiKey'] != null ||
// iosFirebaseOptions['apiKey'] != null) {
// await setUpFirebase();

// final token = await FirebaseMessaging.instance.getToken();
// await databaseFunctions.gqlAuthMutation(
// queries.saveFcmToken(token),
// );

// await setUpFirebaseMessaging();

// final androidFirebaseOptionsBox =
// await Hive.openBox('androidFirebaseOptions');
// androidFirebaseOptionsBox.put(
// 'androidFirebaseOptions',
// androidFirebaseOptions,
// );

// final iosFirebaseOptionsBox =
// await Hive.openBox('iosFirebaseOptions');
// iosFirebaseOptionsBox.put(
// 'iosFirebaseOptions',
// iosFirebaseOptions,
// );
// }
}
} on Exception catch (e) {
print('here');
Expand Down
Loading

0 comments on commit 887db27

Please sign in to comment.