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

#include "HybridPerformanceToolkitSpecSwift.hpp"
#include "HybridJsFpsTracking.hpp"

@interface PerformanceToolkitAutolinking : NSObject
@end

@implementation PerformanceToolkitAutolinking

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

  HybridObjectRegistry::registerHybridObjectConstructor(
    "PerformanceToolkit",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridPerformanceToolkitSpec> hybridObject = PerformanceToolkit::PerformanceToolkitAutolinking::createPerformanceToolkit();
      return hybridObject;
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "JsFpsTracking",
    []() -> std::shared_ptr<HybridObject> {
      static_assert(std::is_default_constructible_v<HybridJsFpsTracking>,
                    "The HybridObject \"HybridJsFpsTracking\" is not default-constructible! "
                    "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
      return std::make_shared<HybridJsFpsTracking>();
    }
  );
}

@end
