/
RCSystemInfo.h
40 lines (28 loc) · 1.17 KB
/
RCSystemInfo.h
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
//
// Created by Andrés Boedo on 5/7/20.
// Copyright (c) 2020 Purchases. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface RCSystemInfo : NSObject
- (instancetype)initWithPlatformFlavor:(nullable NSString *)platformFlavor
platformFlavorVersion:(nullable NSString *)platformFlavorVersion
finishTransactions:(BOOL)finishTransactions NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
@property(nonatomic, assign) BOOL finishTransactions;
@property(nonatomic, copy, readonly) NSString *platformFlavor;
@property(nonatomic, copy, readonly) NSString *platformFlavorVersion;
@property(class, nonatomic, assign) BOOL forceUniversalAppStore;
- (void)isApplicationBackgroundedWithCompletion:(void(^)(BOOL))completion; // calls completion on the main thread
+ (BOOL)isSandbox;
+ (NSString *)frameworkVersion;
+ (NSString *)systemVersion;
+ (NSString *)appVersion;
+ (NSString *)buildVersion;
+ (NSString *)platformHeader;
+ (nullable NSString *)identifierForVendor;
+ (NSURL *)serverHostURL;
+ (nullable NSURL *)proxyURL;
+ (void)setProxyURL:(nullable NSURL *)newProxyURL;
@end
NS_ASSUME_NONNULL_END