mirror of
https://github.com/etesync/android
synced 2024-12-27 17:08:11 +00:00
8b5f87c2d4
This commit includes the major changes between DAVdroid and EteSync. It adjusts the app to use the EteSync protocol and server. It includes some ugliness still, and it's a squash of many ugly snapshot commits while hacking on the initial DAVdroid code. History should be "clean" from this point onwards.
42 lines
1.7 KiB
Java
42 lines
1.7 KiB
Java
/*
|
||
* Copyright © 2013 – 2015 Ricki Hirner (bitfire web engineering).
|
||
* 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
|
||
*/
|
||
package at.bitfire.davdroid;
|
||
|
||
import android.net.Uri;
|
||
|
||
import static at.bitfire.davdroid.BuildConfig.DEBUG_REMOTE_URL;
|
||
|
||
public class Constants {
|
||
|
||
public static final String
|
||
ACCOUNT_TYPE = "bitfire.at.davdroid";
|
||
|
||
// notification IDs
|
||
public final static int
|
||
NOTIFICATION_ACCOUNT_SETTINGS_UPDATED = 0,
|
||
NOTIFICATION_EXTERNAL_FILE_LOGGING = 1,
|
||
NOTIFICATION_REFRESH_COLLECTIONS = 2,
|
||
NOTIFICATION_CONTACTS_SYNC = 10,
|
||
NOTIFICATION_CALENDAR_SYNC = 11,
|
||
NOTIFICATION_TASK_SYNC = 12,
|
||
NOTIFICATION_PERMISSIONS = 20;
|
||
|
||
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);
|
||
|
||
public static final int DEFAULT_SYNC_INTERVAL = 4 * 3600; // 4 hours
|
||
|
||
}
|