34 lines
1.2 KiB
Dart
34 lines
1.2 KiB
Dart
/// Application-wide constants
|
|
class AppConstants {
|
|
AppConstants._();
|
|
|
|
// App info
|
|
static const String appName = 'Worldhopper';
|
|
|
|
// Database
|
|
static const String databaseName = 'worldhopper.db';
|
|
static const int databaseVersion = 10;
|
|
|
|
// Cache settings
|
|
static const int imageCacheMaxAgeDays = 7;
|
|
static const int imageCacheMaxCount = 200;
|
|
|
|
// OPDS-PSE namespace
|
|
static const String opdsPseNamespace = 'http://vaemendis.net/opds-pse/ns';
|
|
static const String opdsPseStreamRel = 'http://vaemendis.net/opds-pse/stream';
|
|
|
|
// Atom namespaces
|
|
static const String atomNamespace = 'http://www.w3.org/2005/Atom';
|
|
static const String dctermsNamespace = 'http://purl.org/dc/terms/';
|
|
|
|
// Route names
|
|
static const String routeServerList = '/';
|
|
static const String routeLibrary = '/library';
|
|
static const String routeSettings = '/settings';
|
|
static const String routeAddServer = '/add-server';
|
|
static const String routeEditServer = '/edit-server';
|
|
static const String routeBrowse = '/browse';
|
|
static const String routePublicationDetail = '/publication';
|
|
static const String routeReader = '/reader';
|
|
static const String routeEpubReader = '/epub-reader';
|
|
}
|