forked from BranchMetrics/xcode-github
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathXGASettings.h
More file actions
44 lines (34 loc) · 1.19 KB
/
XGASettings.h
File metadata and controls
44 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
@file XGASettings.h
@package xcode-github-app
@brief The persistent settings store for the app.
@author Edward Smith
@date April 2018
@copyright Copyright © 2018 Branch. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <XcodeGitHub/XcodeGitHub.h>
#import "BNCEncoder.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString*_Nonnull XGACleanString(NSString*_Nullable string);
@interface XGAServer : XGServer <NSSecureCoding, NSCopying>
@end
#pragma mark XGGitHubSyncTask
@interface XGAGitHubSyncTask : BNCCoding <NSSecureCoding>
@property (copy) NSString*xcodeServer;
@property (copy) NSString*botNameForTemplate;
@end
#pragma mark - XGASettings
@interface XGASettings : BNCCoding <NSSecureCoding>
- (void) save;
- (void) clear;
- (void) validate;
+ (XGASettings*) shared;
@property (assign) BOOL dryRun;
@property (assign) BOOL showDebugMessages;
@property (assign) NSTimeInterval refreshSeconds;
@property (copy) NSString*gitHubToken;
@property (strong, null_resettable) NSMutableDictionary<NSString*, XGAServer*>*servers;
@property (strong, null_resettable) NSMutableArray<XGAGitHubSyncTask*>*gitHubSyncTasks;
@end
NS_ASSUME_NONNULL_END