Move off of macosxinternal sdk
This moves kordophone off of using the internal SDK and switches to using class dumped headers instead.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#import "MBIMHTTPUtilities.h"
|
||||
#import "IMChat+Encoded.h"
|
||||
|
||||
#import <IMCore/IMCore.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMConversationListOperation
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
__block NSMutableArray *conversations = [NSMutableArray array];
|
||||
|
||||
dispatch_sync([[self class] sharedIMAccessQueue], ^{
|
||||
NSArray<IMChat *> *chats = [sChatRegistry allExistingChats];
|
||||
NSArray<IMChat *> *chats = [[IMChatRegistry sharedInstance] allExistingChats];
|
||||
for (IMChat *chat in chats) {
|
||||
NSDictionary *chatDict = [chat mbim_dictionaryRepresentation];
|
||||
[conversations addObject:chatDict];
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#import "MBIMFetchAttachmentOperation.h"
|
||||
#import "MBIMDataResponse.h"
|
||||
|
||||
#import <IMCore/IMCore.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMFetchAttachmentOperation
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MBIMMarkOperation.h"
|
||||
#import <IMCore/IMCore.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMMarkOperation
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
|
||||
dispatch_sync([[self class] sharedIMAccessQueue], ^{
|
||||
IMChat *chat = [sChatRegistry existingChatWithGUID:guid];
|
||||
IMChat *chat = [[IMChatRegistry sharedInstance] existingChatWithGUID:guid];
|
||||
if (!chat) {
|
||||
MBIMLogInfo(@"Chat with guid: %@ not found", guid);
|
||||
response = [[HTTPErrorResponse alloc] initWithErrorCode:500];
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#import "MBIMHTTPUtilities.h"
|
||||
#import "IMMessageItem+Encoded.h"
|
||||
|
||||
#import <IMCore/IMCore.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMMessagesListOperation
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
__block NSMutableArray *messages = [NSMutableArray array];
|
||||
dispatch_sync([[self class] sharedIMAccessQueue], ^{
|
||||
IMChat *chat = [sChatRegistry existingChatWithGUID:guid];
|
||||
IMChat *chat = [[IMChatRegistry sharedInstance] existingChatWithGUID:guid];
|
||||
if (!chat) {
|
||||
MBIMLogInfo(@"Chat with guid: %@ not found", guid);
|
||||
response = [[HTTPErrorResponse alloc] initWithErrorCode:500];
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#import "MBIMSendMessageOperation.h"
|
||||
|
||||
#import <IMCore/IMCore.h>
|
||||
#import <IMCore/IMCore_Private.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMSendMessageOperation
|
||||
|
||||
@@ -25,7 +24,7 @@
|
||||
__block BOOL result = YES;
|
||||
|
||||
dispatch_sync([[self class] sharedIMAccessQueue], ^{
|
||||
IMChat *chat = [sChatRegistry existingChatWithGUID:chatGUID];
|
||||
IMChat *chat = [[IMChatRegistry sharedInstance] existingChatWithGUID:chatGUID];
|
||||
|
||||
// TODO: chat might not be an iMessage chat!
|
||||
IMAccount *iMessageAccount = [[IMAccountController sharedInstance] bestAccountForService:[IMServiceImpl iMessageService]];
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#import "MBIMUploadAttachmentOperation.h"
|
||||
#import "MBIMDataResponse.h"
|
||||
|
||||
#import <IMCore/IMCore.h>
|
||||
#import "IMCore_ClassDump.h"
|
||||
|
||||
@implementation MBIMUploadAttachmentOperation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user