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
|
|
|
|
*/
|
2014-12-20 19:21:46 +00:00
|
|
|
|
package at.bitfire.davdroid;
|
|
|
|
|
|
2015-11-24 17:36:25 +00:00
|
|
|
|
import android.net.Uri;
|
|
|
|
|
|
2017-01-02 19:39:10 +00:00
|
|
|
|
import static at.bitfire.davdroid.BuildConfig.DEBUG_REMOTE_URL;
|
|
|
|
|
|
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
|
2016-01-08 16:57:51 +00:00
|
|
|
|
ACCOUNT_TYPE = "bitfire.at.davdroid";
|
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-01-02 19:39:10 +00:00
|
|
|
|
public static final Uri webUri = Uri.parse("https://www.etesync.com/");
|
|
|
|
|
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;
|
|
|
|
|
public static final Uri faqUri = webUri.buildUpon().appendEncodedPath("faq/").build();
|
|
|
|
|
public static final Uri helpUri = faqUri;
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2014-12-20 19:21:46 +00:00
|
|
|
|
}
|