* Scoping changes to most utility classes * Updated docs * Continued code clean up and file renaming * Metadata cleanup * Updated docs * Updated Siren.podspec to 4.0.0 * Massive overhaul of the localization logic * Fixed tests * Updated docs * Minor cleanup * Added new Configuration type but have not hooked it up * Non-working commit for Configuration * Continued configuration by thinning down Siren's main interface * Removed singleton and improved window presenting logic * Removed dead code. Confined utility methods to proper locations * Updated some documentation * Rebuilt version checking and alert presentation logic, however skip alert presentation logic is broken * Fixed skip version logic * Added default settings * Removed delegates and added completion handler * Changed initialization scheme * Minor changes to initialization * Fixed tests and error logic * Minor changes to sample project * Renamed all managers * Improved Errors * Continued cleanup * Mor cleanup * Continued cleanup * Removed Log struct as it is no longer needed. Removed unused helpers. Merged remaining helpers into mainline Siren.swift file * Began adding more documentation * Renamed alertManager to presentationManager * Removed redundant comments * Changed alphabetical ordering * Added some more built in rules * minor improvemeent to VersionCheckFrequency * Code cleanup * Added some missing errors * More robust error handling * Added more rules * Changed start to wail * Added deviceLanguageLocalization * Added documentation to BundleExtension * Added DateExtension documentation * Added UIAlertController extension documentation * Added UserDefaultsExtension documentation * Added APIManager documentation * Added PresentationManager documentation and began adding RulesManager documentation * Added AlertAction documentation * Added Results.swift documentation * Added Rules.swift documentation * Added documentation to VersionParser and SirenViewController * Some metadata cleanup * Lots more documentation * Moved networking code in APIManagr.swift * Moved lots of logic out of siren and into PresentationManager and Localization * More abstraction * Cleaned up alert presentation * More cleanup * minor changres * App now has less properties, improved uni-directional flow, and tests that account for that * Continued code modification * More documentation changes * More scope changes * More scope changes * More documentation * Fixed app store version null bug * More changes * Reorganized code in presentationmanager * Reorganized code in presentationmanager * Improved cache handling * Added a lot more documentation and removed some unnecessary optionality * Continued adding documentation * Fixed bug with layering of alert. Tons more documentation * Finished documenting all functions and properties * Updated jazzy docs * Added missing documentation * Removed superfluous files * Fixed bugs around prompt frequency. Updated code and documentation around prompt frequency * Reached 100% of private function and beyond documentation * Fixed bug arond presenting localized strings vs custom strings * Added lots of examples to AppDelegate. Updated README. Removed attributed string settings since they never worked * Documentation updated. Added tons of examples to AppDelegate.swift with comments * Updated README * Updated README.md * Updated README.md * Updated README.md * Removed random fragment in readme * Updated README * More README updates * More README updates * Updated README * More metadata updates * Update metadata * Regenerated jazzy docs
22 lines
718 B
Swift
22 lines
718 B
Swift
//
|
|
// AlertAction.swift
|
|
// Siren
|
|
//
|
|
// Created by Arthur Sabintsev on 12/1/18.
|
|
// Copyright © 2018 Sabintsev iOS Projects. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// The `UIAlertController` button that was pressed upon being presented an update alert.
|
|
public enum AlertAction {
|
|
/// The user clicked on the `Update` option, which took them to the app's App Store page.
|
|
case appStore
|
|
/// The user clicked on the `Next Time` option, which dismissed the alert.
|
|
case nextTime
|
|
/// The user clicked on the `Skip this version` option, which dismissed the alert.
|
|
case skip
|
|
/// (Default) The user never chose an option. This is returned when an error is thrown by Siren.
|
|
case unknown
|
|
}
|