mirror of
https://github.com/status-im/react-native.git
synced 2025-02-15 10:57:00 +00:00
Remove unnecessary #includes to reduce dependencies
Reviewed By: davidaurelio Differential Revision: D7803909 fbshipit-source-id: 2ccafdbfcb786c4c5f703714fb0c92cda1026cef
This commit is contained in:
parent
d11fdcfb93
commit
ef258b0106
@ -1,7 +1,6 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
#include "JInspector.h"
|
||||
#include <jschelpers/JavaScriptCore.h>
|
||||
|
||||
#ifdef WITH_INSPECTOR
|
||||
|
||||
|
@ -2,14 +2,9 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <jschelpers/JSCHelpers.h>
|
||||
#include <cxxreact/JSCExecutor.h>
|
||||
#include <cxxreact/Platform.h>
|
||||
#include <fb/fbjni.h>
|
||||
#include <fb/glog_init.h>
|
||||
#include <fb/log.h>
|
||||
#include <folly/dynamic.h>
|
||||
#include <jschelpers/Value.h>
|
||||
|
||||
#include "AndroidJSCFactory.h"
|
||||
#include "CatalystInstanceImpl.h"
|
||||
|
@ -7,12 +7,11 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include <folly/Conv.h>
|
||||
#include <jschelpers/noncopyable.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class JSModulesUnbundle : noncopyable {
|
||||
class JSModulesUnbundle {
|
||||
/**
|
||||
* Represents the set of JavaScript modules that the application consists of.
|
||||
* The source code of each module can be retrieved by module ID.
|
||||
@ -31,8 +30,12 @@ public:
|
||||
std::string name;
|
||||
std::string code;
|
||||
};
|
||||
JSModulesUnbundle() {}
|
||||
virtual ~JSModulesUnbundle() {}
|
||||
virtual Module getModule(uint32_t moduleId) const = 0;
|
||||
|
||||
private:
|
||||
JSModulesUnbundle(const JSModulesUnbundle&) = delete;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <utility>
|
||||
|
||||
#include <cxxreact/JSModulesUnbundle.h>
|
||||
#include <jschelpers/noncopyable.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
@ -18,7 +17,7 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class RN_EXPORT RAMBundleRegistry : noncopyable {
|
||||
class RN_EXPORT RAMBundleRegistry {
|
||||
public:
|
||||
constexpr static uint32_t MAIN_BUNDLE_ID = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user