mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Put SUInstaller protocol into its own file
This commit is contained in:
1 parent
25b451b4c2
commit
2a277c24b5
9 files changed
+35
-15
No files matched your search
@@ -731,6 +731,7 @@
|
||||
72A450511C69A68900D67EEA /* SUUpdatePermissionPromptResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdatePermissionPromptResult.h; sourceTree = "<group>"; };
|
||||
72A450521C69A68900D67EEA /* SUUpdatePermissionPromptResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdatePermissionPromptResult.m; sourceTree = "<group>"; };
|
||||
72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = "<group>"; };
|
||||
72A6F97D1C94A5C2005F404C /* SUInstallerProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUInstallerProtocol.h; path = Autoupdate/SUInstallerProtocol.h; sourceTree = "<group>"; };
|
||||
72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = SparkleTestCodeSignApp.tar.gz; sourceTree = "<group>"; };
|
||||
72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = SparkleTestCodeSignApp.tar; sourceTree = "<group>"; };
|
||||
72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.tar.bz2; sourceTree = "<group>"; };
|
||||
@@ -1111,6 +1112,7 @@
|
||||
children = (
|
||||
7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */,
|
||||
7275F9C01B5F1F2900B1D19E /* SUFileManager.m */,
|
||||
72A6F97D1C94A5C2005F404C /* SUInstallerProtocol.h */,
|
||||
618FA4FF0DAE88B40026945C /* SUInstaller.h */,
|
||||
618FA5000DAE88B40026945C /* SUInstaller.m */,
|
||||
618FA5030DAE8AB80026945C /* SUPlainInstaller.h */,
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// SUInstallerProtocol.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 3/12/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol SUVersionComparison;
|
||||
@class SUHost;
|
||||
|
||||
@protocol SUInstaller <NSObject>
|
||||
|
||||
- (instancetype)initWithHost:(SUHost *)host sourcePath:(NSString *)sourcePath installationPath:(NSString *)installationPath versionComparator:(id <SUVersionComparison>)comparator;
|
||||
|
||||
- (BOOL)startInstallation:(NSError **)error;
|
||||
|
||||
- (BOOL)resumeInstallation:(NSError **)error;
|
||||
|
||||
- (void)cleanup;
|
||||
|
||||
@end
|
||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ A guided installation can be started by applications other than the application
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUInstaller.h"
|
||||
#import "SUInstallerProtocol.h"
|
||||
|
||||
@interface SUGuidedPackageInstaller : NSObject <SUInstaller>
|
||||
|
||||
|
||||
Vendored
+2
@@ -11,6 +11,8 @@
|
||||
#import "SUParameterAssert.h"
|
||||
#import "SUGuidedPackageInstaller.h"
|
||||
#import "SUErrors.h"
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
#import "SUHost.h"
|
||||
|
||||
#ifdef _APPKITDEFINES_H
|
||||
#error This is a "core" class and should NOT import AppKit
|
||||
|
||||
Vendored
+1
-12
@@ -8,23 +8,12 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
#import "SUInstallerProtocol.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class SUHost;
|
||||
|
||||
@protocol SUInstaller <NSObject>
|
||||
|
||||
- (instancetype)initWithHost:(SUHost *)host sourcePath:(NSString *)sourcePath installationPath:(NSString *)installationPath versionComparator:(id <SUVersionComparison>)comparator;
|
||||
|
||||
- (BOOL)startInstallation:(NSError **)error;
|
||||
|
||||
- (BOOL)resumeInstallation:(NSError **)error;
|
||||
|
||||
- (void)cleanup;
|
||||
|
||||
@end
|
||||
|
||||
@interface SUInstaller : NSObject
|
||||
|
||||
+ (nullable id<SUInstaller>)installerForHost:(SUHost *)host updateDirectory:(NSString *)updateDirectory versionComparator:(id <SUVersionComparison>)comparator error:(NSError **)error;
|
||||
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUInstaller.h"
|
||||
#import "SUInstallerProtocol.h"
|
||||
|
||||
@interface SUPackageInstaller : NSObject <SUInstaller>
|
||||
|
||||
|
||||
Vendored
+2
@@ -7,6 +7,8 @@
|
||||
//
|
||||
|
||||
#import "SUPackageInstaller.h"
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
#import "SUHost.h"
|
||||
#import "SUConstants.h"
|
||||
#import "SUErrors.h"
|
||||
#import "SULog.h"
|
||||
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUInstaller.h"
|
||||
#import "SUInstallerProtocol.h"
|
||||
|
||||
@interface SUPlainInstaller : NSObject <SUInstaller>
|
||||
|
||||
|
||||
Vendored
+1
@@ -13,6 +13,7 @@
|
||||
#import "SULog.h"
|
||||
#import "SUErrors.h"
|
||||
#import "SUParameterAssert.h"
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
|
||||
#ifdef _APPKITDEFINES_H
|
||||
#error This is a "core" class and should NOT import AppKit
|
||||
|
||||
Reference in new issue
Block a user