Skip to content

Commit f44bf57

Browse files
Merge pull request #1120 from ChatSecure/chatsecurecore-podspec
ChatSecureCore Podspec
2 parents dedf40e + 37edbfc commit f44bf57

File tree

164 files changed

+691
-3712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+691
-3712
lines changed

Cartfile

-16
This file was deleted.

Cartfile.resolved

-11
This file was deleted.

ChatSecure.xcodeproj/project.pbxproj

+154-1,479
Large diffs are not rendered by default.

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecureCore.xcscheme

-89
This file was deleted.

ChatSecure/Classes/Categories/UITableView+ChatSecure.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "UITableView+ChatSecure.h"
1010
#import "OTRXMPPBuddy.h"
11-
#import <ChatSecureCore/ChatSecureCore-Swift.h>
11+
#import "ChatSecureCoreCompat-Swift.h"
1212
#import "OTRXMPPManager_Private.h"
1313
@import OTRAssets;
1414

ChatSecure/Classes/Controllers/OTRDatabaseManager.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#import "OTRConstants.h"
1616
#import "OTRXMPPAccount.h"
1717
#import "OTRXMPPTorAccount.h"
18-
#import "OTRGoogleOAuthXMPPAccount.h"
1918
#import "OTRAccount.h"
2019
#import "OTRIncomingMessage.h"
2120
#import "OTROutgoingMessage.h"
@@ -29,7 +28,7 @@
2928
#import "OTRSignalSession.h"
3029
#import "OTRSettingsManager.h"
3130
#import "OTRXMPPPresenceSubscriptionRequest.h"
32-
#import <ChatSecureCore/ChatSecureCore-Swift.h>
31+
#import "ChatSecureCoreCompat-Swift.h"
3332

3433

3534
@interface OTRDatabaseManager ()

ChatSecure/Classes/Controllers/OTRDatabaseView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#import "OTRIncomingMessage.h"
1515
#import "OTRLog.h"
1616
#import "OTROutgoingMessage.h"
17-
#import <ChatSecureCore/ChatSecureCore-Swift.h>
17+
#import "ChatSecureCoreCompat-Swift.h"
1818

1919
NSString *OTRArchiveFilteredConversationsName = @"OTRFilteredConversationsName";
2020
NSString *OTRBuddyFilteredConversationsName = @"OTRBuddyFilteredConversationsName";

ChatSecure/Classes/Controllers/OTREncryptionManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#import "OTRLog.h"
4242
#import "OTRXMPPManager.h"
4343
#import "OTRYapMessageSendAction.h"
44-
#import <ChatSecureCore/ChatSecureCore-Swift.h>
44+
#import "ChatSecureCoreCompat-Swift.h"
4545

4646
@import AVFoundation;
4747
@import XMPPFramework;

ChatSecure/Classes/Controllers/OTROAuthRefresher.h

-21
This file was deleted.

ChatSecure/Classes/Controllers/OTROAuthRefresher.m

-41
This file was deleted.

ChatSecure/Classes/Controllers/OTRProtocolManager.m

+2-19
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#import "OTRIncomingMessage.h"
2727
#import "OTROutgoingMessage.h"
2828
#import "OTRConstants.h"
29-
#import "OTROAuthRefresher.h"
30-
#import "OTROAuthXMPPAccount.h"
3129
#import "OTRDatabaseManager.h"
3230
#import "OTRPushTLVHandler.h"
3331
#import <BBlock/NSObject+BBlock.h>
@@ -36,7 +34,7 @@
3634
@import KVOController;
3735
@import OTRAssets;
3836
#import "OTRLog.h"
39-
#import <ChatSecureCore/ChatSecureCore-Swift.h>
37+
#import "ChatSecureCoreCompat-Swift.h"
4038
#import "OTRXMPPPresenceSubscriptionRequest.h"
4139

4240
@interface OTRProtocolManager ()
@@ -136,22 +134,7 @@ - (void)loginAccount:(OTRAccount *)account userInitiated:(BOOL)userInitiated
136134
if (!account) { return; }
137135
id <OTRProtocol> protocol = [self protocolForAccount:account];
138136

139-
if([account isKindOfClass:[OTROAuthXMPPAccount class]])
140-
{
141-
[OTROAuthRefresher refreshAccount:(OTROAuthXMPPAccount *)account completion:^(id token, NSError *error) {
142-
if (!error) {
143-
((OTROAuthXMPPAccount *)account).accountSpecificToken = token;
144-
[protocol connectUserInitiated:userInitiated];
145-
}
146-
else {
147-
DDLogError(@"Error Refreshing Token");
148-
}
149-
}];
150-
}
151-
else
152-
{
153-
[protocol connectUserInitiated:userInitiated];
154-
}
137+
[protocol connectUserInitiated:userInitiated];
155138
}
156139

157140
- (void)loginAccount:(OTRAccount *)account

ChatSecure/Classes/Controllers/OTRPurchaseController.h

-48
This file was deleted.

0 commit comments

Comments
 (0)