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
@@ -21,6 +21,8 @@ SKObject::SKObject(CGPoint point) {
|
||||
_actual = @{@"x" : @(point.x), @"y" : @(point.y)};
|
||||
}
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
SKObject::SKObject(UIEdgeInsets insets) {
|
||||
_actual = @{
|
||||
@"top" : @(insets.top),
|
||||
@@ -30,6 +32,19 @@ SKObject::SKObject(UIEdgeInsets insets) {
|
||||
};
|
||||
}
|
||||
|
||||
#elif TARGET_OS_OSX
|
||||
|
||||
SKObject::SKObject(NSEdgeInsets insets) {
|
||||
_actual = @{
|
||||
@"top" : @(insets.top),
|
||||
@"bottom" : @(insets.bottom),
|
||||
@"left" : @(insets.left),
|
||||
@"right" : @(insets.right),
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
SKObject::SKObject(CGAffineTransform transform) {
|
||||
_actual = @{
|
||||
@"a" : @(transform.a),
|
||||
|
||||
Reference in New Issue
Block a user