2012-07-12 20:25:35 -04:00
|
|
|
package com.newsblur.util;
|
|
|
|
|
|
|
|
public class AppConstants {
|
2013-07-10 21:56:15 +00:00
|
|
|
|
|
|
|
// Enables high-volume logging that may be useful for debugging. This should
|
|
|
|
// never be enabled for releases, as it not only slows down the app considerably,
|
|
|
|
// it will log sensitive info such as passwords!
|
2014-01-14 11:25:28 +00:00
|
|
|
public static final boolean VERBOSE_LOG = false;
|
2013-07-10 21:56:15 +00:00
|
|
|
|
2012-07-12 20:25:35 -04:00
|
|
|
public static final int STATE_ALL = 0;
|
|
|
|
public static final int STATE_SOME = 1;
|
|
|
|
public static final int STATE_BEST = 2;
|
2012-09-14 01:17:58 -04:00
|
|
|
|
|
|
|
public static final int REGISTRATION_DEFAULT = 0;
|
|
|
|
public static final int REGISTRATION_STARTED = 1;
|
|
|
|
public static final int REGISTRATION_COMPLETED = 1;
|
|
|
|
|
2012-09-10 15:31:51 -04:00
|
|
|
public static final String FOLDER_PRE = "folder_collapsed";
|
2014-01-21 23:16:39 +00:00
|
|
|
|
|
|
|
// reading view font sizes, in em
|
2014-01-21 16:11:59 -08:00
|
|
|
public static final float[] READING_FONT_SIZE = {0.75f, 0.9f, 1.0f, 1.2f, 1.5f, 2.0f};
|
2012-09-10 15:31:51 -04:00
|
|
|
|
2013-04-17 10:57:16 +00:00
|
|
|
// the name to give the "root" folder in the local DB since the API does not assign it one.
|
|
|
|
// this name should be unique and such that it will sort to the beginning of a list, ideally.
|
|
|
|
public static final String ROOT_FOLDER = "0000_TOP_LEVEL_";
|
2013-04-26 07:17:09 +00:00
|
|
|
|
|
|
|
public static final String LAST_APP_VERSION = "LAST_APP_VERSION";
|
2013-05-10 21:06:41 +00:00
|
|
|
|
2013-05-13 22:12:31 +00:00
|
|
|
// a pref for the time we completed the last full sync of the feed/fodler list
|
|
|
|
public static final String LAST_SYNC_TIME = "LAST_SYNC_TIME";
|
|
|
|
|
|
|
|
// how long to wait before auto-syncing the feed/folder list
|
2014-06-05 04:04:14 -07:00
|
|
|
public static final long AUTO_SYNC_TIME_MILLIS = 10L * 60L * 1000L;
|
2013-07-03 08:49:31 +00:00
|
|
|
|
|
|
|
// how many total attemtps to make at a single API call
|
|
|
|
public static final int MAX_API_TRIES = 3;
|
|
|
|
|
|
|
|
// the base amount for how long to sleep during exponential API failure backoff
|
|
|
|
public static final long API_BACKOFF_BASE_MILLIS = 500L;
|
2013-07-23 02:36:10 +00:00
|
|
|
|
|
|
|
// when generating a request for multiple feeds, limit the total number requested to prevent
|
|
|
|
// unworkably long URLs
|
|
|
|
public static final int MAX_FEED_LIST_SIZE = 250;
|
2014-01-23 03:31:51 +00:00
|
|
|
|
|
|
|
// when reading stories, how many stories worth of buffer to keep loaded ahead of the user
|
|
|
|
public static final int READING_STORY_PRELOAD = 5;
|
2014-06-04 13:46:10 -07:00
|
|
|
|
2014-06-28 20:59:24 -07:00
|
|
|
// max old stories to keep in the DB per feed before fetching new unreads
|
2014-06-30 19:58:04 -07:00
|
|
|
public static final int MAX_READ_STORIES_STORED = 500;
|
2014-06-05 04:04:14 -07:00
|
|
|
|
|
|
|
// how many unread stories to fetch via hash at a time
|
2014-08-20 16:47:32 -07:00
|
|
|
public static final int UNREAD_FETCH_BATCH_SIZE = 25;
|
2014-07-09 17:01:09 -07:00
|
|
|
|
2014-07-24 03:23:06 -07:00
|
|
|
// how many images to prefetch before updating the countdown UI
|
|
|
|
public static final int IMAGE_PREFETCH_BATCH_SIZE = 10;
|
|
|
|
|
2012-07-12 20:25:35 -04:00
|
|
|
}
|