Skip to content

Commit

Permalink
v2.1.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
damoclarke committed Jan 29, 2019
1 parent ab9c552 commit dfa2023
Show file tree
Hide file tree
Showing 14 changed files with 264 additions and 140 deletions.
10 changes: 4 additions & 6 deletions BlueCatsSDK.podspec
@@ -1,20 +1,18 @@
Pod::Spec.new do |s|
s.name = 'BlueCatsSDK'
s.version = '2.0.3'
s.version = '2.1.0'
s.license = {
:type => 'Commercial',
:text => <<-LICENSE
All text and design is copyright © 2013-2017 BlueCats Australia Pty Ltd.
All text and design is copyright © 2013-2019 BlueCats Australia Pty Ltd.
All rights reserved.
https://bluecats.com/tos/
LICENSE
}
s.summary = 'BlueCatsSDK for micro-location.'
s.homepage = 'http://www.bluecats.com'
s.authors = { 'BlueCats' => 'theteam@bluecats.com' }
s.source = { :git => 'https://github.com/bluecats/bluecats-ios-sdk.git', :tag => '2.0.3' }
s.source = { :http => 'https://downloads.apps.bluecats.com/sdks/ios/bluecats-ios-sdk-2.1.0.zip'}
s.platform = :ios, '8.0'
s.public_header_files = 'Headers/*.h'
s.source_files = ['Headers/*.h']
Expand All @@ -24,4 +22,4 @@ Pod::Spec.new do |s|
s.frameworks = 'SystemConfiguration', 'CoreBluetooth', 'MobileCoreServices', 'CoreGraphics', 'CoreLocation', 'AdSupport', 'CoreData'

s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/BlueCatsSDK/"', 'OTHER_LDFLAGS' => '$(inherited) "-ObjC"'}
end
end
16 changes: 0 additions & 16 deletions Headers/BCBeacon+Capabilities.h

This file was deleted.

23 changes: 23 additions & 0 deletions Headers/BCBeacon+Features.h
@@ -0,0 +1,23 @@
//
// BCBeacon+Features.m
// BlueCatsSDK
//
// Created by Cody Singleton on 4/13/15.
// Copyright (c) 2015 BlueCats. All rights reserved.
//

#import "BCBeacon.h"

@interface BCBeacon (Features)

- (BOOL)supportsTargetSpeedChange;
- (BOOL)supportsTemperatureData;
- (BOOL)supportsTwoWayDataTransfer;
- (BOOL)supportsLegacyBLEFirmwareUpdate;
- (BOOL)supportsUnencryptedBLEFirmwareUpdate;
- (BOOL)supportsAES128CMACBLEFirmwareUpdate;
- (BOOL)supportsLegacyBLESettingsUpdate;
- (BOOL)supportsUnencryptedBLESettingsUpdate;
- (BOOL)supportsAES128CMACBLESettingsUpdate;

@end
62 changes: 32 additions & 30 deletions Headers/BCBeacon.h
Expand Up @@ -8,8 +8,11 @@

#import "BCJSONModel.h"
#import "BCDefinitions.h"
#import "BCMeasurement.h"

@class BCMapPoint, BCBatteryStatus, BCEddystone, BCSite, BCTemperatureData, BCBeaconLoudness, BCBeaconMode, BCTargetSpeed, BCBeaconRegion;
@class BCMapPoint, BCBatteryStatus, BCEddystone, BCSite, BCBeaconLoudness, BCBeaconMode, BCTargetSpeed, BCBeaconRegion;

@protocol BCBeaconDelegate;

///The `BCBeacon` class defines an object that represents a beacon.
@interface BCBeacon : BCJSONModel <NSCopying>
Expand All @@ -28,6 +31,10 @@
@property (nonatomic, copy) NSString *wireframeURLString;
///@name iBeacon Properties


// Identity properties
@property (nonatomic, copy) NSString *bluetoothAddress;

///The Proximity UUID of the beacon.
@property (nonatomic, copy) NSString *proximityUUIDString;
///The major value of the beacon.
Expand All @@ -39,7 +46,7 @@

///The Eddystone properties of the beacon such as namespace and URL.
@property (nonatomic, copy) BCEddystone *eddystone;
@property (nonatomic, copy) NSNumber *uptime;
//@property (nonatomic, copy) NSNumber *uptime;

///@name Proximity Properties
@property (nonatomic, assign) double accuracy;
Expand All @@ -65,6 +72,7 @@

///The current firmware version of the beacon
@property (nonatomic, copy) NSString *firmwareVersion;
@property (nonatomic, copy) NSString *firmwareUID;

///@name Context Properties

Expand All @@ -90,48 +98,25 @@
@property (nonatomic, copy) NSString *siteID;
@property (nonatomic, copy) NSString *siteName;

@property(nonatomic, copy) BCTemperatureData * temperatureData;
///@name Raw Beacon Data
@property (nonatomic, copy) NSData *rawMeasurementData;

//
- (BOOL)isNewborn;
- (BOOL)isIBeacon;
- (BOOL)isEddystone;
- (BOOL)isBlueCat;
- (BOOL)isSecure;
- (BOOL)hasIdentifierData;

- (BOOL)hasDiscoveredEddystoneUIDFrame;
- (BOOL)hasDiscoveredEddystoneURLFrame;
- (BOOL)hasDiscoveredEddystoneTelemetryFrame;

- (NSString *)identifierDataString;
- (NSString *)localName;
- (NSString *)cacheIdentifier;



///@name Requesting Data from a Beacon Endpoint
/**
* Issues an asynchronous request for data from a beacon endpoint with the specified response data array and success, status and failure blocks.
*
* @param endpoint Type of beacon endpoint.
* @param requestDataArray Request parameters.
* @param success The block object to be executed when the request operation finishes successfully.
*
* The block has no return value and takes one argument:
*
* `responseDataArray` | The response data array.
*
* @param status The block object to be executed while the operation is completing.
*
* The block has no return value and takes one argument:
*
* `status` | The operation status.
*
* @param failure The block object to be executed when the task finishes unsuccessfully.
*
* The block has no return value and takes one argument:
*
* `error` | The error.
*/

- (void)sendDataRequest:(NSData *)requestData
toBeaconEndpoint:(BCBeaconEndpoint)endpoint
success:(void (^)(NSData *responseData))success
Expand All @@ -144,11 +129,28 @@
status:(void (^)(NSString *status))status
failure:(void (^)(NSError *error))failure;

- (void)sendOpcode:(BCBeaconOpcode)opcode
success:(void (^)(void))success
failure:(void (^)(NSError *error))failure;

- (void)sendOpcode:(BCBeaconOpcode)opcode
withData:(NSData *)data
success:(void (^)(void))success
failure:(void (^)(NSError *error))failure;

- (void)transportDataRequest:(NSData *)requestData
toBeaconEndpoint:(BCBeaconEndpoint)endpoint
success:(void (^)(NSData *responseData))success
status:(void (^)(NSString *status))status
failure:(void (^)(NSError *error))failure;

- (void)updateSettingsOffPlatformWithSettings:(NSDictionary *)settingsForKey
success:(void (^)(void))success
status:(void (^)(NSString *))status
failure:(void (^)(NSError *error))failure;

- (NSArray<BCMeasurement *> *) measurementsOfType:(BCMeasurementType)type;
- (NSArray<NSNumber *> *) availableMeasurementTypes;

@end

1 change: 1 addition & 0 deletions Headers/BCBeaconLoudness.h
Expand Up @@ -15,5 +15,6 @@
@property (nonatomic, copy) NSString *displayName;
@property (nonatomic, assign) NSInteger level;
@property (nonatomic, assign) NSInteger measuredPowerAt1Meter;
@property (nonatomic, assign) NSInteger tiMeasuredPowerAt1Meter;

@end
6 changes: 5 additions & 1 deletion Headers/BCBeaconManager.h
Expand Up @@ -10,7 +10,7 @@
#import <CoreLocation/CoreLocation.h>
#import "BCDefinitions.h"

@class BCSite, BCCategory, BCBeacon, BCBeaconRegion;
@class BCSite, BCCategory, BCBeacon, BCBeaconRegion, BCMeasurement;
@protocol BCBeaconManagerDelegate;

@interface BCBeaconManager : NSObject
Expand Down Expand Up @@ -42,11 +42,15 @@
- (void)beaconManager:(BCBeaconManager *)monitor didRangeIBeacons:(NSArray<BCBeacon *> *)iBeacons;
- (void)beaconManager:(BCBeaconManager *)monitor didRangeEddystoneBeacons:(NSArray<BCBeacon *> *)eddystoneBeacons;
- (void)beaconManager:(BCBeaconManager *)monitor didRangeBeacons:(NSArray <BCBeacon *> *)beacons;
- (void)beaconManager:(BCBeaconManager *)monitor didRangeIdentifierBeacons:(NSArray <BCBeacon *> *)identifierBeacons;
- (void)beaconManager:(BCBeaconManager *)monitor didRangeMeasurementBeacons:(NSArray <BCBeacon *> *)beacons;

- (void)beaconManager:(BCBeaconManager *)monitor didEnterBeacons:(NSArray <BCBeacon *> *)beacons;
- (void)beaconManager:(BCBeaconManager *)monitor didExitBeacons:(NSArray <BCBeacon *> *)beacons;
- (void)beaconManager:(BCBeaconManager *)beaconManager didDetermineState:(BCBeaconState)state forBeacon:(BCBeacon *)beacon;

- (void)beaconManager:(BCBeaconManager *)monitor didDiscoverEddystoneURL:(NSURL *)eddystoneURL;

- (void)beaconManager:(BCBeaconManager *)beaconManager didDiscoverMeasurements:(NSArray<BCMeasurement *> *)measurements forBeacon:(BCBeacon *)beacon;

@end
33 changes: 33 additions & 0 deletions Headers/BCBeaconRegionVisit.h
@@ -0,0 +1,33 @@
//
// BCRegionVisit.h
// BlueCatsSDK
//
// Created by Zach Prager on 10/17/14.
// Copyright (c) 2014 BlueCats. All rights reserved.
//

#import "BCJSONModel.h"
#import <Foundation/Foundation.h>

@class BCManagedBeaconRegionVisit;

@interface BCBeaconRegionVisit : BCJSONModel <NSCopying>

@property (nonatomic, copy) NSString *beaconRegionIdentifier;
@property (nonatomic, copy) NSDate *beganAt;
@property (nonatomic, copy) NSDate *endedAt;
@property (nonatomic, copy) NSString *beaconRegionVisitID;
@property (nonatomic, assign) BOOL appInForeground;

- (id)initWithManagedBeaconRegionVisit:(BCManagedBeaconRegionVisit *)managedBeaconRegionVisit;

+ (void)storedVisitsWithPredicate:(NSPredicate *)predicate
sortDescriptors:(NSArray *)sortDesc
success:(void (^)(NSArray *visits))success
failure:(void (^)(NSError *error))failure;

+ (void)numberOfVisitsWithPredicate:(NSPredicate *)predicate
success:(void (^)(NSUInteger visitCount))success
failure:(void (^)(NSError *error))failure;

@end
8 changes: 4 additions & 4 deletions Headers/BCBeaconVisit.h
Expand Up @@ -21,7 +21,7 @@
///Device SDK version.
@property (nonatomic, copy) NSString *SDKVersion;
///Beacon firmware version.
@property (nonatomic, copy) NSString *firmwareVersion;
@property (nonatomic, copy) NSString *firmwareUID;
///Proximity UUID of the Beacon.
@property (nonatomic, copy) NSString *proximityUUIDString;
///Bluetooth address of the beacon. This is a spoofed value and changes
Expand Down Expand Up @@ -72,8 +72,8 @@
@property (nonatomic, assign) BCProximity cProx;
///The ID of the closest proximity of the device to the beacon.
@property (nonatomic, copy) NSNumber *cProxID;
///The last verification status ID of the beacon during the visit.
@property (nonatomic, copy) NSNumber *verificationStatusID;
/////The last verification status ID of the beacon during the visit.
//@property (nonatomic, copy) NSNumber *verificationStatusID;
///The date the beacon was last ranged.
@property (nonatomic, copy) NSDate *lastRangedAt;
///The date a visit to beacon was last posted.
Expand Down Expand Up @@ -149,4 +149,4 @@
success:(void (^)(NSUInteger visitCount))success
failure:(void (^)(NSError *error))failure;

@end
@end

0 comments on commit dfa2023

Please sign in to comment.