Created
February 20, 2014 07:06
-
-
Save azu/9108394 to your computer and use it in GitHub Desktop.
AppVersioningComparisonResult https://github.com/azu/AppVersioning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppVersioning.h | |
// AppVersioning | |
// | |
// Created by azu on 2014/02/20. | |
// Copyright (c) 2014 azu. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef NS_ENUM(NSInteger, AppVersioningComparisonResult) { | |
AppVersionNotFound = -1L, // nil | |
AppVersionEqual, // match | |
AppVersionNotEqual // mismatch | |
}; | |
@interface AppVersioning : NSObject | |
+ (NSString *)currentVersion; | |
+ (void)saveCurrentVersion; | |
+ (NSString *)previouslySavedVersion; | |
+ (AppVersioningComparisonResult)compareCurrentWithSavedVersion; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment