mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Explicitely export some symbols since they can be referenced from outside that library.
Differential Revision: D5024612 fbshipit-source-id: 6d75ebce9422c879bfc0acdb1159be72756a2f15
This commit is contained in:
parent
712b1dd20a
commit
3dfed2e865
@ -48,7 +48,7 @@ JSC_IMPORT JSValueRef JSPokeSamplingProfiler(JSContextRef);
|
|||||||
*
|
*
|
||||||
* Version number indicating that bytecode is not supported by this runtime.
|
* Version number indicating that bytecode is not supported by this runtime.
|
||||||
*/
|
*/
|
||||||
extern const int32_t JSNoBytecodeFileFormatVersion;
|
__attribute__((visibility("default"))) extern const int32_t JSNoBytecodeFileFormatVersion;
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook {
|
||||||
namespace react {
|
namespace react {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
namespace facebook {
|
namespace facebook {
|
||||||
namespace react {
|
namespace react {
|
||||||
namespace unicode {
|
namespace unicode {
|
||||||
std::string utf16toUTF8(const uint16_t* utf16, size_t length) noexcept;
|
__attribute__((visibility("default"))) std::string utf16toUTF8(const uint16_t* utf16, size_t length) noexcept;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -233,9 +233,9 @@ private:
|
|||||||
|
|
||||||
class Value : public noncopyable {
|
class Value : public noncopyable {
|
||||||
public:
|
public:
|
||||||
Value(JSContextRef context, JSValueRef value);
|
__attribute__((visibility("default"))) Value(JSContextRef context, JSValueRef value);
|
||||||
Value(JSContextRef context, JSStringRef value);
|
__attribute__((visibility("default"))) Value(JSContextRef context, JSStringRef value);
|
||||||
Value(Value&&);
|
__attribute__((visibility("default"))) Value(Value&&);
|
||||||
|
|
||||||
Value& operator=(Value&& other) {
|
Value& operator=(Value&& other) {
|
||||||
m_context = other.m_context;
|
m_context = other.m_context;
|
||||||
@ -316,10 +316,10 @@ public:
|
|||||||
return Value(ctx, JSC_JSValueMakeNull(ctx));
|
return Value(ctx, JSC_JSValueMakeNull(ctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string toJSONString(unsigned indent = 0) const;
|
__attribute__((visibility("default"))) std::string toJSONString(unsigned indent = 0) const;
|
||||||
static Value fromJSON(JSContextRef ctx, const String& json);
|
__attribute__((visibility("default"))) static Value fromJSON(JSContextRef ctx, const String& json);
|
||||||
static JSValueRef fromDynamic(JSContextRef ctx, const folly::dynamic& value);
|
__attribute__((visibility("default"))) static JSValueRef fromDynamic(JSContextRef ctx, const folly::dynamic& value);
|
||||||
JSContextRef context() const;
|
__attribute__((visibility("default"))) JSContextRef context() const;
|
||||||
protected:
|
protected:
|
||||||
JSContextRef m_context;
|
JSContextRef m_context;
|
||||||
JSValueRef m_value;
|
JSValueRef m_value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user