Skip to content

Library to check the latest version of app with AyanTech web services

License

Notifications You must be signed in to change notification settings

AyanTech/ATVersionControl-iOS

Repository files navigation

ATVersionControl

Check the latest version of app with AyanTech servers*

* app should be registered in AyanTechServers

Usage

Version control

To configure the parameters use this:

VersionControl.shared.applicationName = "MyAppName"
VersionControl.shared.categoryName = "cat"
VersionControl.shared.version = "1.0.0" //default version is CFBundleShortVersionString
VersionControl.shared.extraInfo["Token"] = "Test" //Json object and optional

And to check the latest version wherever you like just call:

VersionControl.shared.checkVersion()

It automatically shows an update dialog if there is one, and handle the actions.

Share application

Just call:

VersionControl.shared.shareAppLink() 

It automatically shows the UIActivityViewController for sharing app link or text.

Installation

ATVersionControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ATVersionControl'

Author

Sepehr Behroozi, [email protected]

About

Library to check the latest version of app with AyanTech web services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published