Swiftpack.co - Package - vknabel/AckeeTracker-Swift

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

vknabel/AckeeTracker-Swift

A tracker implementation for Ackee. Currently Proof of Concept.

AckeeTracker

A script that interacts with the REST API of Ackee. Should be used to feed your server with data from your App's users.

Requirements

AckeeTracker requires a running Ackee server.

Installation

AckeeTracker has no external dependencies and supports Swift Package Manager.

Swift Package Manager

import PackageDescription

let package = Package(
    name: "YourPackage",
    dependencies: [
        .package(url: "https://github.com/vknabel/AckeeTracker.git", from: "0.1.0")
    ],
    targets: [
        .target(name: "YourTarget", dependencies: ["AckeeTracker"]),
    ]
)

Usage

import AckeeTracker

let ackee: Tracker = AckeeTracker(
  configuration: AckeeConfiguration(
    domainId: "<your-domain-id>",
    serverUrl: URL(string: "https://ackee.electerious.com")!,
    // requires an actual host url!
    appUrl: URL(string: "yourapp://some.domain")!,
    disabled: false
  )
)

// record your controllers
ackee.record("MyViewController")
// or deep links
ackee.record("deep/linking/url")

Note: As of now, recording advanced attributes isn't possible yet, but may follow in future.

Contributing

$ git clone https://github.com/vknabel/AckeeTracker-Swift.git
$ cd AckeeTracker-Swift
$ swift run archery setup
# This might take a while to complete

License

AckeeTracker is available under the MIT license.

Github

link
Stars: 0
Last commit: 1 week ago