2017-01-06 17:41:44 +01:00
|
|
|
//
|
2018-02-12 16:00:20 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-01-06 17:41:44 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
@interface AppVersion : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NSString *firstAppVersion;
|
|
|
|
@property (nonatomic, readonly) NSString *lastAppVersion;
|
|
|
|
@property (nonatomic, readonly) NSString *currentAppVersion;
|
|
|
|
|
2017-06-16 16:52:25 +02:00
|
|
|
// Unlike lastAppVersion, this property isn't updated until
|
|
|
|
// appLaunchDidComplete is called.
|
|
|
|
@property (nonatomic, readonly) NSString *lastCompletedLaunchAppVersion;
|
2018-02-12 16:00:20 +01:00
|
|
|
@property (nonatomic, readonly) NSString *lastCompletedLaunchMainAppVersion;
|
|
|
|
@property (nonatomic, readonly) NSString *lastCompletedLaunchSAEAppVersion;
|
2017-06-16 16:52:25 +02:00
|
|
|
|
2017-01-06 17:41:44 +01:00
|
|
|
+ (instancetype)instance;
|
|
|
|
|
2018-02-12 16:00:20 +01:00
|
|
|
- (void)mainAppLaunchDidComplete;
|
|
|
|
- (void)saeLaunchDidComplete;
|
2017-06-16 16:52:25 +02:00
|
|
|
|
2017-06-16 16:59:48 +02:00
|
|
|
- (BOOL)isFirstLaunch;
|
|
|
|
|
2017-01-06 17:41:44 +01:00
|
|
|
@end
|