@@ -52,6 +52,9 @@
@interface AppDelegate : UIResponder <UIApplicationDelegate, BKPasscodeLockScreenManagerDelegate, BKPasscodeViewControllerDelegate, LMMediaPlayerViewDelegate, TWMessageBarStyleSheet>
#endif
+// For debug
+@property BOOL isRunningTestFlight;
+
// For LMMediaPlayerView
@property (strong, nonatomic) UIWindow *window;
@@ -87,6 +87,11 @@
[MagicalRecord setLoggingLevel:MagicalRecordLoggingLevelOff];
+ //
+ NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
+ NSString *receiptURLString = [receiptURL path];
+ _isRunningTestFlight = ([receiptURLString rangeOfString:@"sandboxReceipt"].location != NSNotFound);
// Verify upgrade
[self upgrade];
@@ -323,6 +323,10 @@
[app loadTableAutomaticUploadForSelector:selectorUploadAutomatic];
[app loadTableAutomaticUploadForSelector:selectorUploadAutomaticAll];
+ // message TestFlight
+ if (app.isRunningTestFlight)
+ [app messageNotification:@"_info_" description:@"This version is beta and only fot TestFlight, send report at ios@nextcloud.com" visible:YES delay:dismissAfterSecond type:TWMessageBarMessageTypeInfo];
} else {
// reload datasource