Skip to content

Commit 4fb06d7

Browse files
committed
chore: models folder restructure
1 parent bb05913 commit 4fb06d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+29
-25
lines changed

lib/src/models/models.dart

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
export 'app-config/app-config.dart';
2-
export 'auth_success_response.dart';
3-
export 'category.dart';
4-
export 'country.dart';
5-
export 'headline.dart';
6-
export 'paginated_reponse.dart';
1+
export 'news/news.dart';
72
export 'permission.dart';
8-
export 'response_metadata.dart';
9-
export 'source.dart';
10-
export 'success_api_response.dart';
11-
export 'user-app-preferences/user_app_preferences.dart';
12-
export 'user-app-settings/user-app-settings.dart';
3+
export 'remote-config/remote_config.dart';
4+
export 'responses/responses.dart';
5+
export 'user-preferences/user_preferences.dart';
6+
export 'user-settings/user_settings.dart';
137
export 'user.dart';
148
export 'user_role.dart';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/src/models/headline.dart renamed to lib/src/models/news/headline.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import 'package:equatable/equatable.dart';
2-
import 'package:ht_shared/src/models/category.dart';
3-
import 'package:ht_shared/src/models/source.dart';
2+
import 'package:ht_shared/src/models/news/news.dart';
43
import 'package:json_annotation/json_annotation.dart';
54
import 'package:meta/meta.dart';
65
import 'package:uuid/uuid.dart';
76

7+
export 'category.dart';
8+
export 'country.dart';
9+
export 'source.dart';
10+
811
part 'headline.g.dart';
912

1013
// Helper function for parsing DateTime, returning null on error
File renamed without changes.

lib/src/models/news/news.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export 'category.dart';
2+
export 'country.dart';
3+
export 'headline.dart';
4+
export 'source.dart';

lib/src/models/source.dart renamed to lib/src/models/news/source.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:equatable/equatable.dart';
2-
import 'package:ht_shared/src/models/country.dart';
2+
import 'package:ht_shared/src/models/news/country.dart';
33
import 'package:json_annotation/json_annotation.dart';
44
import 'package:uuid/uuid.dart';
55

File renamed without changes.

0 commit comments

Comments
 (0)