Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tml 12 #75

Merged
merged 15 commits into from
May 9, 2024
19 changes: 4 additions & 15 deletions .github/workflow/ci.mobile.yml → .github/workflows/ci.mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,11 @@ name: CI Mobile Workflow
on:
push:
paths:
- "apps/mobile/**"
- ".github/workflows/ci.mobile.yaml"
branches:
- "dev"
- "release/*"

- 'apps/mobile/**'
- '.github/workflows/ci.mobile.yml'
branches: ["dev","release"]
pull_request:
paths:
- "apps/mobile/**"
- ".github/workflows/ci.mobile.yaml"
branches:
- "dev"
- "release/*"

env:
FLUTTER_VERSION: "3.19.6"
branches: ["dev","release"]

jobs:
prepare-linux:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion apps/mobile/melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ scripts:
test:
exec: flutter test
coverage:
exec: flutter test --coverage
run: flutter test --coverage && genhtml coverage/lcov.info -o coverage/html
exec:
failFast: false
select-package:
dir-exists:
- test
run:mobile: melos exec --scope="mobile" -- flutter run
4 changes: 3 additions & 1 deletion apps/mobile/packages/http_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ environment:
# Add regular dependencies here.
dependencies:
http: ^1.2.1
mockito: ^5.4.4
logger:
path: ../logger

dev_dependencies:
test: ^1.24.0
flutter_test:
sdk: flutter
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ main() {
final request = baseReq as Request;
expect(copied.hashCode, isNot(equals(request.hashCode)));
expect(copied.url, equals(request.url));
expect(copied.method,equals(request.method));
expect(copied.headers,equals(request.headers));
expect(copied.body,equals(request.body));
expect(copied.encoding,equals(request.encoding));
expect(copied.followRedirects,equals(request.followRedirects));
expect(copied.maxRedirects,equals(request.maxRedirects));
expect(copied.persistentConnection,equals(request.persistentConnection));
expect(copied.method, equals(request.method));
expect(copied.headers, equals(request.headers));
expect(copied.body, equals(request.body));
expect(copied.encoding, equals(request.encoding));
expect(copied.followRedirects, equals(request.followRedirects));
expect(copied.maxRedirects, equals(request.maxRedirects));
expect(copied.persistentConnection, equals(request.persistentConnection));
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ main() {
final response = baseResponse as Response;
expect(copied.hashCode, isNot(equals(response.hashCode)));
expect(copied.statusCode, equals(response.statusCode));
expect(copied.body,equals(response.body));
expect(copied.headers,equals(response.headers));
expect(copied.isRedirect,equals(response.isRedirect));
expect(copied.persistentConnection,equals(response.persistentConnection));
expect(copied.body, equals(response.body));
expect(copied.headers, equals(response.headers));
expect(copied.isRedirect, equals(response.isRedirect));
expect(
copied.persistentConnection, equals(response.persistentConnection));
});
});
}
3 changes: 3 additions & 0 deletions apps/mobile/packages/logger/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
2 changes: 1 addition & 1 deletion apps/mobile/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies:
get_it: ^7.7.0
hive: ^2.2.3
injectable: ^2.1.2
uuid: ^3.0.0
uuid: ^4.4.0
mockito: ^5.4.4
ddd_core:
path: packages/ddd_core
Expand Down
Loading