///
/// NitroBatteryAutolinking.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 "NitroBattery-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "HybridNitroBatterySpecSwift.hpp"

@interface NitroBatteryAutolinking : NSObject
@end

@implementation NitroBatteryAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::battery;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "NitroBattery",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridNitroBatterySpec> hybridObject = NitroBattery::NitroBatteryAutolinking::createNitroBattery();
      return hybridObject;
    }
  );
}

@end
