From 956e2c9b8bb80a31c91b6461cb1507c88e2bfd88 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 14 Oct 2021 12:57:32 +0300 Subject: [PATCH] vector-im/element-ios/issues/5009 - Moved files around, cleaned up imports and logs. --- Riot/Modules/Room/RoomViewController.m | 20 +++--- Riot/target.yml | 3 +- .../ShareExtensionRootViewController.h | 0 .../ShareExtensionRootViewController.m | 23 ++++--- .../FallbackViewController.h | 0 .../FallbackViewController.m | 0 .../FallbackViewController.xib | 0 .../RecentRoomTableViewCell.h | 0 .../RecentRoomTableViewCell.m | 0 .../RecentRoomTableViewCell.xib | 0 .../RoomsListViewController.h | 0 .../RoomsListViewController.m | 5 +- .../RoomsListViewController.xib | 0 .../DataSources => Shared}/ShareDataSource.h | 0 .../DataSources => Shared}/ShareDataSource.m | 1 - .../ShareManager.h} | 16 +++-- .../ShareManager.m} | 61 +++++++++---------- .../Share => Shared}/ShareViewController.h | 0 .../Share => Shared}/ShareViewController.m | 35 +++++------ .../Share => Shared}/ShareViewController.xib | 0 20 files changed, 76 insertions(+), 88 deletions(-) rename RiotShareExtension/{Modules/Main => }/ShareExtensionRootViewController.h (100%) rename RiotShareExtension/{Modules/Main => }/ShareExtensionRootViewController.m (70%) rename RiotShareExtension/{Modules/Fallback => Shared}/FallbackViewController.h (100%) rename RiotShareExtension/{Modules/Fallback => Shared}/FallbackViewController.m (100%) rename RiotShareExtension/{Modules/Fallback => Shared}/FallbackViewController.xib (100%) rename RiotShareExtension/{Modules/Share/Listing/Views => Shared}/RecentRoomTableViewCell.h (100%) rename RiotShareExtension/{Modules/Share/Listing/Views => Shared}/RecentRoomTableViewCell.m (100%) rename RiotShareExtension/{Modules/Share/Listing/Views => Shared}/RecentRoomTableViewCell.xib (100%) rename RiotShareExtension/{Modules/Share/Listing => Shared}/RoomsListViewController.h (100%) rename RiotShareExtension/{Modules/Share/Listing => Shared}/RoomsListViewController.m (98%) rename RiotShareExtension/{Modules/Share/Listing => Shared}/RoomsListViewController.xib (100%) rename RiotShareExtension/{Modules/Share/DataSources => Shared}/ShareDataSource.h (100%) rename RiotShareExtension/{Modules/Share/DataSources => Shared}/ShareDataSource.m (99%) rename RiotShareExtension/{Managers/ShareExtensionManager.h => Shared/ShareManager.h} (69%) rename RiotShareExtension/{Managers/ShareExtensionManager.m => Shared/ShareManager.m} (95%) rename RiotShareExtension/{Modules/Share => Shared}/ShareViewController.h (100%) rename RiotShareExtension/{Modules/Share => Shared}/ShareViewController.m (93%) rename RiotShareExtension/{Modules/Share => Shared}/ShareViewController.xib (100%) diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index 2896df8472..48d9bc6c47 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -108,7 +108,7 @@ #import "AvatarGenerator.h" #import "Tools.h" #import "WidgetManager.h" -#import "ShareExtensionManager.h" +#import "ShareManager.h" #import "GBDeviceInfo_iOS.h" @@ -252,7 +252,7 @@ @interface RoomViewController () 80%), it must be declared here diff --git a/RiotShareExtension/Modules/Main/ShareExtensionRootViewController.h b/RiotShareExtension/ShareExtensionRootViewController.h similarity index 100% rename from RiotShareExtension/Modules/Main/ShareExtensionRootViewController.h rename to RiotShareExtension/ShareExtensionRootViewController.h diff --git a/RiotShareExtension/Modules/Main/ShareExtensionRootViewController.m b/RiotShareExtension/ShareExtensionRootViewController.m similarity index 70% rename from RiotShareExtension/Modules/Main/ShareExtensionRootViewController.m rename to RiotShareExtension/ShareExtensionRootViewController.m index ad5178c417..bd5c5ad6ba 100644 --- a/RiotShareExtension/Modules/Main/ShareExtensionRootViewController.m +++ b/RiotShareExtension/ShareExtensionRootViewController.m @@ -15,8 +15,7 @@ */ #import "ShareExtensionRootViewController.h" -#import "ShareViewController.h" -#import "ShareExtensionManager.h" +#import "ShareManager.h" #import "ThemeService.h" #ifdef IS_SHARE_EXTENSION @@ -27,7 +26,7 @@ @interface ShareExtensionRootViewController () -@property (nonatomic, strong, readonly) ShareExtensionManager *shareExtensionManager; +@property (nonatomic, strong, readonly) ShareManager *shareManager; @end @@ -39,24 +38,24 @@ - (instancetype)init [ThemeService.shared setThemeId:RiotSettings.shared.userInterfaceTheme]; - _shareExtensionManager = [[ShareExtensionManager alloc] initWithShareExtensionContext:self.extensionContext + _shareManager = [[ShareManager alloc] initWithShareExtensionContext:self.extensionContext extensionItems:self.extensionContext.inputItems]; MXWeakify(self); - [_shareExtensionManager setCompletionCallback:^(ShareExtensionManagerResult result) { + [_shareManager setCompletionCallback:^(ShareManagerResult result) { MXStrongifyAndReturnIfNil(self); switch (result) { - case ShareExtensionManagerResultFinished: + case ShareManagerResultFinished: [self.extensionContext completeRequestReturningItems:nil completionHandler:nil]; [self _dismiss]; break; - case ShareExtensionManagerResultCancelled: + case ShareManagerResultCancelled: [self.extensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXUserCancelErrorDomain" code:4201 userInfo:nil]]; [self _dismiss]; break; - case ShareExtensionManagerResultFailed: + case ShareManagerResultFailed: [self.extensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXFailureErrorDomain" code:500 userInfo:nil]]; [self _dismiss]; break; @@ -73,7 +72,7 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; - [self presentViewController:self.shareExtensionManager.mainViewController animated:YES completion:nil]; + [self presentViewController:self.shareManager.mainViewController animated:YES completion:nil]; } #pragma mark - Private @@ -83,9 +82,9 @@ - (void)_dismiss [self dismissViewControllerAnimated:true completion:^{ [self.presentingViewController dismissViewControllerAnimated:false completion:nil]; -// // FIXME: Share extension memory usage increase when launched several times and then crash due to some memory leaks. -// // For now, we force the share extension to exit and free memory. -// [NSException raise:@"Kill the app extension" format:@"Free memory used by share extension"]; + // FIXME: Share extension memory usage increase when launched several times and then crash due to some memory leaks. + // For now, we force the share extension to exit and free memory. + [NSException raise:@"Kill the app extension" format:@"Free memory used by share extension"]; }]; } diff --git a/RiotShareExtension/Modules/Fallback/FallbackViewController.h b/RiotShareExtension/Shared/FallbackViewController.h similarity index 100% rename from RiotShareExtension/Modules/Fallback/FallbackViewController.h rename to RiotShareExtension/Shared/FallbackViewController.h diff --git a/RiotShareExtension/Modules/Fallback/FallbackViewController.m b/RiotShareExtension/Shared/FallbackViewController.m similarity index 100% rename from RiotShareExtension/Modules/Fallback/FallbackViewController.m rename to RiotShareExtension/Shared/FallbackViewController.m diff --git a/RiotShareExtension/Modules/Fallback/FallbackViewController.xib b/RiotShareExtension/Shared/FallbackViewController.xib similarity index 100% rename from RiotShareExtension/Modules/Fallback/FallbackViewController.xib rename to RiotShareExtension/Shared/FallbackViewController.xib diff --git a/RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.h b/RiotShareExtension/Shared/RecentRoomTableViewCell.h similarity index 100% rename from RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.h rename to RiotShareExtension/Shared/RecentRoomTableViewCell.h diff --git a/RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.m b/RiotShareExtension/Shared/RecentRoomTableViewCell.m similarity index 100% rename from RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.m rename to RiotShareExtension/Shared/RecentRoomTableViewCell.m diff --git a/RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.xib b/RiotShareExtension/Shared/RecentRoomTableViewCell.xib similarity index 100% rename from RiotShareExtension/Modules/Share/Listing/Views/RecentRoomTableViewCell.xib rename to RiotShareExtension/Shared/RecentRoomTableViewCell.xib diff --git a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.h b/RiotShareExtension/Shared/RoomsListViewController.h similarity index 100% rename from RiotShareExtension/Modules/Share/Listing/RoomsListViewController.h rename to RiotShareExtension/Shared/RoomsListViewController.h diff --git a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m b/RiotShareExtension/Shared/RoomsListViewController.m similarity index 98% rename from RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m rename to RiotShareExtension/Shared/RoomsListViewController.m index 7a9e198f01..8f387a4d4a 100644 --- a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m +++ b/RiotShareExtension/Shared/RoomsListViewController.m @@ -14,13 +14,12 @@ limitations under the License. */ +#import + #import "RoomsListViewController.h" #import "RecentRoomTableViewCell.h" -#import "NSBundle+MatrixKit.h" -#import "ShareExtensionManager.h" #import "RecentCellData.h" #import "ThemeService.h" -#import #ifdef IS_SHARE_EXTENSION #import "RiotShareExtension-Swift.h" diff --git a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.xib b/RiotShareExtension/Shared/RoomsListViewController.xib similarity index 100% rename from RiotShareExtension/Modules/Share/Listing/RoomsListViewController.xib rename to RiotShareExtension/Shared/RoomsListViewController.xib diff --git a/RiotShareExtension/Modules/Share/DataSources/ShareDataSource.h b/RiotShareExtension/Shared/ShareDataSource.h similarity index 100% rename from RiotShareExtension/Modules/Share/DataSources/ShareDataSource.h rename to RiotShareExtension/Shared/ShareDataSource.h diff --git a/RiotShareExtension/Modules/Share/DataSources/ShareDataSource.m b/RiotShareExtension/Shared/ShareDataSource.m similarity index 99% rename from RiotShareExtension/Modules/Share/DataSources/ShareDataSource.m rename to RiotShareExtension/Shared/ShareDataSource.m index 802425ebcb..b88a846a45 100644 --- a/RiotShareExtension/Modules/Share/DataSources/ShareDataSource.m +++ b/RiotShareExtension/Shared/ShareDataSource.m @@ -15,7 +15,6 @@ */ #import "ShareDataSource.h" -#import "ShareExtensionManager.h" #import "RecentRoomTableViewCell.h" @interface ShareDataSource () diff --git a/RiotShareExtension/Managers/ShareExtensionManager.h b/RiotShareExtension/Shared/ShareManager.h similarity index 69% rename from RiotShareExtension/Managers/ShareExtensionManager.h rename to RiotShareExtension/Shared/ShareManager.h index e8dc215e6e..04b49bf486 100644 --- a/RiotShareExtension/Managers/ShareExtensionManager.h +++ b/RiotShareExtension/Shared/ShareManager.h @@ -16,17 +16,15 @@ #import -@class ShareExtensionManager; - -typedef NS_ENUM(NSUInteger, ShareExtensionManagerResult) { - ShareExtensionManagerResultFinished, - ShareExtensionManagerResultCancelled, - ShareExtensionManagerResultFailed +typedef NS_ENUM(NSUInteger, ShareManagerResult) { + ShareManagerResultFinished, + ShareManagerResultCancelled, + ShareManagerResultFailed }; -@interface ShareExtensionManager : NSObject +@interface ShareManager : NSObject -@property (nonatomic, copy) void (^completionCallback)(ShareExtensionManagerResult); +@property (nonatomic, copy) void (^completionCallback)(ShareManagerResult); - (instancetype)initWithShareExtensionContext:(NSExtensionContext *)shareExtensionContext extensionItems:(NSArray *)extensionItems; @@ -36,7 +34,7 @@ typedef NS_ENUM(NSUInteger, ShareExtensionManagerResult) { @end -@interface NSItemProvider (ShareExtensionManager) +@interface NSItemProvider (ShareManager) @property BOOL isLoaded; diff --git a/RiotShareExtension/Managers/ShareExtensionManager.m b/RiotShareExtension/Shared/ShareManager.m similarity index 95% rename from RiotShareExtension/Managers/ShareExtensionManager.m rename to RiotShareExtension/Shared/ShareManager.m index 6d2ab3cea3..2aec891f43 100644 --- a/RiotShareExtension/Managers/ShareExtensionManager.m +++ b/RiotShareExtension/Shared/ShareManager.m @@ -14,17 +14,17 @@ limitations under the License. */ -#import "ShareExtensionManager.h" -#import "ShareViewController.h" -#import "ShareDataSource.h" - -#import - @import MobileCoreServices; + #import "objc/runtime.h" -#include #import +#import + +#import "ShareManager.h" +#import "ShareViewController.h" +#import "ShareDataSource.h" + #ifdef IS_SHARE_EXTENSION #import "RiotShareExtension-Swift.h" #else @@ -41,7 +41,7 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode) ImageCompressionModeLarge }; -@interface ShareExtensionManager () +@interface ShareManager () @property (nonatomic, strong, readonly) NSExtensionContext *shareExtensionContext; @property (nonatomic, strong, readonly) NSArray *extensionItems; @@ -60,7 +60,7 @@ @interface ShareExtensionManager () @end -@implementation ShareExtensionManager +@implementation ShareManager - (instancetype)initWithShareExtensionContext:(NSExtensionContext *)shareExtensionContext extensionItems:(NSArray *)extensionItems @@ -147,7 +147,7 @@ - (void)shareViewControllerDidRequestShare:(ShareViewController *)shareViewContr }]; } failure:^(NSError *error) { - MXLogError(@"[ShareExtensionManager] Failed preparign matrix session"); + MXLogError(@"[ShareManager] Failed preparign matrix session"); }]; } @@ -155,7 +155,7 @@ - (void)shareViewControllerDidRequestDismissal:(ShareViewController *)shareViewC { if (self.completionCallback) { - self.completionCallback(ShareExtensionManagerResultCancelled); + self.completionCallback(ShareManagerResultCancelled); } } @@ -328,7 +328,7 @@ - (void)_sendContentToRoom:(MXRoom *)room failureBlock:(void(^)(NSError *error)) } else { - MXLogDebug(@"[ShareExtensionManager] sendContentToRoom: failed to loadItemForTypeIdentifier. Error: %@", error); + MXLogError(@"[ShareManager] sendContentToRoom: failed to loadItemForTypeIdentifier. Error: %@", error); dispatch_group_leave(requestsGroup); } @@ -423,7 +423,7 @@ - (void)_sendContentToRoom:(MXRoom *)room failureBlock:(void(^)(NSError *error)) { if (self.completionCallback) { - self.completionCallback(ShareExtensionManagerResultFinished); + self.completionCallback(ShareManagerResultFinished); } } }); @@ -439,7 +439,7 @@ - (void)_showFailureAlert:(NSString *)title if (self.completionCallback) { - self.completionCallback(ShareExtensionManagerResultFailed); + self.completionCallback(ShareManagerResultFailed); } }]; @@ -683,7 +683,7 @@ - (UIAlertController *)compressionPromptForPendingImagesWithShareBlock:(void(^)( self.imageCompressionMode = ImageCompressionModeNone; } - MXLogDebug(@"[ShareExtensionManager] Send %lu image(s) without compression prompt using compression mode: %ld", (unsigned long)self.pendingImages.count, (long)self.imageCompressionMode); + MXLogDebug(@"[ShareManager] Send %lu image(s) without compression prompt using compression mode: %ld", (unsigned long)self.pendingImages.count, (long)self.imageCompressionMode); if (shareBlock) { @@ -874,8 +874,8 @@ - (void)logCompressionSizeChoice:(MXKImageCompressionSize)compressionSize NSUInteger imageWidth = compressionSize.imageSize.width; NSUInteger imageHeight = compressionSize.imageSize.height; - MXLogDebug(@"[ShareExtensionManager] User choose image compression with output size %lu x %lu (output file size: %@)", (unsigned long)imageWidth, (unsigned long)imageHeight, fileSize); - MXLogDebug(@"[ShareExtensionManager] Number of images to send: %lu", (unsigned long)self.pendingImages.count); + MXLogDebug(@"[ShareManager] User choose image compression with output size %lu x %lu (output file size: %@)", (unsigned long)imageWidth, (unsigned long)imageHeight, fileSize); + MXLogDebug(@"[ShareManager] Number of images to send: %lu", (unsigned long)self.pendingImages.count); } // Log memory usage. @@ -894,11 +894,11 @@ - (void)logMemoryUsage if (kerr == KERN_SUCCESS) { - MXLogDebug(@"[ShareExtensionManager] Memory in use (in MB): %f", memoryUsedInMegabytes); + MXLogDebug(@"[ShareManager] Memory in use (in MB): %f", memoryUsedInMegabytes); } else { - MXLogDebug(@"[ShareExtensionManager] Error with task_info(): %s", mach_error_string(kerr)); + MXLogDebug(@"[ShareManager] Error with task_info(): %s", mach_error_string(kerr)); } } @@ -940,7 +940,7 @@ - (void)onMediaLoaderStateDidChange:(NSNotification *)notification - (void)didReceiveMemoryWarning:(NSNotification*)notification { - MXLogDebug(@"[ShareExtensionManager] Did receive memory warning"); + MXLogDebug(@"[ShareManager] Did receive memory warning"); [self logMemoryUsage]; } @@ -951,7 +951,7 @@ - (void)sendText:(NSString *)text toRoom:(MXRoom *)room successBlock:(dispatch_b [self didStartSendingToRoom:room]; if (!text) { - MXLogDebug(@"[ShareExtensionManager] loadItemForTypeIdentifier: failed."); + MXLogError(@"[ShareManager] loadItemForTypeIdentifier: failed."); if (failureBlock) { failureBlock(nil); @@ -965,7 +965,7 @@ - (void)sendText:(NSString *)text toRoom:(MXRoom *)room successBlock:(dispatch_b successBlock(); } } failure:^(NSError *error) { - MXLogDebug(@"[ShareExtensionManager] sendTextMessage failed."); + MXLogError(@"[ShareManager] sendTextMessage failed with error %@", error); if (failureBlock) { failureBlock(error); @@ -978,7 +978,7 @@ - (void)sendFileWithUrl:(NSURL *)fileUrl toRoom:(MXRoom *)room successBlock:(dis [self didStartSendingToRoom:room]; if (!fileUrl) { - MXLogDebug(@"[ShareExtensionManager] loadItemForTypeIdentifier: failed."); + MXLogError(@"[ShareManager] loadItemForTypeIdentifier: failed."); if (failureBlock) { failureBlock(nil); @@ -997,7 +997,7 @@ - (void)sendFileWithUrl:(NSURL *)fileUrl toRoom:(MXRoom *)room successBlock:(dis successBlock(); } } failure:^(NSError *error) { - MXLogDebug(@"[ShareExtensionManager] sendFile failed."); + MXLogError(@"[ShareManager] sendFile failed with error %@", error); if (failureBlock) { failureBlock(error); @@ -1035,7 +1035,7 @@ - (void)sendImageData:(NSData *)imageData withProvider:(NSItemProvider*)itemProv // Sanity check if (!mimeType) { - MXLogDebug(@"[ShareExtensionManager] sendImage failed. Cannot determine MIME type of %@", itemProvider); + MXLogError(@"[ShareManager] sendImage failed. Cannot determine MIME type of %@", itemProvider); if (failureBlock) { failureBlock(nil); @@ -1121,8 +1121,7 @@ - (void)sendImageData:(NSData *)imageData withProvider:(NSItemProvider*)itemProv successBlock(); } } failure:^(NSError *error) { - - MXLogDebug(@"[ShareExtensionManager] sendImage failed."); + MXLogError(@"[ShareManager] sendImage failed with error %@", error); if (failureBlock) { failureBlock(error); @@ -1135,7 +1134,7 @@ - (void)sendImageDatas:(NSMutableArray *)imageDatas withProviders:(NSArray*)item { if (imageDatas.count == 0 || imageDatas.count != itemProviders.count) { - MXLogDebug(@"[ShareExtensionManager] sendImages: no images to send."); + MXLogError(@"[ShareManager] sendImages: no images to send."); if (failureBlock) { @@ -1216,7 +1215,7 @@ - (void)sendVideo:(NSURL *)videoLocalUrl toRoom:(MXRoom *)room successBlock:(dis [self didStartSendingToRoom:room]; if (!videoLocalUrl) { - MXLogDebug(@"[ShareExtensionManager] loadItemForTypeIdentifier: failed."); + MXLogError(@"[ShareManager] loadItemForTypeIdentifier: failed."); if (failureBlock) { failureBlock(nil); @@ -1239,7 +1238,7 @@ - (void)sendVideo:(NSURL *)videoLocalUrl toRoom:(MXRoom *)room successBlock:(dis successBlock(); } } failure:^(NSError *error) { - MXLogDebug(@"[ShareExtensionManager] sendVideo failed."); + MXLogError(@"[ShareManager] Failed sending video with error %@", error); if (failureBlock) { failureBlock(error); @@ -1253,7 +1252,7 @@ - (void)sendVideo:(NSURL *)videoLocalUrl toRoom:(MXRoom *)room successBlock:(dis @end -@implementation NSItemProvider (ShareExtensionManager) +@implementation NSItemProvider (ShareManager) - (void)setIsLoaded:(BOOL)isLoaded { diff --git a/RiotShareExtension/Modules/Share/ShareViewController.h b/RiotShareExtension/Shared/ShareViewController.h similarity index 100% rename from RiotShareExtension/Modules/Share/ShareViewController.h rename to RiotShareExtension/Shared/ShareViewController.h diff --git a/RiotShareExtension/Modules/Share/ShareViewController.m b/RiotShareExtension/Shared/ShareViewController.m similarity index 93% rename from RiotShareExtension/Modules/Share/ShareViewController.m rename to RiotShareExtension/Shared/ShareViewController.m index 21cce2d00a..148069665b 100644 --- a/RiotShareExtension/Modules/Share/ShareViewController.m +++ b/RiotShareExtension/Shared/ShareViewController.m @@ -19,7 +19,6 @@ #import "RoomsListViewController.h" #import "FallbackViewController.h" #import "ShareDataSource.h" -#import "ShareExtensionManager.h" #import "ThemeService.h" @@ -96,6 +95,21 @@ - (void)configureWithState:(ShareViewControllerAccountState)state [self configureViews]; } +- (void)showProgressIndicator +{ + if (!self.hudView) + { + self.parentViewController.view.userInteractionEnabled = NO; + self.hudView = [MXKPieChartHUD showLoadingHudOnView:self.view WithMessage:[VectorL10n sending]]; + [self.hudView setProgress:0.0]; + } +} + +- (void)setProgress:(CGFloat)progress +{ + [self.hudView setProgress:progress]; +} + #pragma mark - MXKRecentListViewControllerDelegate - (void)recentListViewController:(MXKRecentListViewController *)recentListViewController @@ -111,25 +125,6 @@ - (void)recentListViewController:(MXKRecentListViewController *)recentListViewCo [self.delegate shareViewControllerDidRequestShare:self forRoomIdentifier:childInfo.childRoomId]; } -#pragma mark - ShareExtensionManagerDelegate - -- (void)showProgressIndicator -{ - dispatch_async(dispatch_get_main_queue(), ^{ - if (!self.hudView) - { - self.parentViewController.view.userInteractionEnabled = NO; - self.hudView = [MXKPieChartHUD showLoadingHudOnView:self.view WithMessage:[VectorL10n sending]]; - [self.hudView setProgress:0.0]; - } - }); -} - -- (void)setProgress:(CGFloat)progress -{ - [self.hudView setProgress:progress]; -} - #pragma mark - Private - (void)configureViews diff --git a/RiotShareExtension/Modules/Share/ShareViewController.xib b/RiotShareExtension/Shared/ShareViewController.xib similarity index 100% rename from RiotShareExtension/Modules/Share/ShareViewController.xib rename to RiotShareExtension/Shared/ShareViewController.xib