Bug 1140241 - Add ReadingListConstants.
authorRichard Newman <rnewman@mozilla.com>
Thu, 05 Mar 2015 19:06:47 -0800
changeset 232133 4663931493f9d360b59d44be5e882b094995f296
parent 232132 73bf28f22579ee650072b77eb4570b5954269c49
child 232134 6caebaafc4df6801ae990656b4314fafe11c531f
push id28371
push usercbook@mozilla.com
push dateFri, 06 Mar 2015 11:54:23 +0000
treeherdermozilla-central@3c7cbc756a6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1140241
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1140241 - Add ReadingListConstants.
mobile/android/base/android-services.mozbuild
mobile/android/base/reading/ReadingListConstants.java
--- a/mobile/android/base/android-services.mozbuild
+++ b/mobile/android/base/android-services.mozbuild
@@ -1156,11 +1156,12 @@ sync_java_files = [
     'sync/UnknownSynchronizerConfigurationVersionException.java',
     'sync/Utils.java',
     'tokenserver/TokenServerClient.java',
     'tokenserver/TokenServerClientDelegate.java',
     'tokenserver/TokenServerException.java',
     'tokenserver/TokenServerToken.java',
 ]
 reading_list_service_java_files = [
+    'reading/ReadingListConstants.java',
     'reading/ReadingListSyncAdapter.java',
     'reading/ReadingListSyncService.java',
 ]
new file mode 100644
--- /dev/null
+++ b/mobile/android/base/reading/ReadingListConstants.java
@@ -0,0 +1,14 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.gecko.reading;
+
+import org.mozilla.gecko.AppConstants;
+
+public class ReadingListConstants {
+  public static final String GLOBAL_LOG_TAG = "FxReadingList";
+  public static final String USER_AGENT = "Firefox-Android-FxReader/" + AppConstants.MOZ_APP_VERSION + " (" + AppConstants.MOZ_APP_DISPLAYNAME + ")";
+  public static final String DEFAULT_DEV_ENDPOINT = "https://readinglist.dev.mozaws.net/v1/";
+  public static final String DEFAULT_PROD_ENDPOINT = null;     // TODO
+}