G7 support
This commit is contained in:
parent
5f1cdc8e3d
commit
90e0f48ddc
4 changed files with 7 additions and 2 deletions
|
@ -88,6 +88,7 @@
|
|||
<action android:name="it.ct.glicemia.ACTION_GLUCOSE_MEASURED" />
|
||||
<!-- Receiver from Dexcom -->
|
||||
<action android:name="com.dexcom.cgm.EXTERNAL_BROADCAST" />
|
||||
<action android:name="com.dexcom.g7.EXTERNAL_BROADCAST" />
|
||||
<!-- Receiver from Poctech -->
|
||||
<action android:name="com.china.poctech.data" />
|
||||
<!-- Receiver from Tomato -->
|
||||
|
|
|
@ -70,9 +70,11 @@ open class DataReceiver : DaggerBroadcastReceiver() {
|
|||
Intents.EVERSENSE_BG ->
|
||||
OneTimeWorkRequest.Builder(EversensePlugin.EversenseWorker::class.java)
|
||||
.setInputData(dataWorkerStorage.storeInputData(bundle, intent.action)).build()
|
||||
Intents.DEXCOM_BG ->
|
||||
|
||||
Intents.DEXCOM_BG, Intents.DEXCOM_G7_BG ->
|
||||
OneTimeWorkRequest.Builder(DexcomPlugin.DexcomWorker::class.java)
|
||||
.setInputData(dataWorkerStorage.storeInputData(bundle, intent.action)).build()
|
||||
|
||||
Intents.AIDEX_NEW_BG_ESTIMATE ->
|
||||
OneTimeWorkRequest.Builder(AidexPlugin.AidexWorker::class.java)
|
||||
.setInputData(dataWorkerStorage.storeInputData(bundle, intent.action)).build()
|
||||
|
|
|
@ -31,6 +31,7 @@ interface Intents {
|
|||
const val ACTION_REMOTE_CALIBRATION = "com.eveningoutpost.dexdrip.NewCalibration"
|
||||
const val GLIMP_BG = "it.ct.glicemia.ACTION_GLUCOSE_MEASURED"
|
||||
const val DEXCOM_BG = "com.dexcom.cgm.EXTERNAL_BROADCAST"
|
||||
const val DEXCOM_G7_BG = "com.dexcom.g7.EXTERNAL_BROADCAST"
|
||||
const val EVERSENSE_BG = "com.senseonics.AndroidAPSEventSubscriber.BROADCAST"
|
||||
const val POCTECH_BG = "com.china.poctech.data"
|
||||
const val TOMATO_BG = "com.fanqies.tomatofn.BgEstimate"
|
||||
|
|
|
@ -244,7 +244,8 @@ class DexcomPlugin @Inject constructor(
|
|||
"com.dexcom.cgm.region1.mgdl", "com.dexcom.cgm.region1.mmol",
|
||||
"com.dexcom.cgm.region2.mgdl", "com.dexcom.cgm.region2.mmol",
|
||||
"com.dexcom.g6.region1.mmol", "com.dexcom.g6.region2.mgdl",
|
||||
"com.dexcom.g6.region3.mgdl", "com.dexcom.g6.region3.mmol", "com.dexcom.g6"
|
||||
"com.dexcom.g6.region3.mgdl", "com.dexcom.g6.region3.mmol",
|
||||
"com.dexcom.g6", "com.dexcom.g7"
|
||||
)
|
||||
const val PERMISSION = "com.dexcom.cgm.EXTERNAL_PERMISSION"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue