Skip to content

Commit

Permalink
Replace core either to mq_either
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldar2021 committed Jul 27, 2024
1 parent 865313d commit 545b5e3
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 111 deletions.
1 change: 1 addition & 0 deletions app/lib/app/data/repository/auth_repositoty_impl.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:developer';

import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/data/source/auth_remote_data_source.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

abstract class AuthRemoteDataSource {
Future<void> loginWithEmail(String email);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';

import 'package:my_quran/core/core.dart';

@immutable
final class AuthRemoteDataSourceMock implements AuthRemoteDataSource {
const AuthRemoteDataSourceMock();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:mq_storage/mq_storage.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/config/config.dart';
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/domain/repository/auth_repository.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

abstract class AuthRepository {
UserEntity? get init;
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/domain/usecase/apple_sign_in_use_case.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

@immutable
final class AppleSignInUseCase {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/domain/usecase/google_sign_in_use_case.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

@immutable
final class GoogleSignInUseCase {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/domain/usecase/patch_gender_user_case.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

@immutable
final class PatchGenderUseCase {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/domain/usecase/patch_locale_code_use_case.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:meta/meta.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/app/app.dart';
import 'package:my_quran/core/core.dart';

@immutable
final class PatchLocaleCodeUseCase {
Expand Down
1 change: 1 addition & 0 deletions app/lib/core/client/mq_dio.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'package:mq_either/mq_either.dart';
import 'package:my_quran/core/core.dart';

part 'mq_dio_base_extension.dart';
Expand Down
1 change: 0 additions & 1 deletion app/lib/core/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export 'client/network_client.dart';
export 'client/http_exception.dart';
export 'client/mq_dio.dart';
export 'crashlytics/mq_crashlytics.dart';
export 'either/either.dart';
export 'exceptions/network_exception.dart';
export 'exceptions/server_exception.dart';
export 'exceptions/auth_exception.dart';
Expand Down
101 changes: 0 additions & 101 deletions app/lib/core/either/either.dart

This file was deleted.

7 changes: 7 additions & 0 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,13 @@ packages:
relative: true
source: path
version: "1.0.0"
mq_either:
dependency: "direct main"
description:
path: "../packages/mq_either"
relative: true
source: path
version: "0.1.0+1"
mq_storage:
dependency: "direct main"
description:
Expand Down
2 changes: 2 additions & 0 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ dependencies:
path: ../packages/mq_storage/
mq_ci_keys:
path: ../packages/mq_ci_keys/
mq_either:
path: ../packages/mq_either/
# flutter_native_splash: ^2.4.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/mq_either/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
sdk: ^3.4.0

dependencies:
meta: ^1.15.0
meta: ^1.12.0

dev_dependencies:
mocktail: ^1.0.4
Expand Down

0 comments on commit 545b5e3

Please sign in to comment.