Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
chore(release): bump to 2.12.2
Browse files Browse the repository at this point in the history
catt-stefano committed Sep 20, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3666c3a commit 24d5d60
Showing 8 changed files with 26 additions and 22 deletions.
3 changes: 2 additions & 1 deletion NearITSDK.framework/Headers/NITManager.h
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@ DEPRECATED_ATTRIBUTE DEPRECATED_MSG_ATTRIBUTE("Use setUserDataWithKey(\"MY_KEY\"
// Content
- (void)userNotificationCenter:(UNUserNotificationCenter* _Nonnull)center willPresent:(UNNotification* _Nonnull)notification withCompletionHandler:(void (^_Nonnull)(UNNotificationPresentationOptions options))handler;
- (BOOL)getContentFrom:(UNNotificationResponse* _Nonnull)response completion:(void (^_Nullable)(NITReactionBundle* _Nullable object, NITTrackingInfo * _Nullable trackingInfo, NSError* _Nullable error))completionHandler;
- (BOOL)getContentFromUserInfo:(NSDictionary* _Nonnull)userInfo completion:(void (^_Nullable)(NITReactionBundle* _Nullable object, NITTrackingInfo* _Nullable trackingInfo, NSError* _Nullable error))completionHandler;
- (BOOL)processRecipeWithResponse:(UNNotificationResponse* _Nonnull)response completion:(void (^_Nullable)(NITReactionBundle* _Nullable object, NITTrackingInfo * _Nullable trackingInfo, NSError* _Nullable error))completionHandler
DEPRECATED_ATTRIBUTE DEPRECATED_MSG_ATTRIBUTE("Use getContentFrom");
- (void)couponsWithCompletionHandler:(void (^ _Nullable)(NSArray<NITCoupon*>* _Nullable, NSError* _Nullable))handler;
@@ -86,7 +87,7 @@ DEPRECATED_ATTRIBUTE DEPRECATED_MSG_ATTRIBUTE("Use getContentFrom");
- (BOOL)processRecipeSimpleWithUserInfo:(NSDictionary<NSString*, id> * _Nullable)userInfo;
- (void)recipesWithCompletionHandler:(void (^_Nullable)(NSArray<NITRecipe*>* _Nullable recipes, NSError * _Nullable error))completionHandler;
- (void)processRecipeWithId:(NSString* _Nonnull)recipeId;
- (BOOL)processRecipeWithUserInfo:(NSDictionary<NSString *,id> * _Nonnull)userInfo completion:(void (^_Nullable)(NITReactionBundle* _Nullable object, NITTrackingInfo * _Nullable trackingInfo, NSError* _Nullable error))completionHandler;
- (BOOL)processRecipeWithUserInfo:(NSDictionary<NSString *,id> * _Nonnull)userInfo completion:(void (^_Nullable)(NITReactionBundle* _Nullable object, NITTrackingInfo * _Nullable trackingInfo, NSError* _Nullable error))completionHandler DEPRECATED_ATTRIBUTE DEPRECATED_MSG_ATTRIBUTE("Use getContentFrom");
- (void)refreshConfigWithCompletionHandler:(void (^_Nullable)(NSError * _Nullable error))completionHandler DEPRECATED_ATTRIBUTE;
- (void)sendTrackingWithTrackingInfo:(NITTrackingInfo * _Nullable)trackingInfo event:(NSString* _Nullable)event;
- (void)sendEventWithEvent:(NITEvent* _Nonnull)event completionHandler:(void (^_Nullable)(NSError* _Nullable error))handler;
Binary file modified NearITSDK.framework/Info.plist
Binary file not shown.
Binary file modified NearITSDK.framework/NITEnrollDeviceViewController.nib
Binary file not shown.
Binary file modified NearITSDK.framework/NearITSDK
Binary file not shown.
2 changes: 0 additions & 2 deletions NearITSDK.framework/PrivateHeaders/NITUtils.h
Original file line number Diff line number Diff line change
@@ -7,15 +7,13 @@
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "NITConstants.h"

@interface NITUtils : NSObject

+ (NSString* _Nonnull)fetchAppIdFromApiKey:(NSString* _Nonnull)apiKey;
+ (NSString* _Nonnull)stringFromRegionEvent:(NITRegionEvent)event;
+ (NSString* _Nonnull)stringTagFromRegionEvent:(NITRegionEvent)event;
+ (NSString* _Nonnull)stringFromBluetoothState:(CBManagerState)state;
+ (NSString* _Nonnull)generateUUID;
+ (NSString* _Nonnull)deviceModel;

2 changes: 1 addition & 1 deletion NearITSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'NearITSDK'
s.version = '2.12.1'
s.version = '2.12.2'
s.summary = 'nearit.com iOS SDK'
s.description = 'nearit.com iOS SDK for Objective-C'

4 changes: 2 additions & 2 deletions NearITSDKSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'NearITSDKSwift'
s.version = '2.12.1'
s.version = '2.12.2'
s.summary = 'nearit.com iOS SDK'
s.description = 'nearit.com iOS SDK for Swift'

@@ -19,7 +19,7 @@ s.ios.deployment_target = '9.0'
s.requires_arc = true
s.source_files = 'NearITSDKSwift/*.{h,swift}'

s.dependency 'NearITSDK', '= 2.12.1'
s.dependency 'NearITSDK', '= 2.12.2'
s.swift_version = '4.2'

end
37 changes: 21 additions & 16 deletions NearITSDKSwift/NearManager.swift
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
}
}

@available(*, deprecated, message: "Use profileId(completionHandler)")
@available(*, deprecated, message: "Use profileId(completionHandler) instead.")
public var profileId: String? {
get {
return manager.profileId()
@@ -83,7 +83,7 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
manager.setDeviceTokenWith(token)
}

@available(*, deprecated, message: "use background fetch feature for optimized data refresh")
@available(*, deprecated, message: "Use background fetch feature for optimized data refresh.")
public func refreshConfig(completionHandler: ((Error?) -> Void)?) {
manager.refreshConfig(completionHandler: completionHandler)
}
@@ -105,17 +105,12 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
@available(iOS 10.0, *)
public func getContentFrom(_ response: UNNotificationResponse, completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
let userInfo = response.notification.request.content.userInfo
return self.processRecipe(userInfo, completion: completion)
return self.getContentFrom(userInfo: userInfo, completion: completion)
}

@available(iOS, introduced: 10.0, deprecated, message: "use getContent instead")
public func processRecipeFrom(_ response: UNNotificationResponse, completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
return getContentFrom(response, completion: completion)
}

public func processRecipe(_ userInfo: [AnyHashable : Any], completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
if let ui = userInfo as? [String : Any] {
return manager.processRecipe(userInfo: ui, completion: { (content, trackingInfo, error) in
public func getContentFrom(userInfo: [AnyHashable: Any], completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
if let _ = userInfo as? [String : Any] {
return manager.getContentFromUserInfo(userInfo, completion: { (content, trackingInfo, error) in
if completion != nil {
completion!(content, trackingInfo, error)
}
@@ -124,21 +119,31 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
return false
}

@available(iOS, introduced: 10.0, deprecated, renamed: "getContent")
public func processRecipeFrom(_ response: UNNotificationResponse, completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
return getContentFrom(response, completion: completion)
}

@available(*, deprecated, renamed: "getContent")
public func processRecipe(_ userInfo: [AnyHashable : Any], completion: ((NITReactionBundle?, NITTrackingInfo?, Error?) -> Void)?) -> Bool {
return self.getContentFrom(userInfo: userInfo, completion: completion)
}

public func sendTracking(_ trackingInfo: NITTrackingInfo?, event: String?) {
manager.sendTracking(with: trackingInfo, event: event)
}

@available(*, deprecated, message: "use setUserData(\"MY_KEY\", value:\"MY_VALUE\")")
@available(*, deprecated, message: "Use setUserData(key:value:) instead.")
public func setUserData(_ key: String, value: String?, completionHandler: ((Error?) -> Void)?) {
manager.setUserDataWithKey(key, value: value, completionHandler: completionHandler)
}

@available(*, deprecated, message: "use setUserData(\"MY_KEY\", value:\"MY_VALUE\")")
@available(*, deprecated, message: "use setUserData(\"MY_KEY\", value:\"MY_VALUE\") for each value")
public func setBatchUserData(_ valuesDictionary : [String : Any], completionHandler: ((Error?) -> Void)?) {
manager.setBatchUserDataWith(valuesDictionary, completionHandler: completionHandler)
}

@available(*, deprecated, message: "use setUserData(\"MY_KEY\", value:\"MY_VALUE\")")
@available(*, deprecated, renamed: "setUserData(key:value:)")
public func setDeferredUserData(_ key: String, value: String?) {
self.setUserData(key, value: value)
}
@@ -173,7 +178,7 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
manager.coupons(completionHandler: completionHandler)
}

@available(*, deprecated, message: "Use resetProfile(completionHandler)")
@available(*, deprecated, message: "Use resetProfile(completionHandler:) instead.")
public func resetProfile() {
manager.resetProfile()
}
@@ -212,7 +217,7 @@ public final class NearManager: NSObject, NITManagerDelegate, NITNotificationUpd
}
}

@available(*, deprecated, message: "Use triggerInAppEvent(key)")
@available(*, deprecated, renamed: "triggerInAppEvent(key:)")
public func processCustomTrigger(_ key: String) {
self.triggerInAppEvent(key)
}

0 comments on commit 24d5d60

Please sign in to comment.