Latest 0.1.3
Homepage https://github.com/megatron1000/LaunchCounter
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Authors

CI Status
Version
License
Platform

Description

A very simple mechanism for tracking the number of times your app has been launched. Useful for running certain activities the very first time the app is launched, for example.

Example

In your app delegate

let launchCounter = LaunchCounter()

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    // Record that the app was launched
    launchCounter.trackLaunch()

    if launchCounter.isFirstLaunch {
        // Do something only on first launch 
    }

    return true
}

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'LaunchCounter'

Author

megatron1000, [email protected]

License

LaunchCounter is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LaunchCounter",
    "version": "0.1.3",
    "summary": "Keep track of the number of times an app was launched.",
    "description": "Add a call to this class on app launch to increment the app launch count. Query it to find out if it's the first launch or get the specific number of launches.",
    "homepage": "https://github.com/megatron1000/LaunchCounter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "megatron1000": "[email protected]"
    },
    "source": {
        "git": "https://github.com/megatron1000/LaunchCounter.git",
        "tag": "0.1.3"
    },
    "social_media_url": "https://twitter.com/MarkBridgesApps",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source_files": "LaunchCounter/Classes/**/*",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This