Latest 0.1.2
Homepage https://github.com/appanalytic/lib-swift
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project:

  1. Clone the repo

  2. Run pod install from the Example/RealAppTest directory first

  3. Run RealAppTest.xcworkspace

Requirements

Enable http domains exception:

info.plist >>

Add App Transport Security Settings ++>> Allow Arbitrary Loads = YES

Installation

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

pod "AppAnalyticsSwift"

Run pod install from terminal

Run YOUR_APP_NAME.xcworkspace

Installation Completed!

How to use

Insert following line to your ViewController

import AppAnalyticsSwift

Initialize AppAnalyticsSwift class and call submitCampaing method:

let app = AppAnalyticsSwift(accessKey = "YOUR_ACCESS_KEY")

app.submitCampain()

Events

To add event with value just call addEvent method:

app.addEvent(eventName: "StartMainController", eventValue: NSDate())

To add event without value call addEvent method add put nil for value :

app.addEvent(eventName: "StartMainController", eventValue: nil)

Author

AppAnalytics Develpment Team, [email protected]

License

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

Latest podspec

{
    "name": "AppAnalyticsSwift",
    "version": "0.1.2",
    "summary": "Library for AppAnalytics.ir service.",
    "description": "TODO: A simple library for appanalytics.ir to tracking applications installation. It will be managed by appanalytics.ir account. nAppAnalytics class initilize with a access key that can be found in your appanalytics.ir account.",
    "homepage": "https://github.com/appanalytic/lib-swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "AppAnalytics": "[email protected]"
    },
    "source": {
        "git": "https://github.com/appanalytic/lib-swift.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AppAnalyticsSwift/Classes/**/*"
}

Pin It on Pinterest

Share This