Add macOS support to the Podspec

This commit is contained in:
Avery Pierce 2017-01-14 14:57:46 -06:00
parent 860740a91e
commit 30851905b5
2 changed files with 21 additions and 15 deletions

View file

@ -20,7 +20,8 @@ Pod::Spec.new do |s|
s.authors = { "Chris Ballinger" => "chrisballinger@gmail.com",
"matrix.org" => "support@matrix.org" }
s.platform = :ios, "5.0"
s.ios.deployment_target = "5.0"
s.osx.deployment_target = "10.9"
# Expose the Objective-C wrapper API of libolm
s.public_header_files = "xcode/OLMKit/*.h"

View file

@ -16,7 +16,12 @@
limitations under the License.
*/
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#elif TARGET_OS_MAC
#import <Cocoa/Cocoa.h>
#endif
//! Project version string for OLMKit, the same as libolm.
NSString *OLMKitVersionString();