Skip to content

Commit

Permalink
fixed crash between versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vpeschenkov committed Dec 11, 2023
1 parent 18a0621 commit 3f9d5d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,10 @@
### Fixed for any bug fixes.
```

# 1.2.2
### Fixed:
- Fixed crash between versions

# 1.2.1
### Fixed:
- Fixed NSKeyedUnarchiver error unarchiving object with different class that String, Data, URL
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -78,15 +78,15 @@ public func rawObject(forKey defaultName: String) -> Any?
it, simply add the following line to your Podfile:

```ruby
pod 'SecureDefaults', '1.2.1' # Swift 5.0
pod 'SecureDefaults', '1.2.2' # Swift 5.0
```

### [Carthage](https://github.com/Carthage/Carthage)

Add this to `Cartfile`

```ruby
github "vpeschenkov/SecureDefaults" == 1.2.1
github "vpeschenkov/SecureDefaults" == 1.2.2
```

```sh
Expand All @@ -104,7 +104,7 @@ import PackageDescription
let package = Package(
name: "YourProject",
dependencies: [
.package(url: "https://github.com/vpeschenkov/SecureDefaults", "1.2.1")
.package(url: "https://github.com/vpeschenkov/SecureDefaults", "1.2.2")
],
targets: [
.target(name: "YourProject", dependencies: ["SecureDefaults"])
Expand Down
2 changes: 1 addition & 1 deletion SecureDefaults.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SecureDefaults'
s.version = '1.2.1'
s.version = '1.2.2'
s.summary = 'A lightweight wrapper over UserDefaults/NSUserDefaults with an extra AES-256 encryption layer'
s.homepage = 'https://github.com/vpeschenkov/SecureDefaults'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
4 changes: 2 additions & 2 deletions Sources/SecureDefaults/SecureDefaults.swift
Expand Up @@ -36,8 +36,8 @@ import CommonCrypto
public class SecureDefaults: UserDefaults {

internal enum Keys {
static let AESIV = "SecureDefaults.AESIV"
static let AESKey = "SecureDefaults.AESKey"
static let AESIV = "SecureDefaults.v1.2.2.AESIV"
static let AESKey = "SecureDefaults.v1.2.2.AESKey"
}

/** Use this instead of `NSUserDefaults.standard` */
Expand Down

0 comments on commit 3f9d5d1

Please sign in to comment.