diff --git a/CHANGELOG.md b/CHANGELOG.md index ec8c7a31..5111b3cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/pusher/push-notifications-swift/compare/3.0.4...HEAD) +## [Unreleased](https://github.com/pusher/push-notifications-swift/compare/4.0.0...HEAD) + +## [4.0.0](https://github.com/pusher/push-notifications-swift/compare/3.0.4...4.0.0) + +## Removed + +- `MD5(_ input:)` method from the public API +- `DeviceStateStore`, `InstanceDeviceStateStore`, `JustDont`, `Metadata` and `WithInfiniteExpBackoff` types from the public API +**NOTE:** These types and methods were included in the public API by mistake, their removal should have no effect on end users or require any code changes ## [3.0.4](https://github.com/pusher/push-notifications-swift/compare/3.0.3...3.0.4) diff --git a/PushNotifications.podspec b/PushNotifications.podspec index d4a11de6..a6816c8f 100644 --- a/PushNotifications.podspec +++ b/PushNotifications.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'PushNotifications' - s.version = '3.0.4' + s.version = '4.0.0' s.summary = 'PushNotifications SDK' s.homepage = 'https://github.com/pusher/push-notifications-swift' s.license = 'MIT' diff --git a/PushNotifications/PushNotifications.xcodeproj/project.pbxproj b/PushNotifications/PushNotifications.xcodeproj/project.pbxproj index 6b33f49a..d06bd3ef 100644 --- a/PushNotifications/PushNotifications.xcodeproj/project.pbxproj +++ b/PushNotifications/PushNotifications.xcodeproj/project.pbxproj @@ -824,7 +824,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.10; - MARKETING_VERSION = 3.0.4; + MARKETING_VERSION = 4.0.0; PRODUCT_BUNDLE_IDENTIFIER = com.pusher.PushNotifications; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SDKROOT = ""; @@ -852,7 +852,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.10; - MARKETING_VERSION = 3.0.4; + MARKETING_VERSION = 4.0.0; PRODUCT_BUNDLE_IDENTIFIER = com.pusher.PushNotifications; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SDKROOT = ""; diff --git a/PushNotifications/PushNotificationsTests/Info.plist b/PushNotifications/PushNotificationsTests/Info.plist index 3fe9b385..dd63faec 100644 --- a/PushNotifications/PushNotificationsTests/Info.plist +++ b/PushNotifications/PushNotificationsTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 3.0.4 + 4.0.0 CFBundleVersion 1 diff --git a/README.md b/README.md index 758d864a..fb5a6432 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ use_frameworks! # Replace `` with your app's target name. target '' do - pod 'PushNotifications', '~> 3.0.4' + pod 'PushNotifications', '~> 4.0.0' end ``` @@ -97,11 +97,11 @@ To add Pusher Beams as a dependency of your own package use the follwing code: ```swift dependencies: [ - .package(url: "https://github.com/pusher/push-notifications-swift.git", from: "3.0.4") + .package(url: "https://github.com/pusher/push-notifications-swift.git", from: "4.0.0") ] ``` -## Migrating from 2.x.x to 3.x.x +## Migrating from 2.x.x We now require you to start beams before you can use the library, for example to register any interests. This means the following code would no longer work and log an error to the console: diff --git a/Sources/Models/SDK.swift b/Sources/Models/SDK.swift index 46ced190..17fad0df 100644 --- a/Sources/Models/SDK.swift +++ b/Sources/Models/SDK.swift @@ -1,5 +1,5 @@ import Foundation struct SDK { - static let version = "3.0.4" + static let version = "4.0.0" } diff --git a/Tests/Unit/Models/SDKTests.swift b/Tests/Unit/Models/SDKTests.swift index cab0c262..a918ea7d 100644 --- a/Tests/Unit/Models/SDKTests.swift +++ b/Tests/Unit/Models/SDKTests.swift @@ -5,6 +5,6 @@ class SDKTests: XCTestCase { func testVersionModel() { let version = SDK.version XCTAssertNotNil(version) - XCTAssertEqual(version, "3.0.4") + XCTAssertEqual(version, "4.0.0") } }