Skip to content

mohammad-rahchamani/Watchlitude

Repository files navigation

Watchlitude

Amplitude analytics SDK for WatchOS.

Installation:

Swift Package Manager:

dependencies: [ .package(url: "https://github.com/mohammad-rahchamani/Watchlitude.git", .upToNextMajor(from: "0.0.1")) ]

CocoaPods:

pod 'Watchlitude', '~> 0.0.1'

Usage:

import Watchlitude:

add #import Watchlitude at the top of you ExtensionDelegate.swift

set API key and device Id:

inside applicationDidFinishLaunching call Watchlitude.shared.initializeApiKey with your amplitude API key and set device Id by calling Watchlitude.shared.setDeviceId

log events:

call Watchlitude.shared.logEvent

About

Amplitude analytics SDK for WatchOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published