mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-20 23:52:12 +00:00
50 lines
1.4 KiB
C++
Generated
50 lines
1.4 KiB
C++
Generated
///
|
|
/// hanzohighlightsOnLoad.cpp
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
#ifndef BUILDING_HanzoHIGHLIGHTS_WITH_GENERATED_CMAKE_PROJECT
|
|
#error hanzohighlightsOnLoad.cpp is not being built with the autogenerated CMakeLists.txt project. Is a different CMakeLists.txt building this?
|
|
#endif
|
|
|
|
#include "hanzohighlightsOnLoad.hpp"
|
|
|
|
#include <jni.h>
|
|
#include <fbjni/fbjni.h>
|
|
#include <NitroModules/HybridObjectRegistry.hpp>
|
|
|
|
#include "HybridHanzoHighlights.hpp"
|
|
|
|
namespace margelo::nitro::hanzohighlights {
|
|
|
|
int initialize(JavaVM* vm) {
|
|
return facebook::jni::initialize(vm, []() {
|
|
::margelo::nitro::hanzohighlights::registerAllNatives();
|
|
});
|
|
}
|
|
|
|
|
|
|
|
void registerAllNatives() {
|
|
using namespace margelo::nitro;
|
|
using namespace margelo::nitro::hanzohighlights;
|
|
|
|
// Register native JNI methods
|
|
|
|
|
|
// Register Nitro Hybrid Objects
|
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
"HanzoHighlights",
|
|
[]() -> std::shared_ptr<HybridObject> {
|
|
static_assert(std::is_default_constructible_v<HybridHanzoHighlights>,
|
|
"The HybridObject \"HybridHanzoHighlights\" is not default-constructible! "
|
|
"Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
|
|
return std::make_shared<HybridHanzoHighlights>();
|
|
}
|
|
);
|
|
}
|
|
|
|
} // namespace margelo::nitro::hanzohighlights
|