1 package host.exp.exponent.generated; 2 3 import com.facebook.common.internal.DoNotStrip; 4 5 import java.util.ArrayList; 6 import java.util.List; 7 8 import host.exp.exponent.BuildConfig; 9 import host.exp.exponent.Constants; 10 11 @DoNotStrip 12 public class AppConstants { 13 14 public static final String VERSION_NAME = null; 15 public static String INITIAL_URL = null; 16 public static final boolean IS_DETACHED = false; 17 public static final String SHELL_APP_SCHEME = null; 18 public static final String RELEASE_CHANNEL = "default"; 19 public static boolean SHOW_LOADING_VIEW_IN_SHELL_APP = false; 20 public static boolean ARE_REMOTE_UPDATES_ENABLED = true; 21 public static final List<Constants.EmbeddedResponse> EMBEDDED_RESPONSES; 22 public static boolean FCM_ENABLED = true; 23 24 static { 25 List<Constants.EmbeddedResponse> embeddedResponses = new ArrayList<>(); 26 27 // ADD EMBEDDED RESPONSES HERE 28 // START EMBEDDED RESPONSES 29 // END EMBEDDED RESPONSES 30 EMBEDDED_RESPONSES = embeddedResponses; 31 } 32 33 // Called from expoview/Constants 34 public static Constants.ExpoViewAppConstants get() { 35 Constants.ExpoViewAppConstants constants = new Constants.ExpoViewAppConstants(); 36 constants.VERSION_NAME = VERSION_NAME; 37 constants.INITIAL_URL = INITIAL_URL; 38 constants.IS_DETACHED = IS_DETACHED; 39 constants.SHELL_APP_SCHEME = SHELL_APP_SCHEME; 40 constants.RELEASE_CHANNEL = RELEASE_CHANNEL; 41 constants.SHOW_LOADING_VIEW_IN_SHELL_APP = SHOW_LOADING_VIEW_IN_SHELL_APP; 42 constants.ARE_REMOTE_UPDATES_ENABLED = ARE_REMOTE_UPDATES_ENABLED; 43 constants.EMBEDDED_RESPONSES = EMBEDDED_RESPONSES; 44 constants.ANDROID_VERSION_CODE = BuildConfig.VERSION_CODE; 45 constants.FCM_ENABLED = FCM_ENABLED; 46 return constants; 47 } 48 } 49