add macOS deps to shared libraries
Summary: Add macOS dependencies and alternative classes to the libraries that FlipperKitLayoutPlugin needs to function. Reviewed By: priteshrnandgaonkar Differential Revision: D27328277 fbshipit-source-id: f22d1e9f6a5415cee0bae8eaada653be5f5467b3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ec603255fe
commit
7c44d4d4f0
@@ -5,7 +5,14 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <TargetConditionals.h>
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
#import <UIKit/UIKit.h>
|
||||
#elif TARGET_OS_OSX
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
@protocol SKSonarValueCoder
|
||||
|
||||
@@ -20,7 +27,11 @@ class SKObject {
|
||||
SKObject(CGRect rect);
|
||||
SKObject(CGSize size);
|
||||
SKObject(CGPoint point);
|
||||
#if TARGET_OS_IPHONE
|
||||
SKObject(UIEdgeInsets insets);
|
||||
#elif TARGET_OS_OSX
|
||||
SKObject(NSEdgeInsets insets);
|
||||
#endif
|
||||
SKObject(CGAffineTransform transform);
|
||||
SKObject(id<SKSonarValueCoder> value);
|
||||
SKObject(id value);
|
||||
@@ -38,7 +49,11 @@ class SKMutableObject : public SKObject {
|
||||
SKMutableObject(CGRect rect) : SKObject(rect) {}
|
||||
SKMutableObject(CGSize size) : SKObject(size){};
|
||||
SKMutableObject(CGPoint point) : SKObject(point){};
|
||||
#if TARGET_OS_IPHONE
|
||||
SKMutableObject(UIEdgeInsets insets) : SKObject(insets){};
|
||||
#elif TARGET_OS_OSX
|
||||
SKMutableObject(NSEdgeInsets insets) : SKObject(insets){};
|
||||
#endif
|
||||
SKMutableObject(CGAffineTransform transform) : SKObject(transform){};
|
||||
SKMutableObject(id<SKSonarValueCoder> value) : SKObject(value){};
|
||||
SKMutableObject(id value) : SKObject(value){};
|
||||
|
||||
Reference in New Issue
Block a user