feat: logging to file
This commit is contained in:
parent
1028ac66cb
commit
dbce7c5b29
67 changed files with 475 additions and 324 deletions
|
@ -7,7 +7,7 @@ import android.content.Context
|
|||
import android.content.Intent
|
||||
import ani.dantotsu.currContext
|
||||
import ani.dantotsu.isOnline
|
||||
import ani.dantotsu.logger
|
||||
import ani.dantotsu.util.Logger
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.subcriptions.Subscription.Companion.defaultTime
|
||||
|
@ -22,7 +22,7 @@ class AlarmReceiver : BroadcastReceiver() {
|
|||
override fun onReceive(context: Context?, intent: Intent?) {
|
||||
when (intent?.action) {
|
||||
Intent.ACTION_BOOT_COMPLETED -> tryWith(true) {
|
||||
logger("Starting Dantotsu Subscription Service on Boot")
|
||||
Logger.log("Starting Dantotsu Subscription Service on Boot")
|
||||
context?.startSubscription()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ import ani.dantotsu.parsers.Episode
|
|||
import ani.dantotsu.parsers.MangaChapter
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.util.Logger
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
|
@ -27,7 +28,7 @@ class Subscription {
|
|||
alreadyStarted = true
|
||||
SubscriptionWorker.enqueue(this)
|
||||
AlarmReceiver.alarm(this)
|
||||
} else logger("Already Subscribed")
|
||||
} else Logger.log("Already Subscribed")
|
||||
}
|
||||
|
||||
private var currentlyPerforming = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue