
/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleJniCpp.js
 */

#include "MMKVStorageSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeMMKVStorageSpecJSI_install(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "install", "()Z", args, count, cachedMethodId);
}

NativeMMKVStorageSpecJSI::NativeMMKVStorageSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["install"] = MethodMetadata {0, __hostFunction_NativeMMKVStorageSpecJSI_install};
}

std::shared_ptr<TurboModule> MMKVStorageSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
  if (moduleName == "MMKVStorage") {
    return std::make_shared<NativeMMKVStorageSpecJSI>(params);
  }
  return nullptr;
}

} // namespace facebook::react
