TF-675 Implement upload attachment on presentation layer
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:tmail_ui_user/features/email/data/local/html_analyzer.dart';
|
||||
import 'package:tmail_ui_user/main/utils/email_receive_manager.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class CoreBindings extends Bindings {
|
||||
|
||||
@@ -18,6 +19,7 @@ class CoreBindings extends Bindings {
|
||||
_bindingToast();
|
||||
_bindingDeviceManager();
|
||||
_bindingReceivingSharingStream();
|
||||
_bindingUtils();
|
||||
}
|
||||
|
||||
void _bindingAppImagePaths() {
|
||||
@@ -53,4 +55,8 @@ class CoreBindings extends Bindings {
|
||||
void _bindingReceivingSharingStream() {
|
||||
Get.put(EmailReceiveManager());
|
||||
}
|
||||
|
||||
void _bindingUtils() {
|
||||
Get.put(const Uuid());
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_appauth/flutter_appauth.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jmap_dart_client/http/http_client.dart' as JmapHttpClient;
|
||||
import 'package:tmail_ui_user/features/composer/data/network/composer_api.dart';
|
||||
import 'package:tmail_ui_user/features/email/data/network/email_api.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/account_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager.dart';
|
||||
@@ -77,7 +76,6 @@ class NetworkBindings extends Bindings {
|
||||
Get.put(EmailAPI(
|
||||
Get.find<JmapHttpClient.HttpClient>(),
|
||||
Get.find<DownloadManager>()));
|
||||
Get.put(ComposerAPI(Get.find<DioClient>()));
|
||||
Get.put(ManageAccountAPI(Get.find<JmapHttpClient.HttpClient>()));
|
||||
}
|
||||
|
||||
|
||||
@@ -1601,4 +1601,11 @@ class AppLocalizations {
|
||||
'Russian',
|
||||
name: 'languageRussian');
|
||||
}
|
||||
|
||||
String get messageDialogSendEmailUploadingAttachment {
|
||||
return Intl.message(
|
||||
'Your message could not be sent because it uploading attachment',
|
||||
name: 'messageDialogSendEmailUploadingAttachment'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user