Swiftpack.co - vknabel/AckeeTracker-Swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vknabel.
vknabel/AckeeTracker-Swift 0.2.0
A tracker implementation for Ackee. Currently Proof of Concept.
⭐️ 0
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/vknabel/AckeeTracker-Swift.git", from: "0.2.0")

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: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics