Latest 1.0
Homepage https://github.com/NextFaze/ManUp
License MIT
Platforms ios 8.0, tvos 9.0, requires ARC
Authors , , ,

ManUp

Build Status
Version
License
Platform

Adds a server side check for a mandatory app update and server-side configuration options to your iOS/tvOS application.

Installation

The preferred method is via CocoaPods:

pod 'ManUp'

Usage

ManUp will download a ManUp configuration file (json) that is hosted on a server of your choice. This file will have the current app store version, the minimum version, and a URL to the app store or app website.

{
    "ios": {
        "url": "https://itunes.apple.com/app/id0000000?mt=8",
        "latest": "2.0",
        "minimum": "1.1",
        "enabled": true
    }
}

Running ManUp will download this file and compare it to the installed app’s version to determine if there is an update available (latest), or if there is a mandatory update required (minimum).

Swift

@import ManUp

// keep a strong reference
let manUp = ManUp()

// typically in applicationDidBecomeActive
self.manUp.configURL = URL(string: "https://clientfiles.nextfaze.com/eva/maintenanceMode.json")
self.manUp.delegate = nil
self.manUp.validate()

Objective-C

#import <ManUp/ManUp.h>

// keep a strong reference
@property (nonatomic, strong) ManUp *manUp;

self.manUp = [[ManUp alloc] initWithConfigURL:[NSURL URLWithString:@"https://yourserver.com/config.json"] delegate:self];
[self.manUp validate];

You can also add any keys and values to the json file, which will be accessible like so:

id value = [ManUp settingForKey:"key"];

This can be used however you see fit, for example to enable/disable app features.

Latest podspec

{
    "name": "ManUp",
    "version": "1.0",
    "summary": "A server side check of the app version and configuration options for your iOS/tvOS app.",
    "description": "Adds a server side check for a mandatory app update and server-side configuration options to your iOS/tvOS application.nnWhen a new version of your app is released onto the store, use this tool to let your users know and help them update.",
    "homepage": "https://github.com/NextFaze/ManUp",
    "license": "MIT",
    "authors": {
        "Jeremy Day": "[email protected]",
        "Ric Santos": "[email protected]",
        "Dan Silk": "[email protected]",
        "Shane Woolcock": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NextFaze/ManUp.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "source_files": "ManUp/*.{h,m}"
}

Pin It on Pinterest

Share This