2015-03-08 22:30:03 +00:00
|
|
|
|
/*
|
2015-05-27 08:48:27 +00:00
|
|
|
|
* Copyright © 2013 – 2015 Ricki Hirner (bitfire web engineering).
|
2014-12-20 19:21:46 +00:00
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
|
* are made available under the terms of the GNU Public License v3.0
|
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
|
* http://www.gnu.org/licenses/gpl.html
|
2015-03-08 22:30:03 +00:00
|
|
|
|
*/
|
2017-02-27 12:57:57 +00:00
|
|
|
|
package com.etesync.syncadapter;
|
2014-12-20 19:21:46 +00:00
|
|
|
|
|
2015-11-24 17:36:25 +00:00
|
|
|
|
import android.net.Uri;
|
|
|
|
|
|
2017-02-27 12:57:57 +00:00
|
|
|
|
import static com.etesync.syncadapter.BuildConfig.DEBUG_REMOTE_URL;
|
2017-01-02 19:39:10 +00:00
|
|
|
|
|
2014-12-20 19:21:46 +00:00
|
|
|
|
public class Constants {
|
2016-01-15 23:53:05 +00:00
|
|
|
|
|
2014-12-20 19:21:46 +00:00
|
|
|
|
public static final String
|
2017-02-17 15:52:51 +00:00
|
|
|
|
ACCOUNT_TYPE = "com.etesync.syncadapter";
|
2015-05-22 01:06:30 +00:00
|
|
|
|
|
2015-10-15 13:36:55 +00:00
|
|
|
|
// notification IDs
|
|
|
|
|
public final static int
|
2016-03-20 10:38:27 +00:00
|
|
|
|
NOTIFICATION_ACCOUNT_SETTINGS_UPDATED = 0,
|
|
|
|
|
NOTIFICATION_EXTERNAL_FILE_LOGGING = 1,
|
2016-03-23 21:01:52 +00:00
|
|
|
|
NOTIFICATION_REFRESH_COLLECTIONS = 2,
|
2015-10-15 13:36:55 +00:00
|
|
|
|
NOTIFICATION_CONTACTS_SYNC = 10,
|
|
|
|
|
NOTIFICATION_CALENDAR_SYNC = 11,
|
2016-04-10 13:41:10 +00:00
|
|
|
|
NOTIFICATION_TASK_SYNC = 12,
|
|
|
|
|
NOTIFICATION_PERMISSIONS = 20;
|
2015-10-15 13:36:55 +00:00
|
|
|
|
|
2017-03-08 17:27:06 +00:00
|
|
|
|
public static final Uri webUri = Uri.parse((DEBUG_REMOTE_URL == null) ? "https://www.etesync.com/" : DEBUG_REMOTE_URL);
|
2017-01-02 19:39:10 +00:00
|
|
|
|
public static final Uri contactUri = Uri.parse("mailto:contact.app@etesync.com");
|
|
|
|
|
public static final Uri registrationUrl = webUri.buildUpon().appendEncodedPath("accounts/signup/").build();
|
|
|
|
|
public static final Uri reportIssueUri = Uri.parse("https://github.com/etesync/android/issues");
|
|
|
|
|
public static final Uri feedbackUri = reportIssueUri;
|
2017-02-28 23:25:25 +00:00
|
|
|
|
public static final Uri dashboard = webUri.buildUpon().appendEncodedPath("dashboard/").build();
|
2017-01-02 19:39:10 +00:00
|
|
|
|
public static final Uri faqUri = webUri.buildUpon().appendEncodedPath("faq/").build();
|
2017-03-02 13:47:32 +00:00
|
|
|
|
public static final Uri helpUri = webUri.buildUpon().appendEncodedPath("user-guide/").build();
|
2017-01-02 19:39:10 +00:00
|
|
|
|
|
|
|
|
|
public static final Uri serviceUrl = Uri.parse((DEBUG_REMOTE_URL == null) ? "https://api.etesync.com/" : DEBUG_REMOTE_URL);
|
2016-01-15 23:53:05 +00:00
|
|
|
|
|
2016-12-28 21:11:47 +00:00
|
|
|
|
public static final int DEFAULT_SYNC_INTERVAL = 4 * 3600; // 4 hours
|
2017-02-20 15:07:09 +00:00
|
|
|
|
public static final long DEFAULT_RETRY_DELAY = 30 * 60; // 30 minutes
|
2017-02-20 19:57:03 +00:00
|
|
|
|
|
2017-03-23 13:07:12 +00:00
|
|
|
|
public final static String KEY_ACCOUNT = "account",
|
|
|
|
|
KEY_COLLECTION_INFO = "collectionInfo";
|
2014-12-20 19:21:46 +00:00
|
|
|
|
}
|