diff --git a/README.md b/README.md index f00338535..fb16cec30 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -See the documentation [here](https://www.onradar.com/documentation/sdk). \ No newline at end of file +# Radar + +[Radar](https://www.onradar.com) is a full-stack developer toolkit for location tracking and geofencing. + +See the full documentation [here](https://www.onradar.com/documentation/sdk). \ No newline at end of file diff --git a/RadarSDK.podspec b/RadarSDK.podspec index 043bd6949..7631ee9b2 100644 --- a/RadarSDK.podspec +++ b/RadarSDK.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'RadarSDK' - s.version = '1.0.8' + s.version = '1.0.9' s.summary = 'iOS toolkit for location tracking and geofencing' s.homepage = 'https://www.onradar.com' s.author = { 'Radar Labs, Inc.' => 'support@onradar.com' } s.platform = :ios - s.source = { :git => 'https://github.com/RadarLabs/RadarSDK-iOS.git', :tag => '1.0.8' } + s.source = { :git => 'https://github.com/RadarLabs/RadarSDK-iOS.git', :tag => '1.0.9' } s.source_files = 'RadarSDK/RadarSDK.framework/Versions/A/Headers/*.h' s.vendored_frameworks = 'RadarSDK/RadarSDK.framework' s.ios.deployment_target = '8.0' @@ -15,4 +15,4 @@ Pod::Spec.new do |s| 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/RadarSDK"' } s.license = { :type => 'Copyright', :text => 'Copyright (c) 2016 Radar Labs, Inc. All rights reserved.' } -end +end \ No newline at end of file diff --git a/RadarSDK/RadarSDK.framework/Versions/A/Headers/Radar.h b/RadarSDK/RadarSDK.framework/Versions/A/Headers/Radar.h index b4c18c939..381cf6eb5 100644 --- a/RadarSDK/RadarSDK.framework/Versions/A/Headers/Radar.h +++ b/RadarSDK/RadarSDK.framework/Versions/A/Headers/Radar.h @@ -7,16 +7,23 @@ #import #import +#import "RadarDelegate.h" @interface Radar : NSObject /** @abstract Initializes the Radar SDK. @warning You must call this method in application:didFinishLaunchingWithOptions: and pass your publishable API key. - @param key Publishable API key (required) + @param key Your publishable API key. **/ + (void)initWithKey:(NSString * _Nonnull)publishableKey; +/** + @abstract Sets a delegate for the client-side delivery of events. Note that events can also be delivered server-side via webhooks. + @param delegate A delegate for event delivery. + **/ ++ (void)setDelegate:(id _Nonnull)delegate; + /** @abstract Returns the app's location authorization status. @return A value indicating the app's location authorization status. @@ -35,16 +42,16 @@ /** @abstract Tracks the user's location once in the foreground. - @param userId Unique ID for the user (required) - @param description Description for the user (optional) + @param userId The external unique ID for the user in your database. + @param description An optional description for the user. @warning Before calling this method, the user's location authorization status must be kCLAuthorizationStatusAuthorizedWhenInUse or kCLAuthorizationStatusAuthorizedAlways. **/ + (void)trackOnceWithUserId:(NSString * _Nonnull)userId description:(NSString * _Nullable)description; /** @abstract Starts tracking the user's location in the background. - @param userId Unique ID for the user (required) - @param description Description for the user (optional) + @param userId The external unique ID for the user in your database. + @param description An optional description for the user. @warning Before calling this method, the user's location authorization status must be kCLAuthorizationStatusAuthorizedAlways. **/ + (void)startTrackingWithUserId:(NSString * _Nonnull)userId description:(NSString * _Nullable)description; diff --git a/RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarSDK.h b/RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarSDK.h index 03cf8043a..d72badbc9 100644 --- a/RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarSDK.h +++ b/RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarSDK.h @@ -8,3 +8,7 @@ #import #import +#import +#import +#import +#import diff --git a/RadarSDK/RadarSDK.framework/Versions/A/RadarSDK b/RadarSDK/RadarSDK.framework/Versions/A/RadarSDK index 370e6f0cb..4d0d719f2 100644 Binary files a/RadarSDK/RadarSDK.framework/Versions/A/RadarSDK and b/RadarSDK/RadarSDK.framework/Versions/A/RadarSDK differ