Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version bump to 2.2.0 Add beacon helper for ibeacons Update stats call home / device token registration / location tracking to use the event tracking bus. * Last network calls getting pumped into event stream. * Tweak method name for clarity. * Update the enum. * Enums, refactor the poking of event service to allow instant sync. * Enums for event types. * expect the CLBeacon object for the send beacon helper, we can then do the munging of beacon ID and forward. * Fix version number for podspec. Make sure KumulosEvent is internal. * Fix the doc block for the public method. Chop immediate flush from the public method, leave it internal for now. Dont need to flush push opens immediately, can do this on backgrounding. * Leave the beacon params as separate keys for future querying * Bump version in readme. * Add type for iBeacon call homes.
- Loading branch information
Showing
13 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github "Alamofire/Alamofire" "4.6.0" | ||
github "kstenerud/KSCrash" "1.15.16" | ||
github "Alamofire/Alamofire" "4.7.0" | ||
github "kstenerud/KSCrash" "1.15.18" |
Submodule KSCrash
updated
20 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Kumulos+Engage.swift | ||
// KumulosSDK | ||
// | ||
// Created by Andrew Lindsay on 08/03/2018. | ||
// Copyright © 2018 Kumulos. All rights reserved. | ||
// | ||
|
||
import CoreLocation | ||
|
||
public extension Kumulos{ | ||
|
||
public static func sendLocationUpdate(location: CLLocation) { | ||
let parameters = [ | ||
"lat" : location.coordinate.latitude, | ||
"lng" : location.coordinate.longitude | ||
] | ||
|
||
Kumulos.trackEvent(eventType: KumulosEvent.ENGAGE_LOCATION_UPDATED, properties: parameters, immediateFlush: true) | ||
} | ||
|
||
public static func sendiBeaconProximity(beacon: CLBeacon) { | ||
|
||
let parameters = [ | ||
"type": 1, | ||
"uuid": beacon.proximityUUID.uuidString, | ||
"major": beacon.major.stringValue, | ||
"minor": beacon.minor.stringValue, | ||
"proximity" : beacon.proximity.rawValue | ||
] as [String : Any]; | ||
|
||
Kumulos.trackEvent(eventType: KumulosEvent.ENGAGE_BEACON_ENTERED_PROXIMITY, properties: parameters, immediateFlush: true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters