mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
push notifications
This commit is contained in:
parent
bbea1bed99
commit
2ed9f2385e
@ -68,7 +68,7 @@ dependencies {
|
||||
implementation libs.androidx.navigation.fragment
|
||||
implementation libs.androidx.navigation.ui
|
||||
implementation libs.androidx.preference
|
||||
implementation "androidx.work:work-runtime-ktx:2.7.1"
|
||||
implementation libs.androidx.work.runtime
|
||||
|
||||
androidTestImplementation libs.androidx.test.junit
|
||||
androidTestImplementation libs.androidx.test.espressoCore
|
||||
|
@ -38,7 +38,7 @@ class MyApp : Application() {
|
||||
StrictMode.setVmPolicy(builder.build())
|
||||
|
||||
/**
|
||||
* initialize the notification
|
||||
* initialize the notification listener in the background
|
||||
*/
|
||||
NotificationHelper.enqueueWork(this)
|
||||
}
|
||||
|
@ -65,6 +65,12 @@ object PreferenceKeys {
|
||||
const val DOWNLOAD_LOCATION = "download_location"
|
||||
const val DOWNLOAD_FOLDER = "download_folder"
|
||||
|
||||
/**
|
||||
* Notifications
|
||||
*/
|
||||
const val NOTIFICATION_ENABLED = "notification_toggle"
|
||||
const val NOTIFICATION_DELAY = "notifcation_delay"
|
||||
|
||||
/**
|
||||
* Advanced
|
||||
*/
|
||||
|
@ -7,6 +7,7 @@ legacySupport = "1.0.0"
|
||||
preference = "1.2.0"
|
||||
extJunit = "1.1.3"
|
||||
espresso = "3.4.0"
|
||||
workRuntime = "2.7.1"
|
||||
circleimageview = "3.1.0"
|
||||
exoplayer = "2.17.1"
|
||||
multidex = "2.0.1"
|
||||
@ -29,6 +30,7 @@ androidx-legacySupport = { group = "androidx.legacy", name = "legacy-support-v4"
|
||||
androidx-preference = { group = "androidx.preference", name = "preference-ktx", version.ref = "preference" }
|
||||
androidx-test-junit = { group = "androidx.test.ext", name = "junit", version.ref = "extJunit" }
|
||||
androidx-test-espressoCore = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso" }
|
||||
androidx-work-runtime = { group = "androidx.work", name="work-runtime-ktx", version.ref="workRuntime" }
|
||||
circleimageview = { group = "de.hdodenhof", name = "circleimageview", version.ref = "circleimageview" }
|
||||
exoplayer = { group = "com.google.android.exoplayer", name = "exoplayer", version.ref = "exoplayer" }
|
||||
exoplayer-extension-mediasession = { group = "com.google.android.exoplayer", name = "extension-mediasession", version.ref = "exoplayer" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user