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 String SHELL_APP_SCHEME = null;
17   public static final String RELEASE_CHANNEL = "default";
18   public static boolean SHOW_LOADING_VIEW_IN_SHELL_APP = false;
19   public static boolean ARE_REMOTE_UPDATES_ENABLED = true;
20   public static boolean UPDATES_CHECK_AUTOMATICALLY = true;
21   public static int UPDATES_FALLBACK_TO_CACHE_TIMEOUT = 0;
22   public static final List<Constants.EmbeddedResponse> EMBEDDED_RESPONSES;
23   public static boolean FCM_ENABLED = true;
24 
25   static {
26     List<Constants.EmbeddedResponse> embeddedResponses = new ArrayList<>();
27 
28     // ADD EMBEDDED RESPONSES HERE
29     // START EMBEDDED RESPONSES
30     // END EMBEDDED RESPONSES
31     EMBEDDED_RESPONSES = embeddedResponses;
32   }
33 
34   // Called from expoview/Constants
35   public static Constants.ExpoViewAppConstants get() {
36     Constants.ExpoViewAppConstants constants = new Constants.ExpoViewAppConstants();
37     constants.VERSION_NAME = VERSION_NAME;
38     constants.INITIAL_URL = INITIAL_URL;
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.UPDATES_CHECK_AUTOMATICALLY = UPDATES_CHECK_AUTOMATICALLY;
44     constants.UPDATES_FALLBACK_TO_CACHE_TIMEOUT = UPDATES_FALLBACK_TO_CACHE_TIMEOUT;
45     constants.EMBEDDED_RESPONSES = EMBEDDED_RESPONSES;
46     constants.ANDROID_VERSION_CODE = BuildConfig.VERSION_CODE;
47     constants.FCM_ENABLED = FCM_ENABLED;
48     return constants;
49   }
50 }
51