Add macOS support to the Podspec
This commit is contained in:
parent
860740a91e
commit
30851905b5
2 changed files with 21 additions and 15 deletions
|
@ -20,7 +20,8 @@ Pod::Spec.new do |s|
|
||||||
s.authors = { "Chris Ballinger" => "chrisballinger@gmail.com",
|
s.authors = { "Chris Ballinger" => "chrisballinger@gmail.com",
|
||||||
"matrix.org" => "support@matrix.org" }
|
"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
|
# Expose the Objective-C wrapper API of libolm
|
||||||
s.public_header_files = "xcode/OLMKit/*.h"
|
s.public_header_files = "xcode/OLMKit/*.h"
|
||||||
|
|
|
@ -16,7 +16,12 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if TARGET_OS_IPHONE
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
#elif TARGET_OS_MAC
|
||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//! Project version string for OLMKit, the same as libolm.
|
//! Project version string for OLMKit, the same as libolm.
|
||||||
NSString *OLMKitVersionString();
|
NSString *OLMKitVersionString();
|
||||||
|
|
Loading…
Reference in a new issue