forked from sparkle-project/Sparkle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite
SPUResumableUpdate
protocol and SPUInformationalUpdate
cl…
…ass to Swift
- Loading branch information
Showing
6 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// SPUInformationalUpdate.swift | ||
// Sparkle | ||
// | ||
// Created by Jozef Izso on 13.10.2023. | ||
// Copyright © 2023 Cisco Systems, Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public class SPUInformationalUpdate: NSObject, SPUResumableUpdate { | ||
public let updateItem: SUAppcastItem | ||
public let secondaryUpdateItem: SUAppcastItem? | ||
|
||
@objc | ||
public init(appcastItem updateItem: SUAppcastItem, secondaryAppcastItem secondaryUpdateItem: SUAppcastItem?) { | ||
self.updateItem = updateItem | ||
self.secondaryUpdateItem = secondaryUpdateItem | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// SPUResumableUpdate.swift | ||
// Sparkle | ||
// | ||
// Created by Jozef Izso on 13.10.2023. | ||
// Copyright © 2023 Sparkle Project. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
@objc | ||
public protocol SPUResumableUpdate { | ||
var updateItem: SUAppcastItem { get } | ||
var secondaryUpdateItem: SUAppcastItem? { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Sparkle-BridgingHeader.h | ||
// Sparkle | ||
// | ||
// Created by Jozef Izso on 13.10.2023. | ||
// Copyright © 2023 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#ifndef Sparkle_BridgingHeader_h | ||
#define Sparkle_BridgingHeader_h | ||
|
||
#import "Sparkle/SPUResumableUpdate.h" | ||
|
||
|
||
#endif /* Sparkle_BridgingHeader_h */ |