Skip to content

Commit

Permalink
- OSStatus - replaced NSLocalizedString usage with Bundle.main.locali…
Browse files Browse the repository at this point in the history
…zedString, due to incompatibility with the new genstrings

- set version to 1.10.1
- updated using Xcode 11 GM seed 2
  • Loading branch information
KoCMoHaBTa committed Sep 18, 2019
1 parent 0f86a34 commit 662a5a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MHIdentityKit.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = "MHIdentityKit"
s.version = "1.10.0"
s.version = "1.10.1"
s.source = { :git => "https://github.com/KoCMoHaBTa/#{s.name}.git", :tag => "#{s.version}" }
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = "Milen Halachev"
s.summary = "OAuth2 and OpenID connect iOS Protocol Oriented Swift client library."
s.homepage = "https://github.com/KoCMoHaBTa/#{s.name}"

s.swift_version = "5.0"
s.swift_version = "5.1"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "3.0"
Expand Down
4 changes: 4 additions & 0 deletions MHIdentityKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
E6B39C27206BB23700CB1435 /* ClientCredentialsGrantFlowTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientCredentialsGrantFlowTests.swift; sourceTree = "<group>"; };
E6B39C2B206BB24300CB1435 /* ResourceOwnerPasswordCredentialsGrantFlowTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResourceOwnerPasswordCredentialsGrantFlowTests.swift; sourceTree = "<group>"; };
E6B493A11ED350DC00580178 /* MHIdentityKitError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MHIdentityKitError.swift; sourceTree = "<group>"; };
E6C767D32332271100C10BAB /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = "<group>"; };
E6DC216B1F028FEA008D182A /* KeychainIdentityStorage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KeychainIdentityStorage.swift; sourceTree = "<group>"; };
E6DC216D1F0292C9008D182A /* Keychain.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Keychain.swift; sourceTree = "<group>"; };
E6DC21781F0293D9008D182A /* OSStatus.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OSStatus.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -464,6 +465,7 @@
9954AE3B1E9D169700F2A73D = {
isa = PBXGroup;
children = (
E6C767D32332271100C10BAB /* .gitignore */,
E66D60571ED85F590049657F /* README.md */,
E648E8F6217A296F00FC15BA /* LICENSE */,
E648EF9921F8A77F00CC79D6 /* MHIdentityKit.podspec */,
Expand Down Expand Up @@ -1529,6 +1531,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.KoCMoHaBTa.MHIdentityKit;
PRODUCT_NAME = MHIdentityKit;
SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = NO;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -1590,6 +1593,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.KoCMoHaBTa.MHIdentityKit;
PRODUCT_NAME = MHIdentityKit;
SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = NO;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 10.0;
Expand Down
2 changes: 1 addition & 1 deletion MHIdentityKit/Infrastructure/OSStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func OSStatusGetErrorCodeMessage(_ status: OSStatus) -> String {

func OSStatusGetError(_ status: OSStatus) -> Error {

return NSError(domain: NSOSStatusErrorDomain, code: Int(status), userInfo: [NSLocalizedDescriptionKey: NSLocalizedString(OSStatusGetErrorCodeMessage(status), comment: "")])
return NSError(domain: NSOSStatusErrorDomain, code: Int(status), userInfo: [NSLocalizedDescriptionKey: Bundle.main.localizedString(forKey: OSStatusGetErrorCodeMessage(status), value: nil, table: nil)])
}


Expand Down

0 comments on commit 662a5a6

Please sign in to comment.