Skip to content

Commit 05ddc0c

Browse files
committed
Merge branch 'dependencies'
2 parents 923fa76 + 8207fe5 commit 05ddc0c

18 files changed

+38
-1114
lines changed

Authenticator.xcodeproj/project.pbxproj

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,13 @@
1212
43B5E4365C6C4081AEF41717 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B03839CF35E4014987A36CA /* libPods.a */; };
1313
8B0028B511EB75920092DE18 /* OTPScannerOverlayView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B0028B411EB75920092DE18 /* OTPScannerOverlayView.m */; };
1414
8BF23A7213D4EF7000F3FD82 /* UIColor+OTP.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF23A7113D4EF7000F3FD82 /* UIColor+OTP.m */; };
15-
C9044FD61824CDE7002C3C3F /* OTPBase32Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = C9044FD51824CDE7002C3C3F /* OTPBase32Tests.m */; };
16-
C93AF8DD1977B0F100853591 /* NSString+PercentEncoding.m in Sources */ = {isa = PBXBuildFile; fileRef = C9044FD81824E05E002C3C3F /* NSString+PercentEncoding.m */; };
17-
C93AF8DE1977B0F500853591 /* NSDictionary+QueryString.m in Sources */ = {isa = PBXBuildFile; fileRef = C9044FDB1824E711002C3C3F /* NSDictionary+QueryString.m */; };
18-
C940A981183EEFA300F7D04A /* OTPTokenGenerationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C940A980183EEFA300F7D04A /* OTPTokenGenerationTests.m */; };
19-
C958CC54183043A600DD47D0 /* OTPTokenSerializationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C958CC53183043A600DD47D0 /* OTPTokenSerializationTests.m */; };
2015
C9745D0B17DA5861008B6E23 /* UIAlertView+Blocks.m in Sources */ = {isa = PBXBuildFile; fileRef = C9745D0A17DA5861008B6E23 /* UIAlertView+Blocks.m */; };
2116
C9777A021908064500B4A7F5 /* OTPTokenEditViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C9777A011908064500B4A7F5 /* OTPTokenEditViewController.m */; };
2217
C97B68C717D9226D005D1FE0 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = C97B68C617D9226D005D1FE0 /* Settings.bundle */; };
18+
C983AB74197F98FC00975003 /* OTPAuthenticatorTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C983AB73197F98FC00975003 /* OTPAuthenticatorTests.m */; };
2319
C99069D1180CBAC900BAEF53 /* OTPScannerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C99069D0180CBAC900BAEF53 /* OTPScannerViewController.m */; };
2420
C99069D4180E07A100BAEF53 /* OTPTokenEntryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C99069D3180E07A100BAEF53 /* OTPTokenEntryViewController.m */; };
2521
C9ABDACF17DD3CF500A86AB5 /* OTPTokenCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C9ABDACE17DD3CF500A86AB5 /* OTPTokenCell.m */; };
26-
C9C6CC841842C5BC000100C2 /* OTPTokenPersistenceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C9C6CC831842C5BC000100C2 /* OTPTokenPersistenceTests.m */; };
2722
C9C6CCA21842E331000100C2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C9C6CCA11842E331000100C2 /* Images.xcassets */; };
2823
C9D6C83F1906BD68004F0E08 /* OTPSegmentedControlCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C9D6C83E1906BD68004F0E08 /* OTPSegmentedControlCell.m */; };
2924
C9D6C8461906CD54004F0E08 /* OTPTextFieldCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C9D6C8451906CD54004F0E08 /* OTPTextFieldCell.m */; };
@@ -58,13 +53,6 @@
5853
8BF23A7113D4EF7000F3FD82 /* UIColor+OTP.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+OTP.m"; sourceTree = "<group>"; };
5954
8BF5147F118799AE005C936F /* Authenticator-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Authenticator-Info.plist"; sourceTree = "<group>"; };
6055
9B03839CF35E4014987A36CA /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
61-
C9044FD51824CDE7002C3C3F /* OTPBase32Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPBase32Tests.m; sourceTree = "<group>"; };
62-
C9044FD71824E05E002C3C3F /* NSString+PercentEncoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+PercentEncoding.h"; sourceTree = "<group>"; };
63-
C9044FD81824E05E002C3C3F /* NSString+PercentEncoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+PercentEncoding.m"; sourceTree = "<group>"; };
64-
C9044FDA1824E711002C3C3F /* NSDictionary+QueryString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+QueryString.h"; sourceTree = "<group>"; };
65-
C9044FDB1824E711002C3C3F /* NSDictionary+QueryString.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+QueryString.m"; sourceTree = "<group>"; };
66-
C940A980183EEFA300F7D04A /* OTPTokenGenerationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenGenerationTests.m; sourceTree = "<group>"; };
67-
C958CC53183043A600DD47D0 /* OTPTokenSerializationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenSerializationTests.m; sourceTree = "<group>"; };
6856
C959A63C190A69120042DEC0 /* Icon.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Icon.svg; sourceTree = "<group>"; };
6957
C959A63E190A69E60042DEC0 /* GenerateIcons.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = GenerateIcons.sh; sourceTree = "<group>"; };
7058
C9745D0917DA5861008B6E23 /* UIAlertView+Blocks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIAlertView+Blocks.h"; sourceTree = "<group>"; };
@@ -73,6 +61,7 @@
7361
C9777A001908064500B4A7F5 /* OTPTokenEditViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTPTokenEditViewController.h; sourceTree = "<group>"; };
7462
C9777A011908064500B4A7F5 /* OTPTokenEditViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenEditViewController.m; sourceTree = "<group>"; };
7563
C97B68C617D9226D005D1FE0 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
64+
C983AB73197F98FC00975003 /* OTPAuthenticatorTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPAuthenticatorTests.m; sourceTree = "<group>"; };
7665
C99069CF180CBAC900BAEF53 /* OTPScannerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTPScannerViewController.h; sourceTree = "<group>"; };
7766
C99069D0180CBAC900BAEF53 /* OTPScannerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPScannerViewController.m; sourceTree = "<group>"; };
7867
C99069D2180E07A100BAEF53 /* OTPTokenEntryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTPTokenEntryViewController.h; sourceTree = "<group>"; };
@@ -82,7 +71,6 @@
8271
C9A4FA1317CF9D3100CD5EDC /* Common.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Common.xcconfig; sourceTree = "<group>"; };
8372
C9ABDACD17DD3CF500A86AB5 /* OTPTokenCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTPTokenCell.h; sourceTree = "<group>"; };
8473
C9ABDACE17DD3CF500A86AB5 /* OTPTokenCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenCell.m; sourceTree = "<group>"; };
85-
C9C6CC831842C5BC000100C2 /* OTPTokenPersistenceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenPersistenceTests.m; sourceTree = "<group>"; };
8674
C9C6CCA11842E331000100C2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
8775
C9D6C83D1906BD68004F0E08 /* OTPSegmentedControlCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTPSegmentedControlCell.h; sourceTree = "<group>"; };
8876
C9D6C83E1906BD68004F0E08 /* OTPSegmentedControlCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPSegmentedControlCell.m; sourceTree = "<group>"; };
@@ -261,14 +249,7 @@
261249
C9906A331812522100BAEF53 /* AuthenticatorTests */ = {
262250
isa = PBXGroup;
263251
children = (
264-
C9044FD71824E05E002C3C3F /* NSString+PercentEncoding.h */,
265-
C9044FD81824E05E002C3C3F /* NSString+PercentEncoding.m */,
266-
C9044FDA1824E711002C3C3F /* NSDictionary+QueryString.h */,
267-
C9044FDB1824E711002C3C3F /* NSDictionary+QueryString.m */,
268-
C958CC53183043A600DD47D0 /* OTPTokenSerializationTests.m */,
269-
C9C6CC831842C5BC000100C2 /* OTPTokenPersistenceTests.m */,
270-
C940A980183EEFA300F7D04A /* OTPTokenGenerationTests.m */,
271-
C9044FD51824CDE7002C3C3F /* OTPBase32Tests.m */,
252+
C983AB73197F98FC00975003 /* OTPAuthenticatorTests.m */,
272253
);
273254
path = AuthenticatorTests;
274255
sourceTree = "<group>";
@@ -463,12 +444,7 @@
463444
isa = PBXSourcesBuildPhase;
464445
buildActionMask = 2147483647;
465446
files = (
466-
C9044FD61824CDE7002C3C3F /* OTPBase32Tests.m in Sources */,
467-
C940A981183EEFA300F7D04A /* OTPTokenGenerationTests.m in Sources */,
468-
C93AF8DE1977B0F500853591 /* NSDictionary+QueryString.m in Sources */,
469-
C958CC54183043A600DD47D0 /* OTPTokenSerializationTests.m in Sources */,
470-
C9C6CC841842C5BC000100C2 /* OTPTokenPersistenceTests.m in Sources */,
471-
C93AF8DD1977B0F100853591 /* NSString+PercentEncoding.m in Sources */,
447+
C983AB74197F98FC00975003 /* OTPAuthenticatorTests.m in Sources */,
472448
);
473449
runOnlyForDeploymentPostprocessing = 0;
474450
};

Authenticator/Classes/OTPSegmentedControlCell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
//
2424

25-
#import "MRXTableViewCell.h"
25+
@import UIKit;
2626

2727

28-
@interface OTPSegmentedControlCell : MRXTableViewCell
28+
@interface OTPSegmentedControlCell : UITableViewCell
2929

3030
@property (nonatomic, readonly) UISegmentedControl *segmentedControl;
3131

Authenticator/Classes/OTPTextFieldCell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
//
2424

25-
#import "MRXTableViewCell.h"
25+
@import UIKit;
2626

2727

28-
@interface OTPTextFieldCell : MRXTableViewCell
28+
@interface OTPTextFieldCell : UITableViewCell
2929

3030
@property (nonatomic, readonly) UITextField *textField;
3131

Authenticator/Classes/OTPTokenCell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
//
2424

25-
#import <MRX/MRXTableViewCell.h>
25+
@import UIKit;
2626
@class OTPToken;
2727

2828

29-
@interface OTPTokenCell : MRXTableViewCell
29+
@interface OTPTokenCell : UITableViewCell
3030

3131
@property (nonatomic, strong) OTPToken *token;
3232

Authenticator/Classes/OTPTokenEntryViewController.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
230230
- (OTPSegmentedControlCell *)tokenTypeCell
231231
{
232232
if (!_tokenTypeCell) {
233-
_tokenTypeCell = [OTPSegmentedControlCell cell];
233+
_tokenTypeCell = [OTPSegmentedControlCell new];
234234
[_tokenTypeCell.segmentedControl insertSegmentWithTitle:@"Time Based" atIndex:OTPTokenTypeIndexTimer animated:NO];
235235
[_tokenTypeCell.segmentedControl insertSegmentWithTitle:@"Counter Based" atIndex:OTPTokenTypeIndexCounter animated:NO];
236236
_tokenTypeCell.segmentedControl.selectedSegmentIndex = OTPTokenTypeIndexTimer;
@@ -241,7 +241,7 @@ - (OTPSegmentedControlCell *)tokenTypeCell
241241
- (OTPTextFieldCell *)issuerCell
242242
{
243243
if (!_issuerCell) {
244-
_issuerCell = [OTPTextFieldCell cell];
244+
_issuerCell = [OTPTextFieldCell new];
245245
_issuerCell.textLabel.text = @"Issuer";
246246
_issuerCell.textField.placeholder = @"Some Website";
247247
_issuerCell.textField.delegate = self;
@@ -253,7 +253,7 @@ - (OTPTextFieldCell *)issuerCell
253253
- (OTPTextFieldCell *)accountNameCell
254254
{
255255
if (!_accountNameCell) {
256-
_accountNameCell = [OTPTextFieldCell cell];
256+
_accountNameCell = [OTPTextFieldCell new];
257257
_accountNameCell.textLabel.text = @"Account Name";
258258
_accountNameCell.textField.placeholder = @"user@example.com";
259259
_accountNameCell.textField.delegate = self;
@@ -268,7 +268,7 @@ - (OTPTextFieldCell *)accountNameCell
268268
- (OTPTextFieldCell *)secretKeyCell
269269
{
270270
if (!_secretKeyCell) {
271-
_secretKeyCell = [OTPTextFieldCell cell];
271+
_secretKeyCell = [OTPTextFieldCell new];
272272
_secretKeyCell.textLabel.text = @"Secret Key";
273273
_secretKeyCell.textField.placeholder = @"•••• •••• •••• ••••";
274274
_secretKeyCell.textField.delegate = self;
@@ -282,7 +282,7 @@ - (OTPTextFieldCell *)secretKeyCell
282282
- (OTPSegmentedControlCell *)digitCountCell
283283
{
284284
if (!_digitCountCell) {
285-
_digitCountCell = [OTPSegmentedControlCell cell];
285+
_digitCountCell = [OTPSegmentedControlCell new];
286286
[_digitCountCell.segmentedControl insertSegmentWithTitle:@"6 Digits" atIndex:OTPTokenDigitsIndex6 animated:NO];
287287
[_digitCountCell.segmentedControl insertSegmentWithTitle:@"7 Digits" atIndex:OTPTokenDigitsIndex7 animated:NO];
288288
[_digitCountCell.segmentedControl insertSegmentWithTitle:@"8 Digits" atIndex:OTPTokenDigitsIndex8 animated:NO];
@@ -294,7 +294,7 @@ - (OTPSegmentedControlCell *)digitCountCell
294294
- (OTPSegmentedControlCell *)algorithmCell
295295
{
296296
if (!_algorithmCell) {
297-
_algorithmCell = [OTPSegmentedControlCell cell];
297+
_algorithmCell = [OTPSegmentedControlCell new];
298298
[_algorithmCell.segmentedControl insertSegmentWithTitle:@"SHA-1" atIndex:OTPTokenAlgorithmIndexSHA1 animated:NO];
299299
[_algorithmCell.segmentedControl insertSegmentWithTitle:@"SHA-256" atIndex:OTPTokenAlgorithmIndexSHA256 animated:NO];
300300
[_algorithmCell.segmentedControl insertSegmentWithTitle:@"SHA-512" atIndex:OTPTokenAlgorithmIndexSHA512 animated:NO];

Authenticator/Classes/OTPTokenListViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ - (void)viewDidLoad
6161
self.title = @"Authenticator";
6262
self.view.backgroundColor = [UIColor otpBackgroundColor];
6363

64+
[self.tableView registerClass:[OTPTokenCell class] forCellReuseIdentifier:NSStringFromClass([OTPTokenCell class])];
65+
6466
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
6567
self.tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
6668

@@ -127,7 +129,7 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
127129

128130
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
129131
{
130-
OTPTokenCell *cell = [OTPTokenCell cellForTableView:tableView];
132+
OTPTokenCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([OTPTokenCell class]) forIndexPath:indexPath];
131133
cell.token = self.tokenManager.tokens[(NSUInteger)indexPath.row];
132134
return cell;
133135
}

Authenticator/Resources/Settings.bundle/Acknowledgements.plist

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,6 @@
1616
<key>FooterText</key>
1717
<string>The MIT License (MIT)
1818
19-
Copyright (c) 2013 Matt Rubin
20-
21-
Permission is hereby granted, free of charge, to any person obtaining a copy of
22-
this software and associated documentation files (the "Software"), to deal in
23-
the Software without restriction, including without limitation the rights to
24-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
25-
the Software, and to permit persons to whom the Software is furnished to do so,
26-
subject to the following conditions:
27-
28-
The above copyright notice and this permission notice shall be included in all
29-
copies or substantial portions of the Software.
30-
31-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
33-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
34-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
35-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
36-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37-
</string>
38-
<key>Title</key>
39-
<string>MRX</string>
40-
<key>Type</key>
41-
<string>PSGroupSpecifier</string>
42-
</dict>
43-
<dict>
44-
<key>FooterText</key>
45-
<string>The MIT License (MIT)
46-
4719
Copyright (c) 2013-2014 Matt Rubin
4820
4921
Permission is hereby granted, free of charge, to any person obtaining a copy

AuthenticatorTests/NSDictionary+QueryString.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)