diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 6bf05bb6d..e4b95f91f 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -54,12 +54,6 @@ - - - - - - diff --git a/android/app/src/main/java/app/covidshield/receiver/PackageReceiver.kt b/android/app/src/main/java/app/covidshield/receiver/PackageReceiver.kt deleted file mode 100644 index 23e44b0b3..000000000 --- a/android/app/src/main/java/app/covidshield/receiver/PackageReceiver.kt +++ /dev/null @@ -1,26 +0,0 @@ -package app.covidshield.receiver - -import android.content.BroadcastReceiver -import android.content.Context -import android.content.Intent -import app.covidshield.extensions.log -import app.covidshield.services.metrics.MetricType -import app.covidshield.services.metrics.FilteredMetricsService -import kotlinx.coroutines.runBlocking - -class PackageReceiver () : BroadcastReceiver() { - - override fun onReceive(context: Context, intent: Intent) { - val action = intent.action - log("onReceive", mapOf("action" to action)) - - if (action == "android.intent.action.MY_PACKAGE_REPLACED") { - val filteredMetricsService = FilteredMetricsService.getInstance(context) - runBlocking { - filteredMetricsService.addMetric(MetricType.PackageUpdated, false) - } - } - } - - -} \ No newline at end of file diff --git a/android/app/src/main/java/app/covidshield/services/metrics/FilteredMetricsService.kt b/android/app/src/main/java/app/covidshield/services/metrics/FilteredMetricsService.kt index 8ee678d15..c802c2f36 100644 --- a/android/app/src/main/java/app/covidshield/services/metrics/FilteredMetricsService.kt +++ b/android/app/src/main/java/app/covidshield/services/metrics/FilteredMetricsService.kt @@ -9,7 +9,6 @@ import app.covidshield.utils.SingletonHolder import kotlinx.coroutines.runBlocking enum class MetricType(val identifier: String, val shouldBePushedToServerRightAway: Boolean) { - PackageUpdated("android-package-replaced", false), ScheduledCheckStartedToday("scheduled-check-started-today", false), ScheduledCheckSuccessfulToday("scheduled-check-successful-today", false), ActiveUser("active-user", true)