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"
|
||||
source: hosted
|
||||
version: "0.27.7"
|
||||
server_settings:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: server_settings
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
share_plus:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
+5
-4
@@ -3,7 +3,7 @@ description: A new Flutter project.
|
||||
|
||||
# The following line prevents the package from being accidentally published to
|
||||
# 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.
|
||||
# A version number is three numbers separated by dots, like 1.2.43
|
||||
@@ -48,6 +48,9 @@ dependencies:
|
||||
email_recovery:
|
||||
path: email_recovery
|
||||
|
||||
server_settings:
|
||||
path: server_settings
|
||||
|
||||
### Dependencies from git ###
|
||||
rich_text_composer:
|
||||
git:
|
||||
@@ -254,7 +257,6 @@ dev_dependencies:
|
||||
http_mock_adapter: 0.4.2
|
||||
|
||||
dependency_overrides:
|
||||
|
||||
pointer_interceptor: 0.9.1
|
||||
|
||||
firebase_core_platform_interface: 4.6.0
|
||||
@@ -264,7 +266,6 @@ dependency_overrides:
|
||||
|
||||
# The following section is specific to Flutter.
|
||||
flutter:
|
||||
|
||||
# The following line ensures that the Material Icons font is
|
||||
# included with your application, so that you can use the icons in
|
||||
# the material Icons class.
|
||||
@@ -332,4 +333,4 @@ flutter_native_splash:
|
||||
|
||||
cider:
|
||||
link_template:
|
||||
tag: https://github.com/linagora/tmail-flutter/releases/tag/v%tag% # initial release link template
|
||||
tag: https://github.com/linagora/tmail-flutter/releases/tag/v%tag% # initial release link template
|
||||
|
||||
Reference in New Issue
Block a user