Skip to content

Commit b1081e8

Browse files
committed
feat: create BrownieFollyConvert.h
1 parent f87ac66 commit b1081e8

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
3+
#if __has_include(<react/utils/FollyConvert.h>)
4+
// static libs / header maps (no use_frameworks!)
5+
#import <react/utils/FollyConvert.h>
6+
#elif __has_include("FollyConvert.h")
7+
/// `use_frameworks! :linkage => :static` users will need to import FollyConvert this way
8+
#import "FollyConvert.h"
9+
#elif __has_include("RCTFollyConvert.h")
10+
#import "RCTFollyConvert.h"
11+
#else
12+
#error "FollyConvert.h not found. Ensure React-utils & RCT-Folly pods are installed."
13+
#endif

packages/brownie/ios/BrownieStoreBridge.mm

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
#import "BrownieStoreBridge.h"
22
#import "BrownieStoreManager.h"
33
#import "BrownieStore.h"
4-
// #import <react/utils/FollyConvert.h>
5-
6-
#if __has_include(<react/utils/FollyConvert.h>)
7-
// static libs / header maps (no use_frameworks!)
8-
#import <react/utils/FollyConvert.h>
9-
#elif __has_include("FollyConvert.h")
10-
/// `use_frameworks! :linkage => :static` users will need to import FollyConvert this way
11-
#import "FollyConvert.h"
12-
#elif __has_include("RCTFollyConvert.h")
13-
#import "RCTFollyConvert.h"
14-
#else
15-
#error "FollyConvert.h not found. Ensure React-utils & RCT-Folly pods are installed."
16-
#endif
4+
#import "BrownieFollyConvert.h"
175

186
using namespace facebook::react;
197

0 commit comments

Comments
 (0)