From 2b5d416dc0543a9a0252a33bb061db2b95ae3958 Mon Sep 17 00:00:00 2001 From: Client Date: Mon, 18 May 2020 18:40:49 +0000 Subject: [PATCH] PubNub SDK v4.13.2 release. --- .gitignore | 7 ---- .pubnub.yml | 32 ++++++++++++++++--- CHANGELOG.md | 11 +++++++ .../project.pbxproj | 4 +-- Framework/PubNub/Info.plist | 6 ++-- Framework/PubNub/PubNub-iOS-Info.plist | 6 ++-- Framework/PubNub/PubNub-tvOS-Info.plist | 6 ++-- Framework/PubNub/PubNub-watchOS-Info.plist | 6 ++-- PubNub.podspec | 2 +- PubNub/Misc/PNConstants.h | 4 +-- .../PNBasePushNotificationsRequest.m | 6 ++-- README.md | 2 +- VERSION | 2 +- 13 files changed, 61 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index 33865f2ac..48c2093f4 100644 --- a/.gitignore +++ b/.gitignore @@ -73,10 +73,3 @@ Icon? ehthumbs.db Thumbs.db .idea/ - -.travis/README.md -.travis/scripts - -deployment_keys -deployment_keys-private -deployment_keys.tar diff --git a/.pubnub.yml b/.pubnub.yml index cfe456ce2..7b9b2f408 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,9 +1,16 @@ --- name: objective-c scm: github.com/pubnub/objective-c -version: "4.13.1" +version: "4.13.2" schema: 1 changelog: + - + changes: + - + text: "Don't create lowercase string when FCM device registration token provided to PubNub notifications API." + type: bug + date: May 18, 20 + version: v4.13.2 - changes: - @@ -973,6 +980,10 @@ features: - PUSH-REMOVE-DEVICE-FROM-CHANNELS - PUSH-LIST-CHANNELS-FROM-DEVICE - PUSH-REMOVE-DEVICE + - PUSH-TYPE-APNS2 + - PUSH-TYPE-APNS + - PUSH-TYPE-FCM + - PUSH-TYPE-MPNS presence: - PRESENCE-HERE-NOW - PRESENCE-WHERE-NOW @@ -985,6 +996,7 @@ features: - PUBLISH-RAW-JSON - PUBLISH-WITH-METADATA - PUBLISH-GET + - PUBLISH-POST - PUBLISH-COMPRESS-MESSAGE - PUBLISH-ASYNC - PUBLISH-FIRE @@ -995,7 +1007,8 @@ features: - STORAGE-INCLUDE-TIMETOKEN - STORAGE-START-END - STORAGE-COUNT - - HISTORY-DELETE + - STORAGE-DELETE-MESSAGES + - STORAGE-FETCH-MESSAGES - STORAGE-MESSAGE-COUNT - STORAGE-HISTORY-WITH-META - STORAGE-FETCH-WITH-META @@ -1011,6 +1024,8 @@ features: - SUBSCRIBE-WILDCARD - SUBSCRIBE-FILTER-EXPRESSION - SUBSCRIBE-PUBLISHER-UUID + - SUBSCRIBE-WITH-USERSTATE + - SUBSCRIBE-PUBSUB-V2 - SUBSCRIBE-MESSAGE-DEDUPE - SUBSCRIBE-SIGNAL-LISTENER - SUBSCRIBE-MEMBERSHIP-LISTENER @@ -1033,10 +1048,16 @@ features: - OBJECTS-DELETE-SPACE - OBJECTS-GET-SPACE - OBJECTS-GET-SPACES - - OBJECTS-GET-MEMBERSHIPS + - OBJECTS-JOIN-SPACES + - OBJECTS-UPDATE-MEMBERSHIPS + - OBJECTS-LEAVE-SPACES - OBJECTS-MANAGE-MEMBERSHIPS - - OBJECTS-GET-MEMBERS + - OBJECTS-GET-MEMBERSHIPS + - OBJECTS-ADD-MEMBERS + - OBJECTS-UPDATE-MEMBERS + - OBJECTS-REMOVE-MEMBERS - OBJECTS-MANAGE-MEMBERS + - OBJECTS-GET-MEMBERS - OBJECTS-FILTERING - OBJECTS-SORTING message-actions: @@ -1045,6 +1066,9 @@ features: - MESSAGE-ACTIONS-REMOVE others: - TELEMETRY + - PN-OTHER-PROCESSING + - QUERY-PARAM + - CREATE-PUSH-PAYLOAD supported-platforms: - version: PubNub Objective-C SDK diff --git a/CHANGELOG.md b/CHANGELOG.md index cefb8d944..7e02ef0bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## [v4.13.2](https://github.com/pubnub/objective-c/releases/tag/v4.13.2) +May 18 2020 + +[Full Changelog](https://github.com/pubnub/objective-c/compare/v4.13.1...v4.13.2) + +#### Modified +- Update `.pubnub.yml` features matrix with missing features. + +#### Fixed +- Don't create lowercase string when FCM device registration token provided to PubNub notifications API. + ## [v4.13.1](https://github.com/pubnub/objective-c/releases/tag/v4.13.1) March 26 2020 diff --git a/Framework/PubNub Framework.xcodeproj/project.pbxproj b/Framework/PubNub Framework.xcodeproj/project.pbxproj index ab86e73fe..4a826a4ab 100644 --- a/Framework/PubNub Framework.xcodeproj/project.pbxproj +++ b/Framework/PubNub Framework.xcodeproj/project.pbxproj @@ -6520,7 +6520,7 @@ GCC_OPTIMIZATION_LEVEL = 0; IPHONEOS_DEPLOYMENT_TARGET = 13.0; PRODUCT_NAME = "Universal Framework"; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; }; name = Debug; }; @@ -6531,7 +6531,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; IPHONEOS_DEPLOYMENT_TARGET = 13.0; PRODUCT_NAME = "Universal Framework"; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; }; name = Release; }; diff --git a/Framework/PubNub/Info.plist b/Framework/PubNub/Info.plist index beeebdec6..ce7d5a145 100644 --- a/Framework/PubNub/Info.plist +++ b/Framework/PubNub/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable PubNub CFBundleGetInfoString - 4.13.1 + 4.13.2 CFBundleIdentifier com.pubnub.pubnub-objc CFBundleInfoDictionaryVersion @@ -17,11 +17,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.13.1 + 4.13.2 CFBundleSignature ???? CFBundleVersion - 4.13.1 + 4.13.2 NSHumanReadableCopyright © 2010 - 2020 PubNub, Inc. NSPrincipalClass diff --git a/Framework/PubNub/PubNub-iOS-Info.plist b/Framework/PubNub/PubNub-iOS-Info.plist index beeebdec6..ce7d5a145 100644 --- a/Framework/PubNub/PubNub-iOS-Info.plist +++ b/Framework/PubNub/PubNub-iOS-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable PubNub CFBundleGetInfoString - 4.13.1 + 4.13.2 CFBundleIdentifier com.pubnub.pubnub-objc CFBundleInfoDictionaryVersion @@ -17,11 +17,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.13.1 + 4.13.2 CFBundleSignature ???? CFBundleVersion - 4.13.1 + 4.13.2 NSHumanReadableCopyright © 2010 - 2020 PubNub, Inc. NSPrincipalClass diff --git a/Framework/PubNub/PubNub-tvOS-Info.plist b/Framework/PubNub/PubNub-tvOS-Info.plist index beeebdec6..ce7d5a145 100644 --- a/Framework/PubNub/PubNub-tvOS-Info.plist +++ b/Framework/PubNub/PubNub-tvOS-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable PubNub CFBundleGetInfoString - 4.13.1 + 4.13.2 CFBundleIdentifier com.pubnub.pubnub-objc CFBundleInfoDictionaryVersion @@ -17,11 +17,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.13.1 + 4.13.2 CFBundleSignature ???? CFBundleVersion - 4.13.1 + 4.13.2 NSHumanReadableCopyright © 2010 - 2020 PubNub, Inc. NSPrincipalClass diff --git a/Framework/PubNub/PubNub-watchOS-Info.plist b/Framework/PubNub/PubNub-watchOS-Info.plist index beeebdec6..ce7d5a145 100644 --- a/Framework/PubNub/PubNub-watchOS-Info.plist +++ b/Framework/PubNub/PubNub-watchOS-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable PubNub CFBundleGetInfoString - 4.13.1 + 4.13.2 CFBundleIdentifier com.pubnub.pubnub-objc CFBundleInfoDictionaryVersion @@ -17,11 +17,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.13.1 + 4.13.2 CFBundleSignature ???? CFBundleVersion - 4.13.1 + 4.13.2 NSHumanReadableCopyright © 2010 - 2020 PubNub, Inc. NSPrincipalClass diff --git a/PubNub.podspec b/PubNub.podspec index f24ec9043..704804055 100644 --- a/PubNub.podspec +++ b/PubNub.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |spec| spec.name = 'PubNub' - spec.version = '4.13.1' + spec.version = '4.13.2' spec.summary = 'The PubNub Real-Time Network. Build real-time apps quickly and scale them globally.' spec.homepage = 'https://github.com/pubnub/objective-c' diff --git a/PubNub/Misc/PNConstants.h b/PubNub/Misc/PNConstants.h index b53906336..a00b9a89e 100644 --- a/PubNub/Misc/PNConstants.h +++ b/PubNub/Misc/PNConstants.h @@ -15,10 +15,10 @@ #pragma mark General information constants // Stores client library version number -static NSString * const kPNLibraryVersion = @"4.13.1"; +static NSString * const kPNLibraryVersion = @"4.13.2"; // Stores information about SDK codebase -static NSString * const kPNCommit = @"91348b8f5e6222c8eb777cad2d53582fc7d813a5"; +static NSString * const kPNCommit = @"256b8ce9aec6e259f0ea3e12d5187e315e9d4316"; /** @brief Stores reference on unique identifier which is used to identify \b PubNub client among other diff --git a/PubNub/Network/Requests/Push Notifications/PNBasePushNotificationsRequest.m b/PubNub/Network/Requests/Push Notifications/PNBasePushNotificationsRequest.m index eb6ca6d15..8ad9a1f3c 100644 --- a/PubNub/Network/Requests/Push Notifications/PNBasePushNotificationsRequest.m +++ b/PubNub/Network/Requests/Push Notifications/PNBasePushNotificationsRequest.m @@ -25,7 +25,7 @@ @interface PNBasePushNotificationsRequest () @property (nonatomic, copy) id pushToken; /** - * @brief One of \b PNPushType fields which specify spervide to manage notifications for device + * @brief One of \b PNPushType fields which specify provider to manage notifications for device * specified with \c pushToken. */ @property (nonatomic, assign) PNPushType pushType; @@ -71,7 +71,7 @@ - (PNRequestParameters *)requestParameters { NSString *tokenType = @"apns"; if (self.pushType == PNAPNSPush || self.pushType == PNAPNS2Push) { - token = [PNData HEXFromDevicePushToken:self.pushToken]; + token = [PNData HEXFromDevicePushToken:self.pushToken].lowercaseString; } if (self.pushType == PNFCMPush) { @@ -88,7 +88,7 @@ - (PNRequestParameters *)requestParameters { [parameters addQueryParameter:topic forFieldName:@"topic"]; } - [parameters addPathComponent:token.lowercaseString forPlaceholder:@"{token}"]; + [parameters addPathComponent:[PNString percentEscapedString:token] forPlaceholder:@"{token}"]; [parameters addQueryParameter:tokenType forFieldName:@"type"]; return parameters; diff --git a/README.md b/README.md index 8d2ab7889..adfce25a2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PubNub 4.13.1 for iOS 9+ +# PubNub 4.13.2 for iOS 9+ [![Twitter](https://img.shields.io/badge/twitter-%40PubNub-blue.svg?style=flat)](https://twitter.com/PubNub) [![Twitter Releases](https://img.shields.io/badge/twitter-%40PubNubRelease-blue.svg?style=flat)](https://twitter.com/PubNubRelease) [![License](https://img.shields.io/github/license/pubnub/objective-c.svg?style=flat)](https://img.shields.io/github/license/pubnub/objective-c.svg) diff --git a/VERSION b/VERSION index 56d2fb548..650edfe9a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.13.1 +4.13.2