
/**
 * 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 "RNGoogleLeaderboardsSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_login(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, PromiseKind, "login", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_checkAuth(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, PromiseKind, "checkAuth", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_submitScore(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, PromiseKind, "submitScore", "(Ljava/lang/String;DLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_onShowLeaderboardsRequested(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, PromiseKind, "onShowLeaderboardsRequested", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_showLeaderboard(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, PromiseKind, "showLeaderboard", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_showAchievements(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, PromiseKind, "showAchievements", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_unlockAchievement(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, PromiseKind, "unlockAchievement", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_incrementAchievement(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, PromiseKind, "incrementAchievement", "(Ljava/lang/String;DLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

NativeGoogleLeaderboardsSpecJSI::NativeGoogleLeaderboardsSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["login"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_login};
  methodMap_["checkAuth"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_checkAuth};
  methodMap_["submitScore"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsSpecJSI_submitScore};
  methodMap_["onShowLeaderboardsRequested"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_onShowLeaderboardsRequested};
  methodMap_["showLeaderboard"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsSpecJSI_showLeaderboard};
  methodMap_["showAchievements"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_showAchievements};
  methodMap_["unlockAchievement"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsSpecJSI_unlockAchievement};
  methodMap_["incrementAchievement"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsSpecJSI_incrementAchievement};
}

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

} // namespace facebook::react
