Skip to content

This sample app verify the app version according to the App Store version.

License

Notifications You must be signed in to change notification settings

leonardo-ferreira07/version-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version-checker

This sample app verify the app version according to the App Store version.

Continuous integration - branch master

CI Status Master

Usage

If you want to use this in your project, just drag the AppVersionChecker.h and AppVersionChecker.m files into your project. Call the mehtod to verify you app version, sending via parameter your app bundle ID registered on App Store.

Examples

Objective-C

#import "AppVersionChecker.h"

[AppVersionChecker checkAppVersion:@"yourAppBundleID" completion:^(BOOL isOldVersion) {
        if(isOldVersion)
            NSLog(@"that's all folks, this version is deprecated");
        else
            NSLog(@"that's all folks, this version is updated");
}];

Swift - Import the files referenced above, and just add #import "AppVersionChecker.h" to yourApp-Bridging-Header.h.

AppVersionChecker.checkAppVersion("yourAppBundleID") { isOldVersion in
    if(isOldVersion) {
        print("that's all folks, this version is deprecated")
    } else {
        print("that's all folks, this version is updated")
    }
}

About

This sample app verify the app version according to the App Store version.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published