Remove old AppDelegate imports.

This commit is contained in:
SBiOSoftWhare 2020-08-31 19:38:06 +02:00
parent 745069ec49
commit be0ceb1759
52 changed files with 4 additions and 63 deletions

View file

@ -16,7 +16,6 @@
#import "Analytics.h" #import "Analytics.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
// All metrics are store under a Piwik category called "Metrics". // All metrics are store under a Piwik category called "Metrics".

View file

@ -19,7 +19,6 @@
#import "RageShakeManager.h" #import "RageShakeManager.h"
#import "AppDelegate.h"
#import "BugReportViewController.h" #import "BugReportViewController.h"
#import <MatrixKit/MatrixKit.h> #import <MatrixKit/MatrixKit.h>

View file

@ -18,7 +18,6 @@
#import "AuthenticationViewController.h" #import "AuthenticationViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "MXSession+Riot.h" #import "MXSession+Riot.h"

View file

@ -16,7 +16,6 @@
#import "BugReportViewController.h" #import "BugReportViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "GBDeviceInfo_iOS.h" #import "GBDeviceInfo_iOS.h"

View file

@ -18,7 +18,6 @@
#import "CallViewController.h" #import "CallViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "AvatarGenerator.h" #import "AvatarGenerator.h"

View file

@ -26,8 +26,6 @@
#import "MXRoom+Riot.h" #import "MXRoom+Riot.h"
#import "MXSession+Riot.h" #import "MXSession+Riot.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#define RECENTSDATASOURCE_SECTION_DIRECTORY 0x01 #define RECENTSDATASOURCE_SECTION_DIRECTORY 0x01

View file

@ -32,7 +32,6 @@
#import "DirectoryRecentTableViewCell.h" #import "DirectoryRecentTableViewCell.h"
#import "RoomIdOrAliasTableViewCell.h" #import "RoomIdOrAliasTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface RecentsViewController () @interface RecentsViewController ()

View file

@ -15,7 +15,6 @@
*/ */
#import "WebViewViewController.h" #import "WebViewViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface WebViewViewController () @interface WebViewViewController ()

View file

@ -19,7 +19,6 @@
#import "GroupTableViewCell.h" #import "GroupTableViewCell.h"
#import "GroupInviteTableViewCell.h" #import "GroupInviteTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface GroupsViewController () @interface GroupsViewController ()

View file

@ -17,7 +17,6 @@
#import "GroupHomeViewController.h" #import "GroupHomeViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "ThemeService.h" #import "ThemeService.h"

View file

@ -16,7 +16,6 @@
#import "GroupParticipantsViewController.h" #import "GroupParticipantsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "Contact.h" #import "Contact.h"

View file

@ -16,7 +16,6 @@
#import "GroupRoomsViewController.h" #import "GroupRoomsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "GroupRoomTableViewCell.h" #import "GroupRoomTableViewCell.h"

View file

@ -20,7 +20,6 @@
#import "GroupParticipantsViewController.h" #import "GroupParticipantsViewController.h"
#import "GroupRoomsViewController.h" #import "GroupRoomsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface GroupDetailsViewController () @interface GroupDetailsViewController ()

View file

@ -20,7 +20,6 @@
#import "UIViewController+RiotSearch.h" #import "UIViewController+RiotSearch.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#define CONTACTS_TABLEVC_LOCALCONTACTS_BITWISE 0x01 #define CONTACTS_TABLEVC_LOCALCONTACTS_BITWISE 0x01

View file

@ -18,7 +18,6 @@
#import "ContactDetailsViewController.h" #import "ContactDetailsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "MXSession+Riot.h" #import "MXSession+Riot.h"

View file

@ -20,8 +20,6 @@
#import "ThemeService.h" #import "ThemeService.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "AppDelegate.h"
@interface EncryptionInfoView() <KeyVerificationCoordinatorBridgePresenterDelegate> @interface EncryptionInfoView() <KeyVerificationCoordinatorBridgePresenterDelegate>
{ {
KeyVerificationCoordinatorBridgePresenter *keyVerificationCoordinatorBridgePresenter; KeyVerificationCoordinatorBridgePresenter *keyVerificationCoordinatorBridgePresenter;

View file

@ -16,8 +16,6 @@
#import "FavouritesViewController.h" #import "FavouritesViewController.h"
#import "AppDelegate.h"
#import "RecentsDataSource.h" #import "RecentsDataSource.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"

View file

@ -17,7 +17,6 @@
#import "HomeFilesSearchViewController.h" #import "HomeFilesSearchViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "HomeViewController.h" #import "HomeViewController.h"

View file

@ -17,7 +17,6 @@
#import "HomeMessagesSearchViewController.h" #import "HomeMessagesSearchViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "HomeViewController.h" #import "HomeViewController.h"

View file

@ -19,7 +19,6 @@
#import "PublicRoomsDirectoryDataSource.h" #import "PublicRoomsDirectoryDataSource.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface DirectoryViewController () @interface DirectoryViewController ()

View file

@ -31,7 +31,6 @@
#import "HomeFilesSearchViewController.h" #import "HomeFilesSearchViewController.h"
#import "FilesSearchCellData.h" #import "FilesSearchCellData.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "GBDeviceInfo_iOS.h" #import "GBDeviceInfo_iOS.h"

View file

@ -15,8 +15,7 @@
*/ */
#import "AuthFallBackViewController.h" #import "AuthFallBackViewController.h"
#import "AppDelegate.h" #import "Riot-Swift.h"
// Generic method to make a bridge between JS and the WKWebView // Generic method to make a bridge between JS and the WKWebView
NSString *FallBackViewControllerJavascriptSendObjectMessage = @"window.sendObjectMessage = function(parameters) { \ NSString *FallBackViewControllerJavascriptSendObjectMessage = @"window.sendObjectMessage = function(parameters) { \

View file

@ -17,7 +17,6 @@
#import "HomeViewController.h" #import "HomeViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "RecentsDataSource.h" #import "RecentsDataSource.h"

View file

@ -19,7 +19,6 @@
#import "WidgetManager.h" #import "WidgetManager.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
NSString *const kIntegrationManagerMainScreen = nil; NSString *const kIntegrationManagerMainScreen = nil;

View file

@ -16,8 +16,6 @@
#import "WidgetPickerViewController.h" #import "WidgetPickerViewController.h"
#import "AppDelegate.h"
#import "WidgetManager.h" #import "WidgetManager.h"
#import "WidgetViewController.h" #import "WidgetViewController.h"
#import "IntegrationManagerViewController.h" #import "IntegrationManagerViewController.h"

View file

@ -17,7 +17,6 @@
#import "WidgetViewController.h" #import "WidgetViewController.h"
#import "AppDelegate.h"
#import "IntegrationManagerViewController.h" #import "IntegrationManagerViewController.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"

View file

@ -155,11 +155,11 @@ final class KeyVerificationSelfVerifyWaitViewModel: KeyVerificationSelfVerifyWai
private func registerKeyVerificationManagerNewRequestNotification(for verificationManager: MXKeyVerificationManager) { private func registerKeyVerificationManagerNewRequestNotification(for verificationManager: MXKeyVerificationManager) {
NotificationCenter.default.addObserver(self, selector: #selector(keyVerificationManagerNewRequestNotification(notification:)), name: .MXKeyVerificationManagerNewRequest, object: verificationManager) NotificationCenter.default.addObserver(self, selector: #selector(keyVerificationManagerNewRequestNotification(notification:)), name: .MXKeyVerificationManagerNewRequest, object: verificationManager)
AppDelegate.the()?.handleSelfVerificationRequest = false AppDelegate.theDelegate().handleSelfVerificationRequest = false
} }
private func unregisterKeyVerificationManagerNewRequestNotification() { private func unregisterKeyVerificationManagerNewRequestNotification() {
AppDelegate.the()?.handleSelfVerificationRequest = true AppDelegate.theDelegate().handleSelfVerificationRequest = true
NotificationCenter.default.removeObserver(self, name: .MXKeyVerificationManagerNewRequest, object: nil) NotificationCenter.default.removeObserver(self, name: .MXKeyVerificationManagerNewRequest, object: nil)
} }

View file

@ -17,8 +17,6 @@
#import "MediaAlbumContentViewController.h" #import "MediaAlbumContentViewController.h"
#import "AppDelegate.h"
#import <MobileCoreServices/MobileCoreServices.h> #import <MobileCoreServices/MobileCoreServices.h>
#import "Riot-Swift.h" #import "Riot-Swift.h"

View file

@ -17,7 +17,6 @@
#import "MediaPickerViewController.h" #import "MediaPickerViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import <Photos/Photos.h> #import <Photos/Photos.h>

View file

@ -21,8 +21,6 @@
#import "RageShakeManager.h" #import "RageShakeManager.h"
#import "AppDelegate.h"
#import "RecentsDataSource.h" #import "RecentsDataSource.h"
#import "RecentTableViewCell.h" #import "RecentTableViewCell.h"
#import "InviteRecentTableViewCell.h" #import "InviteRecentTableViewCell.h"

View file

@ -19,7 +19,6 @@
#import "PublicRoomTableViewCell.h" #import "PublicRoomTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#pragma mark - Constants definitions #pragma mark - Constants definitions

View file

@ -17,7 +17,6 @@
#import "AttachmentsViewController.h" #import "AttachmentsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface AttachmentsViewController () @interface AttachmentsViewController ()

View file

@ -19,7 +19,6 @@
#import "FilesSearchTableViewCell.h" #import "FilesSearchTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "AttachmentsViewController.h" #import "AttachmentsViewController.h"

View file

@ -18,7 +18,6 @@
#import "RoomMemberDetailsViewController.h" #import "RoomMemberDetailsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "RoomMemberTitleView.h" #import "RoomMemberTitleView.h"

View file

@ -19,7 +19,6 @@
#import "RoomMemberDetailsViewController.h" #import "RoomMemberDetailsViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "Contact.h" #import "Contact.h"

View file

@ -21,8 +21,6 @@
#import "RoomDataSource.h" #import "RoomDataSource.h"
#import "RoomBubbleCellData.h" #import "RoomBubbleCellData.h"
#import "AppDelegate.h"
#import "RoomInputToolbarView.h" #import "RoomInputToolbarView.h"
#import "DisabledRoomInputToolbarView.h" #import "DisabledRoomInputToolbarView.h"
@ -4525,7 +4523,7 @@
{ {
// The room has an active jitsi widget // The room has an active jitsi widget
// Show it in the banner if the user is not already in // Show it in the banner if the user is not already in
AppDelegate *appDelegate = [AppDelegate theDelegate]; LegacyAppDelegate *appDelegate = [AppDelegate theDelegate];
if ([appDelegate.jitsiViewController.widget.widgetId isEqualToString:jitsiWidget.widgetId]) if ([appDelegate.jitsiViewController.widget.widgetId isEqualToString:jitsiWidget.widgetId])
{ {
if ([self checkUnsentMessages] == NO) if ([self checkUnsentMessages] == NO)

View file

@ -24,7 +24,6 @@
#import "FilesSearchCellData.h" #import "FilesSearchCellData.h"
#import "FilesSearchTableViewCell.h" #import "FilesSearchTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface RoomFilesSearchViewController () @interface RoomFilesSearchViewController ()

View file

@ -26,7 +26,6 @@
#import "RoomIncomingAttachmentBubbleCell.h" #import "RoomIncomingAttachmentBubbleCell.h"
#import "RoomIncomingTextMsgBubbleCell.h" #import "RoomIncomingTextMsgBubbleCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface RoomMessagesSearchViewController () @interface RoomMessagesSearchViewController ()

View file

@ -22,7 +22,6 @@
#import "RoomFilesSearchViewController.h" #import "RoomFilesSearchViewController.h"
#import "FilesSearchCellData.h" #import "FilesSearchCellData.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface RoomSearchViewController () @interface RoomSearchViewController ()

View file

@ -28,7 +28,6 @@
#import "MXRoom+Riot.h" #import "MXRoom+Riot.h"
#import "MXRoomSummary+Riot.h" #import "MXRoomSummary+Riot.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "RoomMemberDetailsViewController.h" #import "RoomMemberDetailsViewController.h"

View file

@ -16,7 +16,6 @@
#import "RoomKeyRequestViewController.h" #import "RoomKeyRequestViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface RoomKeyRequestViewController () <KeyVerificationCoordinatorBridgePresenterDelegate> @interface RoomKeyRequestViewController () <KeyVerificationCoordinatorBridgePresenterDelegate>

View file

@ -18,7 +18,6 @@
#import "DirectoryServerTableViewCell.h" #import "DirectoryServerTableViewCell.h"
#import "DirectoryServerDetailTableViewCell.h" #import "DirectoryServerDetailTableViewCell.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface DirectoryServerPickerViewController () @interface DirectoryServerPickerViewController ()

View file

@ -16,8 +16,6 @@
#import "RoomsViewController.h" #import "RoomsViewController.h"
#import "AppDelegate.h"
#import "RecentsDataSource.h" #import "RecentsDataSource.h"
#import "DirectoryServerPickerViewController.h" #import "DirectoryServerPickerViewController.h"

View file

@ -18,7 +18,6 @@
#import "ThemeService.h" #import "ThemeService.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "AppDelegate.h"
#pragma mark - Defines & Constants #pragma mark - Defines & Constants

View file

@ -16,7 +16,6 @@
#import "LanguagePickerViewController.h" #import "LanguagePickerViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface LanguagePickerViewController () @interface LanguagePickerViewController ()

View file

@ -16,7 +16,6 @@
#import "CountryPickerViewController.h" #import "CountryPickerViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface CountryPickerViewController () @interface CountryPickerViewController ()

View file

@ -20,7 +20,6 @@
#import <OLMKit/OLMKit.h> #import <OLMKit/OLMKit.h>
#import "AppDelegate.h"
#import "AvatarGenerator.h" #import "AvatarGenerator.h"
#import "ThemeService.h" #import "ThemeService.h"

View file

@ -22,7 +22,6 @@
#import <OLMKit/OLMKit.h> #import <OLMKit/OLMKit.h>
#import "AppDelegate.h"
#import "AvatarGenerator.h" #import "AvatarGenerator.h"
#import "ThemeService.h" #import "ThemeService.h"

View file

@ -22,7 +22,6 @@
#import <OLMKit/OLMKit.h> #import <OLMKit/OLMKit.h>
#import "AppDelegate.h"
#import "AvatarGenerator.h" #import "AvatarGenerator.h"
#import "BugReportViewController.h" #import "BugReportViewController.h"

View file

@ -17,7 +17,6 @@
#import "StartChatViewController.h" #import "StartChatViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
#import "MXSession+Riot.h" #import "MXSession+Riot.h"

View file

@ -22,7 +22,6 @@
#import "RecentsDataSource.h" #import "RecentsDataSource.h"
#import "GroupsDataSource.h" #import "GroupsDataSource.h"
#import "AppDelegate.h"
#import "MXRoom+Riot.h" #import "MXRoom+Riot.h"
#import "MXSession+Riot.h" #import "MXSession+Riot.h"

View file

@ -17,7 +17,6 @@
#import "UsersDevicesViewController.h" #import "UsersDevicesViewController.h"
#import "AppDelegate.h"
#import "Riot-Swift.h" #import "Riot-Swift.h"
@interface UsersDevicesViewController () <KeyVerificationCoordinatorBridgePresenterDelegate> @interface UsersDevicesViewController () <KeyVerificationCoordinatorBridgePresenterDelegate>