Skip to content

Commit

Permalink
Add dylib build to MacOS 10
Browse files Browse the repository at this point in the history
  • Loading branch information
tneotia committed Jun 12, 2023
1 parent 7a5418d commit 94dd89b
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 35 deletions.
188 changes: 184 additions & 4 deletions MacOS-10/BlueBubblesHelper.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
5 changes: 3 additions & 2 deletions MacOS-10/BlueBubblesHelper/BlueBubblesHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#import "SocialAppsCore/SOAccountRegistrationController.h"
#import "SocialAppsCore/SOAccountAliasController.h"
#import "SocialAppsCore/SOAccountAlias.h"
#import "ZKSwizzle.h"

@interface BlueBubblesHelper : NSObject
+ (instancetype)sharedInstance;
Expand Down Expand Up @@ -588,10 +589,10 @@ +(IMFileTransfer *) prepareFileTransferForAttachment:(NSURL *) originalPath file
IMFileTransfer *newTransfer = [[IMFileTransferCenter sharedInstance] transferForGUID:transferInitGuid];
// Get location of where attachments should be placed
NSString *persistentPath;
if ([[NSProcessInfo processInfo] operatingSystemVersion].minorVersion == 12) {
// Use a different method on macOS Sierra (10.12)
if ([[NSProcessInfo processInfo] operatingSystemVersion].minorVersion > 12) {
persistentPath = [[IMDPersistentAttachmentController sharedInstance] _persistentPathForTransfer:newTransfer filename:filename highQuality:TRUE];
} else {
// Use a different method on macOS Sierra (10.12)
persistentPath = [[IMDPersistentAttachmentController sharedInstance] _persistentPathForTransfer:newTransfer];
}
DLog(@"BLUEBUBBLESHELPER: Requested persistent path: %@", persistentPath);
Expand Down
10 changes: 10 additions & 0 deletions MacOS-10/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,14 @@ target 'BlueBubblesHelper' do

end

target 'BlueBubblesHelper DyLib' do
# Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!

# Pods for BlueBubblesHelper

pod 'CocoaAsyncSocket'

end

workspace 'BlueBubblesHelper'
2 changes: 1 addition & 1 deletion MacOS-10/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ SPEC REPOS:
SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99

PODFILE CHECKSUM: 7375bc795daa4b3fa3e5ea8c58bed61cc89c6a2d
PODFILE CHECKSUM: 4d0b09974d24cca22d6c8fb3fbbaaed0f1acb0e4

COCOAPODS: 1.8.4
2 changes: 1 addition & 1 deletion MacOS-10/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

183 changes: 156 additions & 27 deletions MacOS-10/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94dd89b

Please sign in to comment.