2022-09-08 22:11:57 +05:30
|
|
|
package com.github.libretube.constants
|
2022-06-14 22:38:02 +05:30
|
|
|
|
2022-07-05 14:44:51 +05:30
|
|
|
/**
|
|
|
|
* API link for the update checker
|
|
|
|
*/
|
2022-06-14 22:38:02 +05:30
|
|
|
const val GITHUB_API_URL = "https://api.github.com/repos/libre-tube/LibreTube/releases/latest"
|
2022-07-05 14:44:51 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Links for the about fragment
|
|
|
|
*/
|
2022-06-14 22:38:02 +05:30
|
|
|
const val WEBSITE_URL = "https://libre-tube.github.io/"
|
2022-07-03 18:36:17 +05:30
|
|
|
const val GITHUB_URL = "https://github.com/libre-tube/LibreTube"
|
2022-06-19 02:48:36 +05:30
|
|
|
const val PIPED_GITHUB_URL = "https://github.com/TeamPiped/Piped"
|
2022-07-31 18:27:23 +05:30
|
|
|
const val WEBLATE_URL = "https://hosted.weblate.org/projects/libretube/libretube/"
|
2022-08-15 14:35:43 +05:30
|
|
|
const val LICENSE_URL = "https://gnu.org/"
|
2022-07-05 14:44:51 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Social media links for the community fragment
|
|
|
|
*/
|
2022-07-05 14:57:21 +05:30
|
|
|
const val TELEGRAM_URL = "https://t.me/libretube"
|
|
|
|
const val MATRIX_URL = "https://matrix.to/#/#LibreTube:matrix.org"
|
2022-07-05 14:52:55 +05:30
|
|
|
const val DISCORD_URL = "https://discord.com/invite/Qc34xCj2GV"
|
2022-07-05 14:57:21 +05:30
|
|
|
const val REDDIT_URL = "https://www.reddit.com/r/Libretube/"
|
|
|
|
const val TWITTER_URL = "https://twitter.com/libretube"
|
2022-07-12 01:18:59 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Share Dialog
|
|
|
|
*/
|
2022-11-14 04:49:43 +05:30
|
|
|
const val PIPED_FRONTEND_URL = "https://piped.video"
|
2022-07-12 01:30:56 +05:30
|
|
|
const val YOUTUBE_FRONTEND_URL = "https://www.youtube.com"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrofit Instance
|
|
|
|
*/
|
|
|
|
const val PIPED_API_URL = "https://pipedapi.kavin.rocks/"
|
2022-09-08 22:59:35 +05:30
|
|
|
const val PIPED_INSTANCES_URL = "https://piped-instances.kavin.rocks/"
|
2022-12-20 21:54:53 +05:30
|
|
|
const val FALLBACK_INSTANCES_URL = "https://instances.tokhmi.xyz"
|
2022-07-30 14:51:18 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Notification IDs
|
|
|
|
*/
|
2022-07-30 16:13:43 +05:30
|
|
|
const val PLAYER_NOTIFICATION_ID = 1
|
2022-08-26 12:12:13 +05:30
|
|
|
const val DOWNLOAD_PENDING_NOTIFICATION_ID = 2
|
|
|
|
const val DOWNLOAD_FAILURE_NOTIFICATION_ID = 3
|
|
|
|
const val DOWNLOAD_SUCCESS_NOTIFICATION_ID = 4
|
2022-12-16 22:14:21 +05:30
|
|
|
const val DOWNLOAD_PROGRESS_NOTIFICATION_ID = 5
|
2022-07-30 14:51:18 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Notification Channel IDs
|
|
|
|
*/
|
|
|
|
const val DOWNLOAD_CHANNEL_ID = "download_service"
|
|
|
|
const val BACKGROUND_CHANNEL_ID = "background_mode"
|
|
|
|
const val PUSH_CHANNEL_ID = "notification_worker"
|
2022-08-13 23:34:07 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Database
|
|
|
|
*/
|
|
|
|
const val DATABASE_NAME = "LibreTubeDatabase"
|
2022-08-20 13:12:24 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* New Streams notifications
|
|
|
|
*/
|
2022-08-21 14:01:55 +05:30
|
|
|
const val NOTIFICATION_WORK_NAME = "NotificationService"
|