Rename ReactNativeConfig.getInt64 -> ReactNativeConfig.getLong

Summary:
In this I'm renaming ReactNativeConfig.getInt64 -> ReactNativeConfig.getLong

changelog: [internal] internal

Reviewed By: javache, philIip

Differential Revision: D33901536

fbshipit-source-id: 688aff9a849299eb8ad904b75b03d7fb5f0d8172
This commit is contained in:
David Vacca
2022-02-15 15:21:38 -08:00
committed by Facebook GitHub Bot
parent 45af635b1e
commit 6ab5bb6869
3 changed files with 4 additions and 4 deletions
@@ -19,7 +19,7 @@ public class EmptyReactNativeConfig implements ReactNativeConfig {
}
@Override
public int getInt64(final String s) {
public long getInt64(final String s) {
return 0;
}
@@ -31,12 +31,12 @@ public interface ReactNativeConfig {
boolean getBool(@NonNull String param);
/**
* Get an integer param by string name. Default should be 0.
* Get a Long param by string name. Default should be 0.
*
* @param param The string name of the parameter being requested.
*/
@DoNotStrip
int getInt64(@NonNull String param);
long getInt64(@NonNull String param);
/**
* Get a string param by string name. Default should be "", empty string.
@@ -29,7 +29,7 @@ std::string ReactNativeConfigHolder::getString(const std::string &param) const {
int64_t ReactNativeConfigHolder::getInt64(const std::string &param) const {
static const auto method = facebook::jni::findClassStatic(
"com/facebook/react/fabric/ReactNativeConfig")
->getMethod<jint(jstring)>("getInt64");
->getMethod<jlong(jstring)>("getInt64");
return method(reactNativeConfig_, facebook::jni::make_jstring(param).get());
}