Skip to content

Commit

Permalink
Merge pull request #174 from pusher/release/4.0.0
Browse files Browse the repository at this point in the history
v4.0.0
  • Loading branch information
danielrbrowne authored Jul 6, 2021
2 parents c6b143e + cb9c235 commit 0374352
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion PushNotifications.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions PushNotifications/PushNotifications.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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 = "";
Expand Down
2 changes: 1 addition & 1 deletion PushNotifications/PushNotificationsTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.4</string>
<string>4.0.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use_frameworks!

# Replace `<Your Target Name>` with your app's target name.
target '<Your Target Name>' do
pod 'PushNotifications', '~> 3.0.4'
pod 'PushNotifications', '~> 4.0.0'
end
```

Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion Sources/Models/SDK.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

struct SDK {
static let version = "3.0.4"
static let version = "4.0.0"
}
2 changes: 1 addition & 1 deletion Tests/Unit/Models/SDKTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 0374352

Please sign in to comment.