mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Example:
<sparkle:informationalUpdate>
<sparkle:version>1.5.0</sparkle:version>
<sparkle:version>1.5.1</sparkle:version>
</sparkle:informationalUpdate>
Means that updating only from versions 1.5.0 and 1.5.1 are shown an informational update (provided there is an info link).
<sparkle:informationalUpdate></sparkle:informationalUpdate>
Means that updating from any version gets an informational update (provided there is an info link).
No presence of this new element falls back to current behavior in Sparkle where an informational update is shown if an enclosure is missing but an info link is provided.
29 lines
983 B
Objective-C
29 lines
983 B
Objective-C
//
|
|
// SPUAppcastItemState.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 5/31/21.
|
|
// Copyright © 2021 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Appcast Item state that contains properties that depends on a host
|
|
@interface SPUAppcastItemState : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithMajorUpgrade:(BOOL)majorUpgrade criticalUpdate:(BOOL)criticalUpdate informationalUpdate:(BOOL)informationalUpdate minimumOperatingSystemVersionIsOK:(BOOL)minimumOperatingSystemVersionIsOK maximumOperatingSystemVersionIsOK:(BOOL)maximumOperatingSystemVersionIsOK;
|
|
|
|
@property (nonatomic, readonly) BOOL majorUpgrade;
|
|
@property (nonatomic, readonly) BOOL criticalUpdate;
|
|
@property (nonatomic, readonly) BOOL informationalUpdate;
|
|
@property (nonatomic, readonly) BOOL minimumOperatingSystemVersionIsOK;
|
|
@property (nonatomic, readonly) BOOL maximumOperatingSystemVersionIsOK;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|