Files
react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/ReactNativeConfig.java
T
Joshua Gross 51b868728a Attempt to fix T40449334 by adding DoNotStrip to interface
Summary: Java symbols are likely being stripped at compile-time, preventing Reflection from working properly in C++. Should fix T40449334.

Reviewed By: mdvacca

Differential Revision: D14070629

fbshipit-source-id: f180fa3294b66f660ab1568250c47432cbf0c774
2019-02-14 15:38:43 -08:00

46 lines
1.2 KiB
Java

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.fabric;
import com.facebook.proguard.annotations.DoNotStrip;
// This is a wrapper for the ReactNativeConfig object in C++
@DoNotStrip
public interface ReactNativeConfig {
/**
* Get a boolean param by string name. Default should be false.
*
* @param param The string name of the parameter being requested.
*/
@DoNotStrip
boolean getBool(String param);
/**
* Get an integer param by string name. Default should be 0.
*
* @param param The string name of the parameter being requested.
*/
@DoNotStrip
int getInt64(String param);
/**
* Get a string param by string name. Default should be "", empty string.
*
* @param param The string name of the parameter being requested.
*/
@DoNotStrip
String getString(String param);
/**
* Get a double param by string name. Default should be 0.
*
* @param param The string name of the parameter being requested.
*/
@DoNotStrip
double getDouble(String param);
}