Skip to content

Commit

Permalink
Release 0.4.1 including #15 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruperez authored Apr 19, 2021
1 parent 43bbc76 commit cdc9836
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Next Version

## 0.4.1

#### Fixed
- `Unwrapped` always return defaultValue after restart app. [#15](https://github.com/alexruperez/SecurePropertyStorage/issues/15) Thanks [@qchenqizhi](https://github.com/qchenqizhi)!

[Commits](https://github.com/alexruperez/SecurePropertyStorage/compare/0.4.0...0.4.1)

## 0.4.0 (**SECURITY UPDATE!**)

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Alex Rupérez
Copyright (c) 2021 Alex Rupérez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 9 additions & 0 deletions Tests/SecurePropertyStorageTests/SingletonTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import XCTest

enum SingletonCodable: String, Codable {
case test
case testAlternative
}

let singletonTagStorage: DelegatedStorage = SingletonStorage(authenticationTag: Data())
Expand Down Expand Up @@ -65,6 +66,14 @@ final class SingletonTests: XCTestCase {
XCTAssertEqual(unwrappedSingletonDefault, "default")
XCTAssertEqual(unwrappedSingletonTagCodable, .test)
XCTAssertEqual(unwrappedSingletonCodable, .test)
unwrappedSingletonTagDefault = "tagDefaultAlternative"
unwrappedSingletonDefault = "defaultAlternative"
unwrappedSingletonTagCodable = .testAlternative
unwrappedSingletonCodable = .testAlternative
XCTAssertEqual(unwrappedSingletonTagDefault, "tagDefaultAlternative")
XCTAssertEqual(unwrappedSingletonDefault, "defaultAlternative")
XCTAssertEqual(unwrappedSingletonTagCodable, .testAlternative)
XCTAssertEqual(unwrappedSingletonCodable, .testAlternative)
}

static var allTests = [
Expand Down
9 changes: 9 additions & 0 deletions Tests/SecurePropertyStorageTests/UserDefaultTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import XCTest

enum UserDefaultsCodable: String, Codable {
case test
case testAlternative
}

let userDefaultsTagStorage = UserDefaultsStorage(authenticationTag: Data())
Expand Down Expand Up @@ -64,6 +65,14 @@ final class UserDefaultTests: XCTestCase {
XCTAssertEqual(unwrappedUserDefaultsDefault, "default")
XCTAssertEqual(unwrappedUserDefaultsTagCodable, .test)
XCTAssertEqual(unwrappedUserDefaultsCodable, .test)
unwrappedUserDefaultsTagDefault = "tagDefaultAlternative"
unwrappedUserDefaultsDefault = "defaultAlternative"
unwrappedUserDefaultsTagCodable = .testAlternative
unwrappedUserDefaultsCodable = .testAlternative
XCTAssertEqual(unwrappedUserDefaultsTagDefault, "tagDefaultAlternative")
XCTAssertEqual(unwrappedUserDefaultsDefault, "defaultAlternative")
XCTAssertEqual(unwrappedUserDefaultsTagCodable, .testAlternative)
XCTAssertEqual(unwrappedUserDefaultsCodable, .testAlternative)
}

func testUserDefaultArray() {
Expand Down

0 comments on commit cdc9836

Please sign in to comment.