mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove using namespace from header file
Summary: Changelog: [internal] It is recommended to not use `using namespace` in the header file. It changes namespace for anything that imports the header file. Also keeping imports in header file to minimum is recommended to lower build times. Reviewed By: JoshuaGross Differential Revision: D29131371 fbshipit-source-id: ad1868f6200c00023a62a00859d9a05140a12849
This commit is contained in:
committed by
Facebook GitHub Bot
parent
aa43aab77c
commit
30ce8618b9
+2
-1
@@ -5,7 +5,6 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fbjni/fbjni.h>
|
||||
@@ -18,6 +17,8 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
using namespace facebook::jni;
|
||||
|
||||
ComponentNameResolverManager::ComponentNameResolverManager(
|
||||
jni::alias_ref<ComponentNameResolverManager::javaobject> jThis,
|
||||
RuntimeExecutor runtimeExecutor,
|
||||
|
||||
+10
-15
@@ -10,20 +10,14 @@
|
||||
#include <ReactCommon/CallInvokerHolder.h>
|
||||
#include <ReactCommon/RuntimeExecutor.h>
|
||||
#include <fbjni/fbjni.h>
|
||||
#include <jsi/jsi.h>
|
||||
#include <react/jni/JRuntimeExecutor.h>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
|
||||
using namespace facebook::jni;
|
||||
using namespace facebook::jsi;
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class ComponentNameResolverManager
|
||||
: public jni::HybridClass<ComponentNameResolverManager> {
|
||||
: public facebook::jni::HybridClass<ComponentNameResolverManager> {
|
||||
public:
|
||||
static auto constexpr kJavaDescriptor =
|
||||
"Lcom/facebook/react/uimanager/ComponentNameResolverManager;";
|
||||
@@ -31,28 +25,29 @@ class ComponentNameResolverManager
|
||||
constexpr static auto ComponentNameResolverJavaDescriptor =
|
||||
"com/facebook/react/uimanager/ComponentNameResolver";
|
||||
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jhybridobject> jThis,
|
||||
jni::alias_ref<JRuntimeExecutor::javaobject> runtimeExecutor,
|
||||
jni::alias_ref<jobject> componentNameResolver);
|
||||
static facebook::jni::local_ref<jhybriddata> initHybrid(
|
||||
facebook::jni::alias_ref<jhybridobject> jThis,
|
||||
facebook::jni::alias_ref<JRuntimeExecutor::javaobject> runtimeExecutor,
|
||||
facebook::jni::alias_ref<jobject> componentNameResolver);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
private:
|
||||
friend HybridBase;
|
||||
jni::global_ref<ComponentNameResolverManager::javaobject> javaPart_;
|
||||
facebook::jni::global_ref<ComponentNameResolverManager::javaobject> javaPart_;
|
||||
RuntimeExecutor runtimeExecutor_;
|
||||
|
||||
jni::global_ref<jobject> componentNameResolver_;
|
||||
facebook::jni::global_ref<jobject> componentNameResolver_;
|
||||
|
||||
std::set<std::string> componentNames_;
|
||||
|
||||
void installJSIBindings();
|
||||
|
||||
explicit ComponentNameResolverManager(
|
||||
jni::alias_ref<ComponentNameResolverManager::jhybridobject> jThis,
|
||||
facebook::jni::alias_ref<ComponentNameResolverManager::jhybridobject>
|
||||
jThis,
|
||||
RuntimeExecutor runtimeExecutor,
|
||||
jni::alias_ref<jobject> componentNameResolver);
|
||||
facebook::jni::alias_ref<jobject> componentNameResolver);
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
|
||||
Reference in New Issue
Block a user