Skip to content

Commit cb76038

Browse files
committed
Releasing SDK v1.4
1 parent 7868afb commit cb76038

File tree

31 files changed

+184
-72
lines changed

31 files changed

+184
-72
lines changed
-366 Bytes
Binary file not shown.
6.99 MB
Binary file not shown.

BeaconstacSDK/Beaconstac.framework/Versions/1.3.2/Headers/Beaconstac.h renamed to BeaconstacSDK/Beaconstac.framework/Versions/1.4/Headers/Beaconstac.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
#import "MSIdentity.h"
3434
#import "MSNotification.h"
3535
#import "MSWebhook.h"
36+
#import "MSCustomAction.h"
37+
#import "MSPopupAction.h"
38+
#import "MSWebpageAction.h"
39+
#import "MSConstants.h"
40+
#import "MSPlace.h"
41+
#import "MSRule.h"
3642

3743
@class Beaconstac;
3844

@@ -172,7 +178,7 @@ typedef NS_ENUM (NSUInteger, MSUIAction){
172178
* Use this to control how sensitive your app is to multiple beacons in a given space.
173179
* Increasing affinity values (Low -> High) will cause your app to lock harder
174180
* onto the closest beacon and switch to a new one it sees only when it is sufficiently close
175-
* to the new one. Random sighting of another "far away" beacon will not be ignored.
181+
* to the new one. Random sighting of another "far away" beacon will be ignored.
176182
*
177183
* @see MSBeaconAffinity in MSBeaconManager for allowed values
178184
*/
@@ -229,6 +235,7 @@ typedef NS_ENUM (NSUInteger, MSUIAction){
229235
* @param identifier A string which identifies your beacons. It should be of the format com.<company_name>.<app_name>
230236
* @param options A set of key-value pairs specifying criteria to filter the detected beacons. Possible filter options include key
231237
* "mybeacons": accepts a boolean value. If set to True, only the beacons in your account are ranged.
238+
* Use: @{@"mybeacons":@YES}
232239
*/
233240
- (void)startRangingBeaconsWithUUIDString:(NSString*)uuid beaconIdentifier:(NSString*)identifier filterOptions:(NSDictionary*)options;
234241

BeaconstacSDK/Beaconstac.framework/Versions/1.3.2/Headers/MSAction.h renamed to BeaconstacSDK/Beaconstac.framework/Versions/1.4/Headers/MSAction.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// THE SOFTWARE.
2222

2323
#import <Foundation/Foundation.h>
24-
#import "MSCard.h"
2524

2625
/**
2726
* MSActionType describes the type of action triggered from a rule
@@ -52,7 +51,7 @@ typedef NS_ENUM (NSUInteger, MSActionType) {
5251
/**
5352
* Represents the name of the action
5453
*/
55-
@property (nonatomic, strong) NSString *name;
54+
@property (nonatomic, strong) NSString *actionName;
5655

5756
/**
5857
* Represents the type of the action. This can have values:
@@ -62,9 +61,12 @@ typedef NS_ENUM (NSUInteger, MSActionType) {
6261

6362
/**
6463
* Represents the message of the action. This can have
65-
* text, url, JSON, MSCard or MSNotification depending on the type of action
64+
* text, url, JSON, MSCard, MSWebhook or MSNotification depending on the type of action
65+
*
66+
* This property is deprecated starting v 1.3.3, Use MSWebhook, MSCard, MSNotification, MSWebpageAction, MSCustomAction, MSPopupAction
67+
* directly which inherit from MSAction now
6668
*/
67-
@property (nonatomic, strong) id message;
69+
@property (nonatomic, weak) id message;
6870

6971
/**
7072
* Represents the rule ID associated to the action

BeaconstacSDK/Beaconstac.framework/Versions/1.3.2/Headers/MSBeacon.h renamed to BeaconstacSDK/Beaconstac.framework/Versions/1.4/Headers/MSBeacon.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
*/
6868
@property (nonatomic) int stale;
6969

70+
/**
71+
* Server data corresponding to the beacon. This includes parameters like name, TxPower,
72+
* Advertising interval, Update time etc.
73+
*
74+
* Note: This will only be available if filterOptions in startRangingBeaconsWithUUIDString:beaconIdentifier:filterOptions
75+
* include @{@"mybeacons":@YES} for ranging the beacons added in user's account
76+
*/
77+
@property (nonatomic, strong) NSDictionary *serverData;
78+
7079
/**
7180
* The designated initializer for MSBeacon class.
7281
*
File renamed without changes.

BeaconstacSDK/Beaconstac.framework/Versions/1.3.2/Headers/MSCard.h renamed to BeaconstacSDK/Beaconstac.framework/Versions/1.4/Headers/MSCard.h

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
#import <Foundation/Foundation.h>
24-
25-
@class MSAction;
24+
#import "MSAction.h"
2625

2726
/**
2827
* MSCardType describes the different types of cards that can be created and used in Beaconstac
@@ -35,7 +34,7 @@ typedef NS_ENUM (NSUInteger, MSCardType) {
3534
MSCardTypePage = 4
3635
};
3736

38-
@interface MSCard : NSObject <NSCopying, NSSecureCoding>
37+
@interface MSCard : MSAction <NSCopying, NSSecureCoding>
3938

4039
/**
4140
* Represents the card ID of the card
@@ -60,8 +59,11 @@ typedef NS_ENUM (NSUInteger, MSCardType) {
6059
/**
6160
* Represents the type of the card
6261
* @see MSCardType
62+
*
63+
* Note: This property was formerly named 'type'. Please change all implementations to use 'cardType' instead
64+
* Starting v1.3.3, the 'type' property inherits from @see MSAction and refers to action type.
6365
*/
64-
@property (nonatomic) MSCardType type;
66+
@property (nonatomic) MSCardType cardType;
6567

6668
/**
6769
* Represents an array of MSMedia object
@@ -74,16 +76,6 @@ typedef NS_ENUM (NSUInteger, MSCardType) {
7476
*/
7577
@property (nonatomic, strong) NSDictionary *cardMeta;
7678

77-
/**
78-
* Represents the date when the card was created
79-
*/
80-
@property (nonatomic, strong) NSDate *created;
81-
82-
/**
83-
* Represents the date when the card was last modified
84-
*/
85-
@property (nonatomic, strong) NSDate *modified;
86-
8779
/**
8880
* Represents an array of tags associated with the card
8981
*/

BeaconstacSDK/Beaconstac.framework/Versions/1.3.2/Headers/MSConstants.h renamed to BeaconstacSDK/Beaconstac.framework/Versions/1.4/Headers/MSConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/**
3939
* SDK properties
4040
*/
41-
#define SDK_VERSION @"1.3.2"
41+
#define SDK_VERSION [[NSBundle bundleWithIdentifier:@"com.mobstac.BeaconstacData"] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]
4242
#define EVENT_LOG_VERSION @1.1
4343

4444
/**
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// MSCustomAction.h
3+
// Beaconstac
4+
//
5+
// Copyright (c) 2016 Mobstac. All rights reserved.
6+
//
7+
// All information contained herein is, and remains the property of MobStac Inc.
8+
// The intellectual and technical concepts contained herein are proprietary to
9+
// MobStac Inc and may be covered by U.S. and Foreign Patents, patents in process,
10+
// and are protected by trade secret or copyright law. This product can not be
11+
// redistributed in full or parts without permission from MobStac Inc. Dissemination
12+
// of this information or reproduction of this material is strictly forbidden unless
13+
// prior written permission is obtained from MobStac Inc.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
// THE SOFTWARE.
22+
//
23+
24+
#import <Beaconstac/Beaconstac.h>
25+
26+
@interface MSCustomAction : MSAction
27+
28+
/**
29+
* Represents the key-value dictionary entered from the Admin Console
30+
*/
31+
@property (nonatomic, strong) NSDictionary *json;
32+
33+
@end
File renamed without changes.

0 commit comments

Comments
 (0)