WPM | Fix for missing SonarKit symbols (SKNamed, SKComponentLayoutDescriptor)

Summary:
This should fix build failures with prod config. The symbols should only be in internal builds and not the prod ones.

```
stderr: Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SKNamed", referenced from:
  ...
  "_OBJC_CLASS_$_SKComponentLayoutDescriptor", referenced from:
  ...
```

Reviewed By: rzito

Differential Revision: D24250749

fbshipit-source-id: 68c3d066a76baf4b1646f27dac0fd081bcaff41b
This commit is contained in:
Shuo Yang
2020-10-12 09:33:27 -07:00
committed by Facebook GitHub Bot
parent ccd961a347
commit f1baf3c1d8

View File

@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#if FB_SONARKIT_ENABLED
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "SKNodeDescriptor.h" #import "SKNodeDescriptor.h"
@@ -12,3 +14,5 @@
@interface SKViewControllerDescriptor : SKNodeDescriptor<UIViewController*> @interface SKViewControllerDescriptor : SKNodeDescriptor<UIViewController*>
@end @end
#endif