-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CastIt.Android] Clean the house part I
- Loading branch information
Showing
42 changed files
with
106 additions
and
145 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
CastIt.Android/lib/common/utils/json_generic_converter.dart
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export 'app_accent_color_type.dart'; | ||
export 'app_language_type.dart'; | ||
export 'app_message_type.dart'; | ||
export 'app_theme_type.dart'; | ||
export 'subtitle_bg_color_type.dart'; | ||
export 'subtitle_fg_color_type.dart'; | ||
export 'subtitle_font_scale_type.dart'; | ||
export 'text_track_font_generic_family_type.dart'; | ||
export 'text_track_font_style_type.dart'; | ||
export 'video_scale_type.dart'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
CastIt.Android/lib/models/app_settings.dart → ...droid/lib/domain/models/app_settings.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions
4
...s/requests/set_loop_file_request_dto.dart → ...s/requests/set_loop_file_request_dto.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tos/responses/file_item_response_dto.dart → ...tos/responses/file_item_response_dto.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...es/server_player_status_response_dto.dart → ...es/server_player_status_response_dto.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class LanguageModel { | ||
final String code; | ||
final String countryCode; | ||
|
||
const LanguageModel(this.code, this.countryCode); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export 'app_settings.dart'; | ||
export 'dtos/requests/go_to_request_dto.dart'; | ||
export 'dtos/requests/play_file_request_dto.dart'; | ||
export 'dtos/requests/set_file_options_request_dto.dart'; | ||
export 'dtos/requests/set_loop_file_request_dto.dart'; | ||
export 'dtos/requests/set_playlist_options_request_dto.dart'; | ||
export 'dtos/requests/set_volume_request_dto.dart'; | ||
export 'dtos/requests/update_playlist_request_dto.dart'; | ||
export 'dtos/responses/file_item_options_response_dto.dart'; | ||
export 'dtos/responses/file_item_options_response_dto.dart'; | ||
export 'dtos/responses/file_item_response_dto.dart'; | ||
export 'dtos/responses/get_all_playlist_response_dto.dart'; | ||
export 'dtos/responses/get_all_playlist_response_dto.dart'; | ||
export 'dtos/responses/player_status_response_dto.dart'; | ||
export 'dtos/responses/playlist_item_response_dto.dart'; | ||
export 'dtos/responses/playlist_item_response_dto.dart'; | ||
export 'dtos/responses/refresh_playlist_response_dto.dart'; | ||
export 'dtos/responses/server_player_status_response_dto.dart'; | ||
export 'dtos/responses/volume_level_changed_response_dto.dart'; | ||
export 'dtos/responses/volume_level_changed_response_dto.dart'; | ||
export 'language_model.dart'; | ||
export 'played_file.dart'; | ||
export 'played_file.dart'; | ||
export 'server_app_settings.dart'; |
3 changes: 2 additions & 1 deletion
3
CastIt.Android/lib/models/played_file.dart → ...ndroid/lib/domain/models/played_file.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
...droid/lib/models/server_app_settings.dart → ...ib/domain/models/server_app_settings.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
abstract class DeviceInfoService { | ||
Map<String, String> get deviceInfo; | ||
|
||
String get appName; | ||
|
||
String get version; | ||
|
||
Future<void> init(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:castit/domain/enums/enums.dart'; | ||
import 'package:castit/domain/models/models.dart'; | ||
|
||
abstract class LocaleService { | ||
LanguageModel getCurrentLocale(); | ||
|
||
LanguageModel getLocale(AppLanguageType language); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
abstract class LoggingService { | ||
void info(Type type, String msg, [List<Object>? args]); | ||
|
||
void warning(Type type, String msg, [dynamic ex, StackTrace? trace]); | ||
|
||
void error(Type type, String msg, [dynamic ex, StackTrace? trace]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:castit/domain/enums/enums.dart'; | ||
import 'package:castit/domain/models/models.dart'; | ||
|
||
abstract class SettingsService { | ||
AppSettings get appSettings; | ||
|
||
AppThemeType get appTheme; | ||
|
||
set appTheme(AppThemeType theme); | ||
|
||
AppAccentColorType get accentColor; | ||
|
||
set accentColor(AppAccentColorType accentColor); | ||
|
||
AppLanguageType get language; | ||
|
||
set language(AppLanguageType lang); | ||
|
||
String get castItUrl; | ||
|
||
set castItUrl(String url); | ||
|
||
bool get isFirstInstall; | ||
|
||
set isFirstInstall(bool itIs); | ||
|
||
Future init(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
abstract class TelemetryService { | ||
Future<void> initTelemetry(); | ||
|
||
Future<void> trackEventAsync(String name, [Map<String, String>? properties]); | ||
} |
This file was deleted.
Oops, something went wrong.