Latest 0.1.6
Homepage https://github.com/woodies11/AppVersionEnforcer
License Apache 2.0
Platforms ios 8.0
Dependencies Alamofire
Authors

[![CI Status](http://img.shields.io/travis/Romson Preechawit/AppVersionEnforcer.svg?style=flat)](https://travis-ci.org/Romson Preechawit/AppVersionEnforcer)
Version
License
Platform

Requirements

iOS > 8

Currently, AppVersionEnforcer only work with a very specific sever setting.

Installation

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

pod "AppVersionEnforcer"

Usage

Currently, AppVersionEnforcer only work with a very specific sever setting.

Simply create an instance of AppVersionEnforcer, with your base API URL, within the AppDelegate.
Then, call ‘enforcer.checkVersion(, currentVersion: )’ in the application ‘didFinishLaunchingWithOptions’.
And call ‘enforcer.applicationDidBecomeActive(application)’ in the ‘applicationDidBecomeActive(application: UIApplication)’

// AppDelegate.swift

var window: UIWindow?
var enforcer: AppVersionEnforcer!

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
enforcer = AppVersionEnforcer(apiURL: "https://<YOUR_BASE_API_URL>/", window: window)
enforcer.checkVersion("<YOUR_BUNDLE_IDENTIFIER>", currentVersion: "1.0.0")
}

func applicationDidBecomeActive(application: UIApplication) {
enforcer.applicationDidBecomeActive(application)
}

The AppVersionEnforcer will communicate with the server and display update notice to the user depending on the parameters receive from the server

Author

Romson Preechawit

License

Copyright (c) 2016 Romson Preechawit

AppVersionEnforcer is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Latest podspec

{
    "name": "AppVersionEnforcer",
    "version": "0.1.6",
    "summary": "Communicate with server and prompt or force the user to update",
    "description": "Fetch version release data from the server and present to the user an alert and a prompt to update, depending on parameters receive from the server",
    "homepage": "https://github.com/woodies11/AppVersionEnforcer",
    "license": {
        "type": "Apache 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Romson Preechawit": "[email protected]"
    },
    "source": {
        "git": "https://github.com/woodies11/AppVersionEnforcer.git",
        "tag": "0.1.6"
    },
    "social_media_url": "https://twitter.com/woodies11",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AppVersionEnforcer/Classes/**/*",
    "dependencies": {
        "Alamofire": [
            "~> 3.4"
        ]
    }
}

Pin It on Pinterest

Share This