Moving from ivars to properties (#105)

* Moving from ivars to properties

* Updating formatting
This commit is contained in:
Matthew Podwysocki 2020-10-01 20:50:24 -04:00 коммит произвёл GitHub
Родитель 09df89f423
Коммит 313ee6613a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
18 изменённых файлов: 46 добавлений и 41 удалений

Просмотреть файл

@ -145,6 +145,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES
CLANG_WARN_UNREACHABLE_CODE = YES
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES
CLANG_WARN_OBJC_INTERFACE_IVARS = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
// Enable extra analyze modes
CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1427,7 +1427,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = MS;
LastUpgradeCheck = 1150;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = "Matthew Podwysocki";
TargetAttributes = {
4C1047B124AAA0C600FA339E = {

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -7,15 +7,18 @@
#import "MSInstallationManager.h"
#import "MSLocalStorage.h"
@implementation MSDebounceInstallationManager {
@private
double _interval;
NSTimer *_debounceTimer;
MSInstallationManager *_installationManager;
InstallationEnrichmentHandler _enrichmentHandler;
InstallationManagementHandler _managementHandler;
InstallationCompletionHandler _completionHandler;
}
@interface MSDebounceInstallationManager ()
@property(nonatomic) double interval;
@property(nonatomic, strong) NSTimer *debounceTimer;
@property(nonatomic, strong) MSInstallationManager *installationManager;
@property(nonatomic) InstallationEnrichmentHandler enrichmentHandler;
@property(nonatomic) InstallationManagementHandler managementHandler;
@property(nonatomic) InstallationCompletionHandler completionHandler;
@end
@implementation MSDebounceInstallationManager
- (instancetype)initWithInterval:(double)interval installationManager:(MSInstallationManager *)installationManager {
if ((self = [super init]) != nil) {

Просмотреть файл

@ -8,10 +8,15 @@
NS_ASSUME_NONNULL_BEGIN
@class ANHHttpClient;
@class MSTokenProvider;
@interface MSInstallationManager ()
@property(nonatomic) ANHHttpClient *httpClient;
@property(nonatomic, strong) ANHHttpClient *httpClient;
@property(nonatomic, copy) NSString *connectionString;
@property(nonatomic, copy) NSString *hubName;
@property(nonatomic, strong) MSTokenProvider *tokenProvider;
@property(nonatomic, strong) NSDictionary *connectionDictionary;
@end

Просмотреть файл

@ -19,13 +19,7 @@
static NSString *const kUserAgentFormat = @"NOTIFICATIONHUBS/%@(api-origin=IosSdkV%@; os=%@; os_version=%@;)";
static NSString *const kAPIVersion = @"2020-06";
@implementation MSInstallationManager {
@private
NSString *_connectionString;
NSString *_hubName;
MSTokenProvider *_tokenProvider;
NSDictionary *_connectionDictionary;
}
@implementation MSInstallationManager
- (instancetype)init {
if ((self = [super init]) != nil) {

Просмотреть файл

@ -8,6 +8,7 @@
NS_ASSUME_NONNULL_BEGIN
@class MSInstallation;
@class MSDebounceInstallationManager;
@protocol ANHCustomApplicationDelegate;
@ -17,6 +18,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface MSNotificationHub ()
#endif
@property(strong, nonatomic) MSDebounceInstallationManager *debounceInstallationManager;
/**
* Method converts NSData to NSString.
*

Просмотреть файл

@ -5,16 +5,18 @@
#import "MSTokenProvider.h"
#import <CommonCrypto/CommonHMAC.h>
@implementation MSTokenProvider {
@interface MSTokenProvider ()
@private
NSString *_sharedAccessKey;
NSString *_sharedAccessKeyName;
NSString *_sharedSecret;
NSString *_sharedSecretIssurer;
NSURL *_stsHostName;
NSURL *_serviceEndPoint;
}
@property(nonatomic, copy) NSString *sharedAccessKey;
@property(nonatomic, copy) NSString *sharedAccessKeyName;
@property(nonatomic, copy) NSString *sharedSecret;
@property(nonatomic, copy) NSString *sharedSecretIssurer;
@property(nonatomic, strong) NSURL *stsHostName;
@property(nonatomic, strong) NSURL *serviceEndPoint;
@end
@implementation MSTokenProvider
@synthesize timeToExpireinMins;

Просмотреть файл

@ -34,10 +34,7 @@ static dispatch_once_t onceToken;
static void *UserNotificationCenterDelegateContext = &UserNotificationCenterDelegateContext;
#endif
@implementation MSNotificationHub {
@private
MSDebounceInstallationManager *_debounceInstallationManager;
}
@implementation MSNotificationHub
- (instancetype)init {
if ((self = [super init])) {