TF-2677 Create abstract repo & data source
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
|
import 'package:server_settings/server_settings/tmail_server_settings.dart';
|
||||||
|
|
||||||
|
abstract class ServerSettingsDataSource {
|
||||||
|
Future<TMailServerSettings> getServerSettings(AccountId accountId);
|
||||||
|
Future<TMailServerSettings> updateServerSettings(
|
||||||
|
AccountId accountId,
|
||||||
|
TMailServerSettings serverSettings);
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
|
import 'package:server_settings/server_settings/tmail_server_settings.dart';
|
||||||
|
|
||||||
|
abstract class ServerSettingsRepository {
|
||||||
|
Future<TMailServerSettings> getServerSettings(AccountId accountId);
|
||||||
|
Future<TMailServerSettings> updateServerSettings(
|
||||||
|
AccountId accountId,
|
||||||
|
TMailServerSettings serverSettings);
|
||||||
|
}
|
||||||
@@ -1495,6 +1495,13 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.27.7"
|
version: "0.27.7"
|
||||||
|
server_settings:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
path: server_settings
|
||||||
|
relative: true
|
||||||
|
source: path
|
||||||
|
version: "0.0.1"
|
||||||
share_plus:
|
share_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
+4
-3
@@ -3,7 +3,7 @@ description: A new Flutter project.
|
|||||||
|
|
||||||
# The following line prevents the package from being accidentally published to
|
# The following line prevents the package from being accidentally published to
|
||||||
# pub.dev using `pub publish`. This is preferred for private packages.
|
# pub.dev using `pub publish`. This is preferred for private packages.
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
# The following defines the version and build number for your application.
|
# The following defines the version and build number for your application.
|
||||||
# A version number is three numbers separated by dots, like 1.2.43
|
# A version number is three numbers separated by dots, like 1.2.43
|
||||||
@@ -48,6 +48,9 @@ dependencies:
|
|||||||
email_recovery:
|
email_recovery:
|
||||||
path: email_recovery
|
path: email_recovery
|
||||||
|
|
||||||
|
server_settings:
|
||||||
|
path: server_settings
|
||||||
|
|
||||||
### Dependencies from git ###
|
### Dependencies from git ###
|
||||||
rich_text_composer:
|
rich_text_composer:
|
||||||
git:
|
git:
|
||||||
@@ -254,7 +257,6 @@ dev_dependencies:
|
|||||||
http_mock_adapter: 0.4.2
|
http_mock_adapter: 0.4.2
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
|
|
||||||
pointer_interceptor: 0.9.1
|
pointer_interceptor: 0.9.1
|
||||||
|
|
||||||
firebase_core_platform_interface: 4.6.0
|
firebase_core_platform_interface: 4.6.0
|
||||||
@@ -264,7 +266,6 @@ dependency_overrides:
|
|||||||
|
|
||||||
# The following section is specific to Flutter.
|
# The following section is specific to Flutter.
|
||||||
flutter:
|
flutter:
|
||||||
|
|
||||||
# The following line ensures that the Material Icons font is
|
# The following line ensures that the Material Icons font is
|
||||||
# included with your application, so that you can use the icons in
|
# included with your application, so that you can use the icons in
|
||||||
# the material Icons class.
|
# the material Icons class.
|
||||||
|
|||||||
Reference in New Issue
Block a user