The best way to control Claude Code, Codex and more from any computer or phone
| 1 | /// |
| 2 | /// t3highlightsOnLoad.cpp |
| 3 | /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. |
| 4 | /// https://github.com/mrousavy/nitro |
| 5 | /// Copyright © Marc Rousavy @ Margelo |
| 6 | /// |
| 7 | |
| 8 | #ifndef BUILDING_T3HIGHLIGHTS_WITH_GENERATED_CMAKE_PROJECT |
| 9 | #error t3highlightsOnLoad.cpp is not being built with the autogenerated CMakeLists.txt project. Is a different CMakeLists.txt building this? |
| 10 | #endif |
| 11 | |
| 12 | #include "t3highlightsOnLoad.hpp" |
| 13 | |
| 14 | #include <jni.h> |
| 15 | #include <fbjni/fbjni.h> |
| 16 | #include <NitroModules/HybridObjectRegistry.hpp> |
| 17 | |
| 18 | #include "HybridT3Highlights.hpp" |
| 19 | |
| 20 | namespace margelo::nitro::t3highlights { |
| 21 | |
| 22 | int initialize(JavaVM* vm) { |
| 23 | return facebook::jni::initialize(vm, []() { |
| 24 | ::margelo::nitro::t3highlights::registerAllNatives(); |
| 25 | }); |
| 26 | } |
| 27 | |
| 28 | |
| 29 | |
| 30 | void registerAllNatives() { |
| 31 | using namespace margelo::nitro; |
| 32 | using namespace margelo::nitro::t3highlights; |
| 33 | |
| 34 | // Register native JNI methods |
| 35 | |
| 36 | |
| 37 | // Register Nitro Hybrid Objects |
| 38 | HybridObjectRegistry::registerHybridObjectConstructor( |
| 39 | "T3Highlights", |
| 40 | []() -> std::shared_ptr<HybridObject> { |
| 41 | static_assert(std::is_default_constructible_v<HybridT3Highlights>, |
| 42 | "The HybridObject \"HybridT3Highlights\" is not default-constructible! " |
| 43 | "Create a public constructor that takes zero arguments to be able to autolink this HybridObject."); |
| 44 | return std::make_shared<HybridT3Highlights>(); |
| 45 | } |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | } // namespace margelo::nitro::t3highlights |