Skip to content

Commit

Permalink
use 5.12 client sdk; bump version; add forgotten new error code (... …
Browse files Browse the repository at this point in the history
…so version bump should probably have been a minor upgrade, not just patch)
  • Loading branch information
gammelby committed Jan 5, 2023
1 parent 9691c16 commit 27cdc63
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [3.0.4] - 2023-01-05

### Added

* Added PORT_IN_USE error code.

### Changed

* Update underlying Nabto Edge Client SDK to 5.12.0.

## [3.0.3] - 2022-09-14

### Changed
Expand Down
5 changes: 5 additions & 0 deletions NabtoEdgeClient/NabtoEdgeClient/NabtoEdgeClientError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ public indirect enum NabtoEdgeClientError: Error, Equatable {
*/
case TOO_MANY_WRONG_PASSWORD_ATTEMPTS

/**
* Requested TCP tunnel port is already in use by another process on the system.
*/
case PORT_IN_USE

/**
* Something unspecified failed.
*/
Expand Down
1 change: 1 addition & 0 deletions NabtoEdgeClient/NabtoEdgeClient/impl/Helper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ internal class Helper {
case NABTO_CLIENT_EC_UNKNOWN_SERVER_KEY: return NabtoEdgeClientError.UNKNOWN_SERVER_KEY
case NABTO_CLIENT_EC_UNKNOWN: return NabtoEdgeClientError.API_UNKNOWN_ERROR
case NABTO_CLIENT_EC_TOO_MANY_REQUESTS: return NabtoEdgeClientError.TOO_MANY_WRONG_PASSWORD_ATTEMPTS
case NABTO_CLIENT_EC_PORT_IN_USE: return NabtoEdgeClientError.PORT_IN_USE

default:
NSLog("Error: UNEXPECTED_API_STATUS \(status): \(apiStatusToString(status))")
Expand Down
2 changes: 1 addition & 1 deletion NabtoEdgeClient/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use_frameworks!
platform :ios, '10.2'

target 'NabtoEdgeClient' do
pod 'NabtoEdgeClientApiFW', '5.11.0'
pod 'NabtoEdgeClientApiFW', '5.12.0'
end

target 'HostForTests' do
Expand Down
2 changes: 1 addition & 1 deletion NabtoEdgeClientSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'NabtoEdgeClientSwift'
s.version = "3.0.3"
s.version = "3.0.4"
s.summary = "Nabto 5/Edge Client for Swift"
s.description = <<-DESC
This pod installs the high level Nabto Edge Client for Swift: It wraps the most common functionality of the low-level ANSI C Nabto Edge Client SDK (provided in the NabtoEdgeClientApi pod).
Expand Down

0 comments on commit 27cdc63

Please sign in to comment.