From e38960ff845bddbd463c43801ad01834f77474f2 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 17 Jan 2022 02:06:41 -0600 Subject: Implemented timer that fetches units every 10 seconds, and updated map to work with timer --- androidApp/src/google/java/GoogleMainApplication.kt | 2 ++ androidApp/src/google/java/ManagerMessagingService.kt | 2 ++ 2 files changed, 4 insertions(+) (limited to 'androidApp/src/google') diff --git a/androidApp/src/google/java/GoogleMainApplication.kt b/androidApp/src/google/java/GoogleMainApplication.kt index 96062e1..e491b9f 100644 --- a/androidApp/src/google/java/GoogleMainApplication.kt +++ b/androidApp/src/google/java/GoogleMainApplication.kt @@ -26,8 +26,10 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager import com.google.firebase.messaging.FirebaseMessaging import kotlinx.coroutines.DelicateCoroutinesApi import mx.trackermap.TrackerMap.android.session.LoginFragment +import kotlin.time.ExperimentalTime @DelicateCoroutinesApi +@ExperimentalTime class GoogleMainApplication : TrackerApp() { override fun onCreate() { diff --git a/androidApp/src/google/java/ManagerMessagingService.kt b/androidApp/src/google/java/ManagerMessagingService.kt index b10475f..07ee427 100644 --- a/androidApp/src/google/java/ManagerMessagingService.kt +++ b/androidApp/src/google/java/ManagerMessagingService.kt @@ -25,8 +25,10 @@ import com.google.firebase.messaging.FirebaseMessagingService import com.google.firebase.messaging.RemoteMessage import kotlinx.coroutines.DelicateCoroutinesApi import mx.trackermap.TrackerMap.android.units.UnitsActivity +import kotlin.time.ExperimentalTime @DelicateCoroutinesApi +@ExperimentalTime class ManagerMessagingService : FirebaseMessagingService() { @SuppressLint("UnspecifiedImmutableFlag") -- cgit v1.2.3