Releases: ArtSabintsev/Siren
2.0.0 Release!
What started off as a minor change to address https://github.com/ArtSabintsev/Siren#words-of-caution, turned into a hefty refactor, while still addressing the issue.
The reason for releasing 2.0.0 so soon after releasing 1.0.0 (~6 months) is due to a breaking public API change. Specifically, showAlertAfterCurrentVersionHasBeenReleasedForDays
changed from Int?
to Int
and now has a default value of 1
to avoid a timing issue between the App Store JSON being updated faster than the App Store receiving your updated app binary. This means that, by default, the App Update will appear 24 hours after the value that appears in the JSON to make sure the App Stores has the latest binary. Many users who used the .force
reported experiencing infinite loops. This should be addressed now.
Other updates include:
- The
SirenDelegate
protocol has moved to SirenDelegate.swift - SirenTestHelper.swift now contains the XCTest Helper functions
public
andprivate
enums have had their names and scopes changed. For example:SirenLanguageType
->Siren.LanguageType
SirenAlertType
->Siren.AlertType
I've also made the code more readable, by adding more:
- Error handling
- Debug messages
- Documentation
- Sample Project Improvements
SirenDateExtension + Safety
#134:
- Moved Date-specific code to
SirenDateExtension
. - Removed two remaining force-unwrapped variables.
Update Jazzy Docs and Scope Changes
- Updated Jazzy Docs
- Changed scoping from
public
toexternal
for extensions that were made moments ago in v1.2.3 (from #131)
Split Siren Into Multiple Files
- #131: Created a few files for and put the Siren-specific extensions in them (versus having them all in Siren.swift).
Fixed Carthage Support
Broke Carthage support in 1.2.1. It's fixed now.
Improved Swift PM Support
Siren now properly work with Swift PM.
Big Changes
- Deprecated
sharedInstance
in favor ofshared
- Updated Inline Comments
- Added Jazzy Docs
- Added SwiftLint
Multiple Alert Bugfix + More
Added Norwegian Localization and Cache Policy
- Norwegian Localization by @ChrisixFlash in #106
- Cache Policy Change on URLSession by @xedla in #107
Indonesian and Finnish Localization
- Added Indonesian and Finnish Localizations thanks to @ChrisixFlash in #103