///
/// BleNitroAutolinking.mm
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>
#import "BleNitro-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "HybridNativeBleNitroSpecSwift.hpp"
#include "HybridNativeBleNitroFactorySpecSwift.hpp"

@interface BleNitroAutolinking : NSObject
@end

@implementation BleNitroAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::co::zyke::ble;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "NativeBleNitro",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridNativeBleNitroSpec> hybridObject = BleNitro::BleNitroAutolinking::createNativeBleNitro();
      return hybridObject;
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "NativeBleNitroFactory",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridNativeBleNitroFactorySpec> hybridObject = BleNitro::BleNitroAutolinking::createNativeBleNitroFactory();
      return hybridObject;
    }
  );
}

@end
