aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-22 22:36:48 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-22 22:36:48 -0600
commit6256c457ce6fe49f564e9d5c718d3116f3a0d9c0 (patch)
tree8127db7ef6bee356e2d1145a3b03223780af62fd
parent0d85802f05fa0409b65891dce8fffe98d4d8b464 (diff)
downloadetbsa-trackermap-mobile-6256c457ce6fe49f564e9d5c718d3116f3a0d9c0.tar.gz
etbsa-trackermap-mobile-6256c457ce6fe49f564e9d5c718d3116f3a0d9c0.tar.bz2
etbsa-trackermap-mobile-6256c457ce6fe49f564e9d5c718d3116f3a0d9c0.zip
Removed more references to Log.d in controllers
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt16
1 files changed, 0 insertions, 16 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
index 82168da..b60a034 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt
@@ -17,7 +17,6 @@
*/
package mx.trackermap.TrackerMap.controllers
-import android.util.Log
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.flow.MutableStateFlow
@@ -61,10 +60,6 @@ class ReportController(
}
val (currentDate, previousDate) = ReportDates.getDates(reportPeriod)
- Log.d("UnitReportsVM", "Current report type: $reportType")
- Log.d("UnitReportsVM", "Current report period: $reportType")
- Log.d("UnitReportsVM", "Current date:${currentDate}")
- Log.d("UnitReportsVM", "Previous date:${previousDate}")
if (!xlsx) {
reportFlow.value = Report.LoadingReport
@@ -84,15 +79,11 @@ class ReportController(
to: String,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching positions")
-
if (!xlsx) {
val result = reportsApi.reportsRouteGet(from, to, deviceId)
- Log.d("UnitReportsVM", "Positions report: $result")
reportFlow.value = Report.PositionsReport(result)
} else {
val result = reportsApi.reportsRouteGetXlsx(from, to, deviceId)
- Log.d("UnitReportsVM", "Positions report: $result")
reportFlow.value = Report.XlsxReport(result)
}
@@ -105,7 +96,6 @@ class ReportController(
types: List<EventInformation.Type>,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching events")
if (!xlsx) {
val positionsResult = reportsApi.reportsRouteGet(from, to, deviceId)
@@ -123,14 +113,12 @@ class ReportController(
))
}
- Log.d("UnitReportsVM", "Events report: $result")
reportFlow.value = Report.EventsReport(result.toTypedArray())
} else {
val result = reportsApi.reportsEventsGetXlsx(
from, to, EventInformation.reportTypesToStrings(types), deviceId
)
- Log.d("UnitReportsVM", "Events report: $result")
reportFlow.value = Report.XlsxReport(result)
}
}
@@ -141,15 +129,11 @@ class ReportController(
to: String,
xlsx: Boolean
) {
- Log.d("UnitReportsVM", "Fetching stops")
-
if (!xlsx) {
val result = reportsApi.reportsStopsGet(from, to, deviceId)
- Log.d("UnitReportsVM", "Stops report: $result")
reportFlow.value = Report.StopsReport(result)
} else {
val result = reportsApi.reportsStopsGetXlsx(from, to, deviceId)
- Log.d("UnitReportsVM", "Stops report: $result")
reportFlow.value = Report.XlsxReport(result)
}