mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Fixed recurring typo in manager initializers.
This commit is contained in:
parent
82059d357e
commit
df7010ed8a
@ -50,8 +50,8 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
|||||||
[self unregisterObservers];
|
[self unregisterObservers];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype) initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironemt:(BOOL)isAppStoreEnvironment {
|
- (instancetype) initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment {
|
||||||
self = [super initWithAppIdentifier:appIdentifier isAppStoreEnvironemt:isAppStoreEnvironment];
|
self = [super initWithAppIdentifier:appIdentifier isAppStoreEnvironment:isAppStoreEnvironment];
|
||||||
if( self ) {
|
if( self ) {
|
||||||
_webpageURL = [NSURL URLWithString:@"https://rink.hockeyapp.net/"];
|
_webpageURL = [NSURL URLWithString:@"https://rink.hockeyapp.net/"];
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironemt:(BOOL)isAppStoreEnvironment {
|
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment {
|
||||||
if ((self = [self init])) {
|
if ((self = [self init])) {
|
||||||
_appIdentifier = appIdentifier;
|
_appIdentifier = appIdentifier;
|
||||||
_isAppStoreEnvironment = isAppStoreEnvironment;
|
_isAppStoreEnvironment = isAppStoreEnvironment;
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
@property (nonatomic, strong) NSString *appIdentifier;
|
@property (nonatomic, strong) NSString *appIdentifier;
|
||||||
|
|
||||||
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironemt:(BOOL)isAppStoreEnvironment;
|
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment;
|
||||||
|
|
||||||
- (void)startManager;
|
- (void)startManager;
|
||||||
|
|
||||||
|
|||||||
@ -373,30 +373,30 @@
|
|||||||
if (_validAppIdentifier) {
|
if (_validAppIdentifier) {
|
||||||
#if HOCKEYSDK_FEATURE_CRASH_REPORTER
|
#if HOCKEYSDK_FEATURE_CRASH_REPORTER
|
||||||
BITHockeyLog(@"INFO: Setup CrashManager");
|
BITHockeyLog(@"INFO: Setup CrashManager");
|
||||||
_crashManager = [[BITCrashManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironemt:_appStoreEnvironment];
|
_crashManager = [[BITCrashManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironment:_appStoreEnvironment];
|
||||||
_crashManager.delegate = _delegate;
|
_crashManager.delegate = _delegate;
|
||||||
#endif /* HOCKEYSDK_FEATURE_CRASH_REPORTER */
|
#endif /* HOCKEYSDK_FEATURE_CRASH_REPORTER */
|
||||||
|
|
||||||
#if HOCKEYSDK_FEATURE_UPDATES
|
#if HOCKEYSDK_FEATURE_UPDATES
|
||||||
BITHockeyLog(@"INFO: Setup UpdateManager");
|
BITHockeyLog(@"INFO: Setup UpdateManager");
|
||||||
_updateManager = [[BITUpdateManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironemt:_appStoreEnvironment];
|
_updateManager = [[BITUpdateManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironment:_appStoreEnvironment];
|
||||||
_updateManager.delegate = _delegate;
|
_updateManager.delegate = _delegate;
|
||||||
#endif /* HOCKEYSDK_FEATURE_UPDATES */
|
#endif /* HOCKEYSDK_FEATURE_UPDATES */
|
||||||
|
|
||||||
#if HOCKEYSDK_FEATURE_STORE_UPDATES
|
#if HOCKEYSDK_FEATURE_STORE_UPDATES
|
||||||
BITHockeyLog(@"INFO: Setup StoreUpdateManager");
|
BITHockeyLog(@"INFO: Setup StoreUpdateManager");
|
||||||
_storeUpdateManager = [[BITStoreUpdateManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironemt:_appStoreEnvironment];
|
_storeUpdateManager = [[BITStoreUpdateManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironment:_appStoreEnvironment];
|
||||||
#endif /* HOCKEYSDK_FEATURE_STORE_UPDATES */
|
#endif /* HOCKEYSDK_FEATURE_STORE_UPDATES */
|
||||||
|
|
||||||
#if HOCKEYSDK_FEATURE_FEEDBACK
|
#if HOCKEYSDK_FEATURE_FEEDBACK
|
||||||
BITHockeyLog(@"INFO: Setup FeedbackManager");
|
BITHockeyLog(@"INFO: Setup FeedbackManager");
|
||||||
_feedbackManager = [[BITFeedbackManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironemt:_appStoreEnvironment];
|
_feedbackManager = [[BITFeedbackManager alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironment:_appStoreEnvironment];
|
||||||
_feedbackManager.delegate = _delegate;
|
_feedbackManager.delegate = _delegate;
|
||||||
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
|
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
|
||||||
|
|
||||||
BITHockeyLog(@"INFO: Setup Authenticator");
|
BITHockeyLog(@"INFO: Setup Authenticator");
|
||||||
BITHockeyAppClient *client = [[BITHockeyAppClient alloc] initWithBaseURL:[NSURL URLWithString:_serverURL ? _serverURL : BITHOCKEYSDK_URL]];
|
BITHockeyAppClient *client = [[BITHockeyAppClient alloc] initWithBaseURL:[NSURL URLWithString:_serverURL ? _serverURL : BITHOCKEYSDK_URL]];
|
||||||
_authenticator = [[BITAuthenticator alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironemt:_appStoreEnvironment];
|
_authenticator = [[BITAuthenticator alloc] initWithAppIdentifier:_appIdentifier isAppStoreEnvironment:_appStoreEnvironment];
|
||||||
_authenticator.hockeyAppClient = client;
|
_authenticator.hockeyAppClient = client;
|
||||||
_authenticator.delegate = _delegate;
|
_authenticator.delegate = _delegate;
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@ static void *kInstallationIdentification = &kInstallationIdentification;
|
|||||||
- (void)setUp {
|
- (void)setUp {
|
||||||
[super setUp];
|
[super setUp];
|
||||||
|
|
||||||
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:NO];
|
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironment:NO];
|
||||||
_sut.authenticationType = BITAuthenticatorAuthTypeEmailAndPassword;
|
_sut.authenticationType = BITAuthenticatorAuthTypeEmailAndPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,13 +90,13 @@ static void *kInstallationIdentification = &kInstallationIdentification;
|
|||||||
#pragma mark - Persistence Tests
|
#pragma mark - Persistence Tests
|
||||||
- (void) testThatAuthenticationTokenIsPersisted {
|
- (void) testThatAuthenticationTokenIsPersisted {
|
||||||
[_sut setAuthenticationToken:@"SuperToken" withType:@"udid"];
|
[_sut setAuthenticationToken:@"SuperToken" withType:@"udid"];
|
||||||
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:YES];
|
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironment:YES];
|
||||||
assertThat(_sut.authenticationToken, equalTo(@"SuperToken"));
|
assertThat(_sut.authenticationToken, equalTo(@"SuperToken"));
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) testThatLastAuthenticatedVersionIsPersisted {
|
- (void) testThatLastAuthenticatedVersionIsPersisted {
|
||||||
_sut.lastAuthenticatedVersion = @"1.2.1";
|
_sut.lastAuthenticatedVersion = @"1.2.1";
|
||||||
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:YES];
|
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironment:YES];
|
||||||
assertThat(_sut.lastAuthenticatedVersion, equalTo(@"1.2.1"));
|
assertThat(_sut.lastAuthenticatedVersion, equalTo(@"1.2.1"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,10 +115,10 @@ static void *kInstallationIdentification = &kInstallationIdentification;
|
|||||||
|
|
||||||
- (void) testThatSkipLoginIsPersisted {
|
- (void) testThatSkipLoginIsPersisted {
|
||||||
[_sut setDidSkipOptionalLogin:YES];
|
[_sut setDidSkipOptionalLogin:YES];
|
||||||
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:YES];
|
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironment:YES];
|
||||||
assertThatBool(_sut.didSkipOptionalLogin, equalToBool(YES));
|
assertThatBool(_sut.didSkipOptionalLogin, equalToBool(YES));
|
||||||
[_sut setDidSkipOptionalLogin:NO];
|
[_sut setDidSkipOptionalLogin:NO];
|
||||||
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:YES];
|
_sut = [[BITAuthenticator alloc] initWithAppIdentifier:nil isAppStoreEnvironment:YES];
|
||||||
assertThatBool(_sut.didSkipOptionalLogin, equalToBool(NO));
|
assertThatBool(_sut.didSkipOptionalLogin, equalToBool(NO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
[super setUp];
|
[super setUp];
|
||||||
|
|
||||||
// Set-up code here.
|
// Set-up code here.
|
||||||
_storeUpdateManager = [[BITStoreUpdateManager alloc] initWithAppIdentifier:nil isAppStoreEnvironemt:YES];
|
_storeUpdateManager = [[BITStoreUpdateManager alloc] initWithAppIdentifier:nil isAppStoreEnvironment:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)tearDown {
|
- (void)tearDown {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user