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

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

#include "HybridTfliteModule.hpp"
#include "HybridAssetLoaderSpecSwift.hpp"

@interface NitroTfliteAutolinking : NSObject
@end

@implementation NitroTfliteAutolinking

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

  HybridObjectRegistry::registerHybridObjectConstructor(
    "TfliteModule",
    []() -> std::shared_ptr<HybridObject> {
      static_assert(std::is_default_constructible_v<HybridTfliteModule>,
                    "The HybridObject \"HybridTfliteModule\" is not default-constructible! "
                    "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
      return std::make_shared<HybridTfliteModule>();
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "AssetLoader",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridAssetLoaderSpec> hybridObject = NitroTflite::NitroTfliteAutolinking::createAssetLoader();
      return hybridObject;
    }
  );
}

@end
