Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## 1.0.1 - 2025-10-24

- **chore**: update dependencies

## 1.0.0 - 2025-10-13

- **chore**: initial release.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>

<p align="center">
<img src="https://img.shields.io/badge/coverage-_%25-red?style=for-the-badge" alt="coverage">
<img src="https://img.shields.io/badge/coverage-98%25-green?style=for-the-badge" alt="coverage">
<a href="https://flutter-news-app-full-source-code.github.io/docs/"><img src="https://img.shields.io/badge/LIVE_DOCS-VIEW-slategray?style=for-the-badge" alt="Live Docs: View"></a>
<a href="https://github.com/flutter-news-app-full-source-code"><img src="https://img.shields.io/badge/MAIN_PROJECT-BROWSE-purple?style=for-the-badge" alt="Main Project: Browse"></a>
</p>
Expand Down
28 changes: 14 additions & 14 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: dd3d2ad434b9510001d089e8de7556d50c834481b9abc2891a0184a8493a19dc
sha256: c209688d9f5a5f26b2fb47a188131a6fb9e876ae9e47af3737c0b4f58a93470d
url: "https://pub.dev"
source: hosted
version: "89.0.0"
version: "91.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: c22b6e7726d1f9e5db58c7251606076a71ca0dbcf76116675edfadbec0c9e875
sha256: a40a0cee526a7e1f387c6847bd8a5ccbf510a75952ef8a28338e989558072cb0
url: "https://pub.dev"
source: hosted
version: "8.2.0"
version: "8.4.0"
args:
dependency: transitive
description:
Expand All @@ -37,11 +37,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "v1.0.0"
resolved-ref: a90e24285874e4c39cb331bbbeae2423901f3289
ref: "v1.0.1"
resolved-ref: "605212aa4bf2a106691f447b824c66bb5218205c"
url: "https://github.com/flutter-news-app-full-source-code/auth-client.git"
source: git
version: "0.0.0"
version: "1.0.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -78,11 +78,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "v1.2.0"
resolved-ref: d052799c1ebb7bcdd1a725a2a7919948c14fa001
ref: "v1.3.1"
resolved-ref: a03efff11b7577974cb444a1a6a46fee8b05ea42
url: "https://github.com/flutter-news-app-full-source-code/core.git"
source: git
version: "1.2.0"
version: "1.3.1"
coverage:
dependency: transitive
description:
Expand Down Expand Up @@ -160,10 +160,10 @@ packages:
description:
path: "."
ref: "v1.0.1"
resolved-ref: ce550196f78ee2e95aa9e985759179265983689d
resolved-ref: "22a1531a279769ec472f698e9c727cd2c29a81b9"
url: "https://github.com/flutter-news-app-full-source-code/http-client.git"
source: git
version: "0.0.0"
version: "1.0.1"
http_multi_server:
dependency: transitive
description:
Expand Down Expand Up @@ -440,10 +440,10 @@ packages:
dependency: transitive
description:
name: watcher
sha256: "5bf046f41320ac97a469d506261797f35254fa61c641741ef32dacda98b7d39c"
sha256: "592ab6e2892f67760543fb712ff0177f4ec76c031f02f5b4ff8d3fc5eb9fb61a"
url: "https://pub.dev"
source: hosted
version: "1.1.3"
version: "1.1.4"
web:
dependency: transitive
description:
Expand Down
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: auth_api
description: Concrete API implementation of the AuthClient interface.
repository: https://github.com/flutter-news-app-full-source-code/auth-api
publish_to: none
version: 1.0.1

environment:
sdk: ^3.9.0
Expand All @@ -10,11 +11,11 @@ dependencies:
auth_client:
git:
url: https://github.com/flutter-news-app-full-source-code/auth-client.git
ref: v1.0.0
ref: v1.0.1
core:
git:
url: https://github.com/flutter-news-app-full-source-code/core.git
ref: v1.2.0
ref: v1.3.1
http_client:
git:
url: https://github.com/flutter-news-app-full-source-code/http-client.git
Expand Down
40 changes: 25 additions & 15 deletions test/src/auth_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ class MockLogger extends Mock implements Logger {}

class MockUser extends Mock implements User {
@override
Map<FeedActionType, UserFeedActionStatus> get feedActionStatus =>
Map.fromEntries(
FeedActionType.values.map(
(type) =>
MapEntry(type, const UserFeedActionStatus(isCompleted: false)),
Map<FeedDecoratorType, UserFeedDecoratorStatus> get feedDecoratorStatus =>
Map<FeedDecoratorType, UserFeedDecoratorStatus>.fromEntries(
FeedDecoratorType.values.map(
(type) => MapEntry(
type,
const UserFeedDecoratorStatus(isCompleted: false),
),
),
);
}
Expand All @@ -30,23 +32,31 @@ final fakeUser = User(
appRole: AppUserRole.standardUser,
dashboardRole: DashboardUserRole.none,
createdAt: DateTime.now(),
feedActionStatus: Map.fromEntries(
FeedActionType.values.map(
(type) => MapEntry(type, const UserFeedActionStatus(isCompleted: false)),
),
),
feedDecoratorStatus:
Map<FeedDecoratorType, UserFeedDecoratorStatus>.fromEntries(
FeedDecoratorType.values.map(
(type) => MapEntry(
type,
const UserFeedDecoratorStatus(isCompleted: false),
),
),
),
);
final fakeAnonymousUser = User(
id: 'anon-456',
email: 'anonymous@test.com',
appRole: AppUserRole.guestUser,
dashboardRole: DashboardUserRole.none,
createdAt: DateTime.now(),
feedActionStatus: Map.fromEntries(
FeedActionType.values.map(
(type) => MapEntry(type, const UserFeedActionStatus(isCompleted: false)),
),
),
feedDecoratorStatus:
Map<FeedDecoratorType, UserFeedDecoratorStatus>.fromEntries(
FeedDecoratorType.values.map(
(type) => MapEntry(
type,
const UserFeedDecoratorStatus(isCompleted: false),
),
),
),
);

final fakeAuthSuccessResponse = AuthSuccessResponse(
Expand Down
Loading