A library for sending events to Honeycomb written in Swift.
Installation
Cocoapods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
gem install cocoapods
To integrate LibHoney into your Xcode project using CocoaPods, specify it in your Podfile:
target '<Target name>' do
# If you're using LibHoney with Objective-C, uncomment use_frameworks!
# use_frameworks!
pod 'LibHoney', '~> 1.0'
end
Then run the following command:
pod install
Since LibHoney depends on Alamofire, if you’re using LibHoney in Objective-C, you might have to set the SWIFT_VERSION variable for Alamofire in the Pods build settings.
Usage
Swift
To use LibHoney, you have to first configure the library with your writeKey and dataset name.
In the AppDelegate inside didFinishLaunchingWithOptions:
LibHoney automatically extracts device information and send them with each event. To disable this behavior:
LibHoney.shared.collectDeviceStats = NO;
Contributions
Features, bug fixes and other changes to LibHoney are gladly accepted. Please open issues or a pull request with your change. Remember to add your name to the CONTRIBUTORS file!
All contributions will be released under the Apache License 2.0.
Note: This is an experimental/alpha project.
LibHoney
A library for sending events to Honeycomb written in Swift.
Installation
Cocoapods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate LibHoney into your Xcode project using CocoaPods, specify it in your
Podfile
:Then run the following command:
Usage
Swift
To use LibHoney, you have to first configure the library with your writeKey and dataset name.
In the
AppDelegate
insidedidFinishLaunchingWithOptions
:To send an event, simply create a new event and add fields to it:
To set values such that it gets sent on every event, add the key to the shared LibHoney object
LibHoney automatically extracts device information and send them with each event. To disable this behavior:
Objective-C
To use LibHoney, you have to first configure the library with your writeKey and dataset name.
In the
AppDelegate
insidedidFinishLaunchingWithOptions
:To send an event, simply create a new event and add fields to it:
To set values such that it gets sent on every event, add the key to the shared LibHoney object
LibHoney automatically extracts device information and send them with each event. To disable this behavior:
Contributions
Features, bug fixes and other changes to LibHoney are gladly accepted. Please open issues or a pull request with your change. Remember to add your name to the CONTRIBUTORS file!
All contributions will be released under the Apache License 2.0.