Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Merge 0096212 into 9237551
Browse files Browse the repository at this point in the history
  • Loading branch information
AnanthaKrish committed May 13, 2020
2 parents 9237551 + 0096212 commit 3e7855e
Show file tree
Hide file tree
Showing 13 changed files with 510 additions and 1,958 deletions.
1 change: 1 addition & 0 deletions .jazzy.yaml
@@ -1,6 +1,7 @@
module: BMSPush
author: IBM
github_url: https://github.com/ibm-bluemix-mobile-services/bms-clientsdk-swift-push
xcodebuild_arguments: ["-workspace","BMSPush.xcworkspace","-scheme","BMSPush","-sdk","iphonesimulator"]

skip_undocumented: true
clean: true
Expand Down
2 changes: 1 addition & 1 deletion BMSPush.podspec
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.name = 'BMSPush'

s.version = '3.5.0'
s.version = '3.6.0'

s.summary = 'Swift client side Push SDK for IBM Bluemix Push notifications services'
s.homepage = 'https://github.com/ibm-bluemix-mobile-services/bms-clientsdk-swift-push'
Expand Down
271 changes: 84 additions & 187 deletions README.md

Large diffs are not rendered by default.

22 changes: 0 additions & 22 deletions Source/BMSConstants.swift
Expand Up @@ -15,10 +15,6 @@ internal var DUMP_TRACE:Bool = true

internal let QUERY_PARAM_SUBZONE = "="

internal let STAGE1 = "stage1"

internal let BLUEMIX_DOMAIN = "bluemix.net"

internal let IMFPUSH_ACTION_DELETE = "action=delete"

internal let IMFPUSH_CONTENT_TYPE_JSON = "application/json; charset = UTF-8"
Expand Down Expand Up @@ -65,26 +61,8 @@ internal let IMFPUSH_RECEIVED = "received"

internal let IMFPUSH_SEEN = "seen"

internal let IMFPUSH_ACKNOWLEDGED = "acknowledged"

internal let IMFPUSH_APP_MANAGER = "IMFPushAppManager"

internal let IMFPUSH_CLIENT = "IMFPushClient"

internal let IMFPUSH_DISPLAYNAME = "displayName"

internal let IMFPUSH_X_REWRITE_DOMAIN = "X-REWRITE-DOMAIN"

internal let IMFPUSH_PUSH_WORKS_SERVER_CONTEXT = "imfpush/v1/apps"

internal let KEY_METADATA_TYPE = "$type";

internal let TAG_CATEGORY_EVENT = "event";

internal let KEY_METADATA_CATEGORY = "$category";

internal let KEY_METADATA_USER_METADATA = "$userMetadata";

internal let IMFPUSH_STATUS = "status"

internal let BMSPUSH_CLIENT_SECRET = "clientSecret"
Expand Down
1,236 changes: 116 additions & 1,120 deletions Source/BMSPushClient.swift

Large diffs are not rendered by default.

53 changes: 0 additions & 53 deletions Source/BMSPushClientOptions.swift
Expand Up @@ -86,57 +86,4 @@ public class BMSPushClientOptions : NSObject {
}
}

#else


/**
This class is to set options for push notifications.
*/
public class BMSPushClientOptions : NSObject {

// MARK: Properties (Public)

/// Category value - An array of Push categories.
var category: [BMSPushNotificationActionCategory]

/// Device for registrations. This is a userinput value. If not given the default deviceId will be used.
var deviceId: String

// MARK: Initializers

/**
Initialze Method.
*/
public override init () {
self.category = []
self.deviceId = ""
}
/**
Initialze Method - Deprecated.
- parameter categoryName: An array of `BMSPushNotificationActionCategory`.
*/
@available(*, deprecated, message="This method was deprecated , please use init(categoryName:_ withDeviceId:_ )")
public init (categoryName category: [BMSPushNotificationActionCategory]) {
self.category = category
self.deviceId = ""
}

/**
set DeviceId Method
- parameter withDeviceId: (Optional) The DeviceId for applications.
*/
public func setDeviceIdValue(deviceId:String){
self.deviceId = deviceId
}

/**
set Interactive Notification Categories Method
- parameter categoryName: An array of `BMSPushNotificationActionCategory`.
*/
public func setInteractiveNotificationCategories(categoryName category: [BMSPushNotificationActionCategory]){
self.category = category
}
}
#endif

0 comments on commit 3e7855e

Please sign in to comment.