Diaconn: remove core dependency
This commit is contained in:
parent
1839c7513d
commit
7f4c2bd87f
142 changed files with 581 additions and 403 deletions
|
@ -20,7 +20,6 @@ import info.nightscout.androidaps.R
|
||||||
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
||||||
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
||||||
import info.nightscout.androidaps.danar.DanaRPlugin
|
import info.nightscout.androidaps.danar.DanaRPlugin
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Plugin
|
|
||||||
import info.nightscout.androidaps.plugin.general.openhumans.OpenHumansUploaderPlugin
|
import info.nightscout.androidaps.plugin.general.openhumans.OpenHumansUploaderPlugin
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.MaintenancePlugin
|
import info.nightscout.androidaps.plugins.general.maintenance.MaintenancePlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.eopatch.EopatchPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.eopatch.EopatchPumpPlugin
|
||||||
|
@ -59,6 +58,7 @@ import info.nightscout.plugins.sync.nsclientV3.NSClientV3Plugin
|
||||||
import info.nightscout.plugins.sync.tidepool.TidepoolPlugin
|
import info.nightscout.plugins.sync.tidepool.TidepoolPlugin
|
||||||
import info.nightscout.pump.combo.ComboPlugin
|
import info.nightscout.pump.combo.ComboPlugin
|
||||||
import info.nightscout.pump.combov2.ComboV2Plugin
|
import info.nightscout.pump.combov2.ComboV2Plugin
|
||||||
|
import info.nightscout.pump.diaconn.DiaconnG8Plugin
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventPreferenceChange
|
import info.nightscout.rx.events.EventPreferenceChange
|
||||||
import info.nightscout.rx.events.EventRebuildTabs
|
import info.nightscout.rx.events.EventRebuildTabs
|
||||||
|
|
|
@ -6,7 +6,6 @@ import dagger.android.AndroidInjectionModule
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
import info.nightscout.androidaps.MainApp
|
import info.nightscout.androidaps.MainApp
|
||||||
import info.nightscout.androidaps.danar.di.DanaRModule
|
import info.nightscout.androidaps.danar.di.DanaRModule
|
||||||
import info.nightscout.androidaps.diaconn.di.DiaconnG8Module
|
|
||||||
import info.nightscout.androidaps.insight.di.InsightDatabaseModule
|
import info.nightscout.androidaps.insight.di.InsightDatabaseModule
|
||||||
import info.nightscout.androidaps.insight.di.InsightModule
|
import info.nightscout.androidaps.insight.di.InsightModule
|
||||||
import info.nightscout.androidaps.plugin.general.openhumans.di.OpenHumansModule
|
import info.nightscout.androidaps.plugin.general.openhumans.di.OpenHumansModule
|
||||||
|
@ -29,6 +28,7 @@ import info.nightscout.pump.common.di.PumpCommonModule
|
||||||
import info.nightscout.pump.dana.di.DanaHistoryModule
|
import info.nightscout.pump.dana.di.DanaHistoryModule
|
||||||
import info.nightscout.pump.dana.di.DanaModule
|
import info.nightscout.pump.dana.di.DanaModule
|
||||||
import info.nightscout.pump.danars.di.DanaRSModule
|
import info.nightscout.pump.danars.di.DanaRSModule
|
||||||
|
import info.nightscout.pump.diaconn.di.DiaconnG8Module
|
||||||
import info.nightscout.rx.di.RxModule
|
import info.nightscout.rx.di.RxModule
|
||||||
import info.nightscout.shared.di.SharedModule
|
import info.nightscout.shared.di.SharedModule
|
||||||
import info.nightscout.shared.impl.di.SharedImplModule
|
import info.nightscout.shared.impl.di.SharedImplModule
|
||||||
|
|
|
@ -7,7 +7,6 @@ import dagger.multibindings.IntoMap
|
||||||
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
||||||
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
||||||
import info.nightscout.androidaps.danar.DanaRPlugin
|
import info.nightscout.androidaps.danar.DanaRPlugin
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Plugin
|
|
||||||
import info.nightscout.androidaps.plugin.general.openhumans.OpenHumansUploaderPlugin
|
import info.nightscout.androidaps.plugin.general.openhumans.OpenHumansUploaderPlugin
|
||||||
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin
|
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.MaintenancePlugin
|
import info.nightscout.androidaps.plugins.general.maintenance.MaintenancePlugin
|
||||||
|
@ -62,6 +61,7 @@ import info.nightscout.plugins.sync.nsclientV3.NSClientV3Plugin
|
||||||
import info.nightscout.plugins.sync.tidepool.TidepoolPlugin
|
import info.nightscout.plugins.sync.tidepool.TidepoolPlugin
|
||||||
import info.nightscout.pump.combo.ComboPlugin
|
import info.nightscout.pump.combo.ComboPlugin
|
||||||
import info.nightscout.pump.combov2.ComboV2Plugin
|
import info.nightscout.pump.combov2.ComboV2Plugin
|
||||||
|
import info.nightscout.pump.diaconn.DiaconnG8Plugin
|
||||||
import info.nightscout.sensitivity.SensitivityAAPSPlugin
|
import info.nightscout.sensitivity.SensitivityAAPSPlugin
|
||||||
import info.nightscout.sensitivity.SensitivityOref1Plugin
|
import info.nightscout.sensitivity.SensitivityOref1Plugin
|
||||||
import info.nightscout.sensitivity.SensitivityWeightedAveragePlugin
|
import info.nightscout.sensitivity.SensitivityWeightedAveragePlugin
|
||||||
|
|
|
@ -23,8 +23,6 @@ import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.BuildConfig
|
import info.nightscout.androidaps.BuildConfig
|
||||||
import info.nightscout.androidaps.R
|
import info.nightscout.androidaps.R
|
||||||
import info.nightscout.androidaps.activities.PreferencesActivity
|
import info.nightscout.androidaps.activities.PreferencesActivity
|
||||||
import info.nightscout.androidaps.diaconn.events.EventDiaconnG8PumpLogReset
|
|
||||||
import info.nightscout.interfaces.logging.UserEntryLogger
|
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.formats.EncryptedPrefsFormat
|
import info.nightscout.androidaps.plugins.general.maintenance.formats.EncryptedPrefsFormat
|
||||||
import info.nightscout.androidaps.utils.userEntry.UserEntryPresentationHelper
|
import info.nightscout.androidaps.utils.userEntry.UserEntryPresentationHelper
|
||||||
import info.nightscout.core.activities.DaggerAppCompatActivityWithResult
|
import info.nightscout.core.activities.DaggerAppCompatActivityWithResult
|
||||||
|
@ -37,6 +35,7 @@ import info.nightscout.database.entities.UserEntry.Sources
|
||||||
import info.nightscout.database.impl.AppRepository
|
import info.nightscout.database.impl.AppRepository
|
||||||
import info.nightscout.interfaces.AndroidPermission
|
import info.nightscout.interfaces.AndroidPermission
|
||||||
import info.nightscout.interfaces.Config
|
import info.nightscout.interfaces.Config
|
||||||
|
import info.nightscout.interfaces.logging.UserEntryLogger
|
||||||
import info.nightscout.interfaces.maintenance.ImportExportPrefs
|
import info.nightscout.interfaces.maintenance.ImportExportPrefs
|
||||||
import info.nightscout.interfaces.maintenance.PrefFileListProvider
|
import info.nightscout.interfaces.maintenance.PrefFileListProvider
|
||||||
import info.nightscout.interfaces.maintenance.PrefFileNotFoundError
|
import info.nightscout.interfaces.maintenance.PrefFileNotFoundError
|
||||||
|
@ -50,6 +49,7 @@ import info.nightscout.interfaces.maintenance.PrefsStatus
|
||||||
import info.nightscout.interfaces.protection.PasswordCheck
|
import info.nightscout.interfaces.protection.PasswordCheck
|
||||||
import info.nightscout.interfaces.storage.Storage
|
import info.nightscout.interfaces.storage.Storage
|
||||||
import info.nightscout.interfaces.utils.MidnightTime
|
import info.nightscout.interfaces.utils.MidnightTime
|
||||||
|
import info.nightscout.pump.diaconn.events.EventDiaconnG8PumpLogReset
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventAppExit
|
import info.nightscout.rx.events.EventAppExit
|
||||||
import info.nightscout.rx.logging.AAPSLogger
|
import info.nightscout.rx.logging.AAPSLogger
|
||||||
|
|
|
@ -9,7 +9,6 @@ import androidx.core.text.toSpanned
|
||||||
import dagger.android.support.DaggerFragment
|
import dagger.android.support.DaggerFragment
|
||||||
import info.nightscout.androidaps.R
|
import info.nightscout.androidaps.R
|
||||||
import info.nightscout.androidaps.databinding.MaintenanceFragmentBinding
|
import info.nightscout.androidaps.databinding.MaintenanceFragmentBinding
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryDatabase
|
|
||||||
import info.nightscout.androidaps.insight.database.InsightDatabase
|
import info.nightscout.androidaps.insight.database.InsightDatabase
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.activities.LogSettingActivity
|
import info.nightscout.androidaps.plugins.general.maintenance.activities.LogSettingActivity
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.DashHistoryDatabase
|
import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.DashHistoryDatabase
|
||||||
|
@ -29,6 +28,7 @@ import info.nightscout.interfaces.pump.PumpSync
|
||||||
import info.nightscout.interfaces.sync.DataSyncSelector
|
import info.nightscout.interfaces.sync.DataSyncSelector
|
||||||
import info.nightscout.interfaces.utils.HtmlHelper
|
import info.nightscout.interfaces.utils.HtmlHelper
|
||||||
import info.nightscout.pump.dana.database.DanaHistoryDatabase
|
import info.nightscout.pump.dana.database.DanaHistoryDatabase
|
||||||
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryDatabase
|
||||||
import info.nightscout.rx.AapsSchedulers
|
import info.nightscout.rx.AapsSchedulers
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventPreferenceChange
|
import info.nightscout.rx.events.EventPreferenceChange
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<!-- General-->
|
<!-- General-->
|
||||||
<string name="save">Save</string>
|
|
||||||
<string name="goingtodeliver">Going to deliver %1$.2f U</string>
|
<string name="goingtodeliver">Going to deliver %1$.2f U</string>
|
||||||
<string name="waitingforpump">Waiting for pump</string>
|
<string name="waitingforpump">Waiting for pump</string>
|
||||||
<string name="androidaps_start">AAPS started</string>
|
<string name="androidaps_start">AAPS started</string>
|
||||||
|
@ -29,7 +28,6 @@
|
||||||
<string name="isf_long_label">Insulin Sensitivity Factor</string>
|
<string name="isf_long_label">Insulin Sensitivity Factor</string>
|
||||||
<string name="basal_long_label">Basal rate</string>
|
<string name="basal_long_label">Basal rate</string>
|
||||||
<string name="target_long_label">Blood Glucose Target</string>
|
<string name="target_long_label">Blood Glucose Target</string>
|
||||||
<string name="initializing">Initializing ...</string>
|
|
||||||
<string name="shortgram">g</string>
|
<string name="shortgram">g</string>
|
||||||
<string name="shortpercent">%</string>
|
<string name="shortpercent">%</string>
|
||||||
<string name="advancedsettings_title">Advanced Settings</string>
|
<string name="advancedsettings_title">Advanced Settings</string>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:viewportWidth="1000"
|
android:viewportWidth="1000"
|
||||||
android:viewportHeight="580"
|
android:viewportHeight="580"
|
||||||
android:width="150dp"
|
android:width="150dp"
|
|
@ -22,6 +22,7 @@
|
||||||
<string name="reload">Reload</string>
|
<string name="reload">Reload</string>
|
||||||
<string name="mgdl">mg/dl</string>
|
<string name="mgdl">mg/dl</string>
|
||||||
<string name="mmol">mmol/l</string>
|
<string name="mmol">mmol/l</string>
|
||||||
|
<string name="save">Save</string>
|
||||||
|
|
||||||
<!-- Pumps -->
|
<!-- Pumps -->
|
||||||
<string name="battery_label">Battery</string>
|
<string name="battery_label">Battery</string>
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
<string name="reading_pump_history">Reading pump history</string>
|
<string name="reading_pump_history">Reading pump history</string>
|
||||||
<string name="password_cleared">Password cleared!</string>
|
<string name="password_cleared">Password cleared!</string>
|
||||||
<string name="pairing">Pairing</string>
|
<string name="pairing">Pairing</string>
|
||||||
|
<string name="initializing">Initializing ...</string>
|
||||||
|
|
||||||
<!-- Constraints-->
|
<!-- Constraints-->
|
||||||
<string name="limitingbasalratio">Limiting max basal rate to %1$.2f U/h because of %2$s</string>
|
<string name="limitingbasalratio">Limiting max basal rate to %1$.2f U/h because of %2$s</string>
|
||||||
|
|
|
@ -64,7 +64,7 @@ class BLEScanActivity : DaggerAppCompatActivity() {
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_CONNECT) == PackageManager.PERMISSION_GRANTED) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_SCAN) == PackageManager.PERMISSION_GRANTED) {
|
||||||
bluetoothAdapter?.safeEnable()
|
bluetoothAdapter?.safeEnable()
|
||||||
startScan()
|
startScan()
|
||||||
} else {
|
} else {
|
||||||
|
@ -74,7 +74,9 @@ class BLEScanActivity : DaggerAppCompatActivity() {
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
stopScan()
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_SCAN) == PackageManager.PERMISSION_GRANTED) {
|
||||||
|
stopScan()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun startScan() =
|
private fun startScan() =
|
||||||
|
|
|
@ -14,7 +14,7 @@ apply from: "${project.rootDir}/core/core-main/jacoco_global.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
namespace 'info.nightscout.androidaps.diaconn'
|
namespace 'info.nightscout.pump.diaconn'
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
kapt {
|
kapt {
|
||||||
arguments {
|
arguments {
|
||||||
|
@ -30,12 +30,11 @@ dependencies {
|
||||||
implementation project(':core:libraries')
|
implementation project(':core:libraries')
|
||||||
implementation project(':core:interfaces')
|
implementation project(':core:interfaces')
|
||||||
implementation project(':core:utils')
|
implementation project(':core:utils')
|
||||||
implementation project(':core:core-main')
|
implementation project(':core:ui')
|
||||||
|
|
||||||
api "androidx.room:room-ktx:$room_version"
|
api "androidx.room:room-ktx:$room_version"
|
||||||
api "androidx.room:room-runtime:$room_version"
|
api "androidx.room:room-runtime:$room_version"
|
||||||
api "androidx.room:room-rxjava3:$room_version"
|
api "androidx.room:room-rxjava3:$room_version"
|
||||||
implementation project(path: ':core:ui')
|
|
||||||
kapt "androidx.room:room-compiler:$room_version"
|
kapt "androidx.room:room-compiler:$room_version"
|
||||||
|
|
||||||
api "com.squareup.okhttp3:okhttp:$okhttp3_version"
|
api "com.squareup.okhttp3:okhttp:$okhttp3_version"
|
||||||
|
|
|
@ -0,0 +1,111 @@
|
||||||
|
{
|
||||||
|
"formatVersion": 1,
|
||||||
|
"database": {
|
||||||
|
"version": 1,
|
||||||
|
"identityHash": "d604d25c3edbdf18cc5a39121cf5a779",
|
||||||
|
"entities": [
|
||||||
|
{
|
||||||
|
"tableName": "diaconnHistory",
|
||||||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`timestamp` INTEGER NOT NULL, `code` INTEGER NOT NULL, `value` REAL NOT NULL, `bolusType` TEXT NOT NULL, `stringValue` TEXT NOT NULL, `duration` INTEGER NOT NULL, `dailyBasal` REAL NOT NULL, `dailyBolus` REAL NOT NULL, `alarm` TEXT NOT NULL, `lognum` INTEGER NOT NULL, `wrappingCount` INTEGER NOT NULL, `pumpUid` TEXT NOT NULL, PRIMARY KEY(`timestamp`))",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"fieldPath": "timestamp",
|
||||||
|
"columnName": "timestamp",
|
||||||
|
"affinity": "INTEGER",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "code",
|
||||||
|
"columnName": "code",
|
||||||
|
"affinity": "INTEGER",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "value",
|
||||||
|
"columnName": "value",
|
||||||
|
"affinity": "REAL",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "bolusType",
|
||||||
|
"columnName": "bolusType",
|
||||||
|
"affinity": "TEXT",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "stringValue",
|
||||||
|
"columnName": "stringValue",
|
||||||
|
"affinity": "TEXT",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "duration",
|
||||||
|
"columnName": "duration",
|
||||||
|
"affinity": "INTEGER",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "dailyBasal",
|
||||||
|
"columnName": "dailyBasal",
|
||||||
|
"affinity": "REAL",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "dailyBolus",
|
||||||
|
"columnName": "dailyBolus",
|
||||||
|
"affinity": "REAL",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "alarm",
|
||||||
|
"columnName": "alarm",
|
||||||
|
"affinity": "TEXT",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "lognum",
|
||||||
|
"columnName": "lognum",
|
||||||
|
"affinity": "INTEGER",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "wrappingCount",
|
||||||
|
"columnName": "wrappingCount",
|
||||||
|
"affinity": "INTEGER",
|
||||||
|
"notNull": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldPath": "pumpUid",
|
||||||
|
"columnName": "pumpUid",
|
||||||
|
"affinity": "TEXT",
|
||||||
|
"notNull": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primaryKey": {
|
||||||
|
"columnNames": [
|
||||||
|
"timestamp"
|
||||||
|
],
|
||||||
|
"autoGenerate": false
|
||||||
|
},
|
||||||
|
"indices": [
|
||||||
|
{
|
||||||
|
"name": "index_diaconnHistory_code_timestamp",
|
||||||
|
"unique": false,
|
||||||
|
"columnNames": [
|
||||||
|
"code",
|
||||||
|
"timestamp"
|
||||||
|
],
|
||||||
|
"orders": [],
|
||||||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_diaconnHistory_code_timestamp` ON `${TABLE_NAME}` (`code`, `timestamp`)"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"foreignKeys": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"views": [],
|
||||||
|
"setupQueries": [
|
||||||
|
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
||||||
|
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd604d25c3edbdf18cc5a39121cf5a779')"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,17 +8,17 @@
|
||||||
|
|
||||||
<application android:supportsRtl="true">
|
<application android:supportsRtl="true">
|
||||||
<activity
|
<activity
|
||||||
android:name="info.nightscout.androidaps.diaconn.activities.DiaconnG8HistoryActivity"
|
android:name=".activities.DiaconnG8HistoryActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/AppTheme" />
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
<activity
|
<activity
|
||||||
android:name="info.nightscout.androidaps.diaconn.activities.DiaconnG8UserOptionsActivity"
|
android:name=".activities.DiaconnG8UserOptionsActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/AppTheme" />
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
<activity
|
<activity
|
||||||
android:name="info.nightscout.androidaps.diaconn.activities.DiaconnG8BLEScanActivity"
|
android:name=".activities.DiaconnG8BLEScanActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="info.nightscout.androidaps.plugins.PumpDiaconnG8.activities.DiaconnG8BLEScanActivity" />
|
<action android:name="info.nightscout.androidaps.plugins.PumpDiaconnG8.activities.DiaconnG8BLEScanActivity" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name="info.nightscout.androidaps.diaconn.service.DiaconnG8Service"
|
android:name=".service.DiaconnG8Service"
|
||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
</application>
|
</application>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn
|
package info.nightscout.pump.diaconn
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
@ -9,16 +9,16 @@ import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import dagger.android.support.DaggerFragment
|
import dagger.android.support.DaggerFragment
|
||||||
import info.nightscout.androidaps.diaconn.activities.DiaconnG8HistoryActivity
|
|
||||||
import info.nightscout.androidaps.diaconn.activities.DiaconnG8UserOptionsActivity
|
|
||||||
import info.nightscout.androidaps.diaconn.databinding.DiaconnG8FragmentBinding
|
|
||||||
import info.nightscout.androidaps.diaconn.events.EventDiaconnG8NewStatus
|
|
||||||
import info.nightscout.core.utils.fabric.FabricPrivacy
|
import info.nightscout.core.utils.fabric.FabricPrivacy
|
||||||
import info.nightscout.interfaces.plugin.ActivePlugin
|
import info.nightscout.interfaces.plugin.ActivePlugin
|
||||||
import info.nightscout.interfaces.pump.Pump
|
import info.nightscout.interfaces.pump.Pump
|
||||||
import info.nightscout.interfaces.pump.WarnColors
|
import info.nightscout.interfaces.pump.WarnColors
|
||||||
import info.nightscout.interfaces.queue.CommandQueue
|
import info.nightscout.interfaces.queue.CommandQueue
|
||||||
import info.nightscout.interfaces.ui.ActivityNames
|
import info.nightscout.interfaces.ui.ActivityNames
|
||||||
|
import info.nightscout.pump.diaconn.activities.DiaconnG8HistoryActivity
|
||||||
|
import info.nightscout.pump.diaconn.activities.DiaconnG8UserOptionsActivity
|
||||||
|
import info.nightscout.pump.diaconn.databinding.DiaconnG8FragmentBinding
|
||||||
|
import info.nightscout.pump.diaconn.events.EventDiaconnG8NewStatus
|
||||||
import info.nightscout.rx.AapsSchedulers
|
import info.nightscout.rx.AapsSchedulers
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventExtendedBolusChange
|
import info.nightscout.rx.events.EventExtendedBolusChange
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn
|
package info.nightscout.pump.diaconn
|
||||||
|
|
||||||
import android.content.ComponentName
|
import android.content.ComponentName
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
@ -9,9 +9,6 @@ import android.text.format.DateFormat
|
||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.events.EventDiaconnG8DeviceChange
|
|
||||||
import info.nightscout.androidaps.diaconn.service.DiaconnG8Service
|
|
||||||
import info.nightscout.core.events.EventNewNotification
|
|
||||||
import info.nightscout.core.ui.toast.ToastUtils
|
import info.nightscout.core.ui.toast.ToastUtils
|
||||||
import info.nightscout.core.utils.fabric.FabricPrivacy
|
import info.nightscout.core.utils.fabric.FabricPrivacy
|
||||||
import info.nightscout.interfaces.constraints.Constraint
|
import info.nightscout.interfaces.constraints.Constraint
|
||||||
|
@ -35,8 +32,11 @@ import info.nightscout.interfaces.pump.defs.ManufacturerType
|
||||||
import info.nightscout.interfaces.pump.defs.PumpDescription
|
import info.nightscout.interfaces.pump.defs.PumpDescription
|
||||||
import info.nightscout.interfaces.pump.defs.PumpType
|
import info.nightscout.interfaces.pump.defs.PumpType
|
||||||
import info.nightscout.interfaces.queue.CommandQueue
|
import info.nightscout.interfaces.queue.CommandQueue
|
||||||
|
import info.nightscout.interfaces.ui.ActivityNames
|
||||||
import info.nightscout.interfaces.utils.DecimalFormatter
|
import info.nightscout.interfaces.utils.DecimalFormatter
|
||||||
import info.nightscout.interfaces.utils.Round
|
import info.nightscout.interfaces.utils.Round
|
||||||
|
import info.nightscout.pump.diaconn.events.EventDiaconnG8DeviceChange
|
||||||
|
import info.nightscout.pump.diaconn.service.DiaconnG8Service
|
||||||
import info.nightscout.rx.AapsSchedulers
|
import info.nightscout.rx.AapsSchedulers
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventAppExit
|
import info.nightscout.rx.events.EventAppExit
|
||||||
|
@ -74,7 +74,8 @@ class DiaconnG8Plugin @Inject constructor(
|
||||||
private val temporaryBasalStorage: TemporaryBasalStorage,
|
private val temporaryBasalStorage: TemporaryBasalStorage,
|
||||||
private val fabricPrivacy: FabricPrivacy,
|
private val fabricPrivacy: FabricPrivacy,
|
||||||
private val dateUtil: DateUtil,
|
private val dateUtil: DateUtil,
|
||||||
private val aapsSchedulers: AapsSchedulers
|
private val aapsSchedulers: AapsSchedulers,
|
||||||
|
private val activityNames: ActivityNames
|
||||||
) : PumpPluginBase(
|
) : PumpPluginBase(
|
||||||
PluginDescription()
|
PluginDescription()
|
||||||
.mainType(PluginType.PUMP)
|
.mainType(PluginType.PUMP)
|
||||||
|
@ -212,23 +213,20 @@ class DiaconnG8Plugin @Inject constructor(
|
||||||
override fun setNewBasalProfile(profile: Profile): PumpEnactResult {
|
override fun setNewBasalProfile(profile: Profile): PumpEnactResult {
|
||||||
val result = PumpEnactResult(injector)
|
val result = PumpEnactResult(injector)
|
||||||
if (!isInitialized()) {
|
if (!isInitialized()) {
|
||||||
val notification = Notification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED, rh.gs(R.string.pump_not_initialized_profile_not_set), Notification.URGENT)
|
activityNames.addNotification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED, rh.gs(R.string.pump_not_initialized_profile_not_set), Notification.URGENT)
|
||||||
rxBus.send(EventNewNotification(notification))
|
|
||||||
result.comment = rh.gs(R.string.pump_not_initialized_profile_not_set)
|
result.comment = rh.gs(R.string.pump_not_initialized_profile_not_set)
|
||||||
return result
|
return result
|
||||||
} else {
|
} else {
|
||||||
rxBus.send(EventDismissNotification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED))
|
rxBus.send(EventDismissNotification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED))
|
||||||
}
|
}
|
||||||
return if (diaconnG8Service?.updateBasalsInPump(profile) != true) {
|
return if (diaconnG8Service?.updateBasalsInPump(profile) != true) {
|
||||||
val notification = Notification(Notification.FAILED_UPDATE_PROFILE, rh.gs(R.string.failed_update_basal_profile), Notification.URGENT)
|
activityNames.addNotification(Notification.FAILED_UPDATE_PROFILE, rh.gs(R.string.failed_update_basal_profile), Notification.URGENT)
|
||||||
rxBus.send(EventNewNotification(notification))
|
|
||||||
result.comment = rh.gs(R.string.failed_update_basal_profile)
|
result.comment = rh.gs(R.string.failed_update_basal_profile)
|
||||||
result
|
result
|
||||||
} else {
|
} else {
|
||||||
rxBus.send(EventDismissNotification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED))
|
rxBus.send(EventDismissNotification(Notification.PROFILE_NOT_SET_NOT_INITIALIZED))
|
||||||
rxBus.send(EventDismissNotification(Notification.FAILED_UPDATE_PROFILE))
|
rxBus.send(EventDismissNotification(Notification.FAILED_UPDATE_PROFILE))
|
||||||
val notification = Notification(Notification.PROFILE_SET_OK, rh.gs(R.string.profile_set_ok), Notification.INFO, 60)
|
activityNames.addNotificationValidFor(Notification.PROFILE_SET_OK, rh.gs(R.string.profile_set_ok), Notification.INFO, 60)
|
||||||
rxBus.send(EventNewNotification(notification))
|
|
||||||
result.success = true
|
result.success = true
|
||||||
result.enacted = true
|
result.enacted = true
|
||||||
result.comment = "OK"
|
result.comment = "OK"
|
||||||
|
@ -601,7 +599,7 @@ class DiaconnG8Plugin @Inject constructor(
|
||||||
diaconnG8Pump.bolusSpeed = intBolusSpeed
|
diaconnG8Pump.bolusSpeed = intBolusSpeed
|
||||||
diaconnG8Pump.speed = intBolusSpeed
|
diaconnG8Pump.speed = intBolusSpeed
|
||||||
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.BOLUS_SPEED
|
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.BOLUS_SPEED
|
||||||
sp.putBoolean("diaconn_g8_isbolusspeedsync", false)
|
sp.putBoolean(R.string.key_diaconn_g8_is_bolus_speed_sync, false)
|
||||||
|
|
||||||
true
|
true
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn
|
package info.nightscout.pump.diaconn
|
||||||
|
|
||||||
import info.nightscout.interfaces.profile.Profile
|
import info.nightscout.interfaces.profile.Profile
|
||||||
import info.nightscout.interfaces.pump.PumpSync
|
import info.nightscout.interfaces.pump.PumpSync
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.activities
|
package info.nightscout.pump.diaconn.activities
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
|
@ -23,27 +23,29 @@ import android.view.ViewGroup
|
||||||
import android.widget.BaseAdapter
|
import android.widget.BaseAdapter
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.core.app.ActivityCompat
|
import androidx.core.app.ActivityCompat
|
||||||
import info.nightscout.androidaps.diaconn.R
|
import dagger.android.support.DaggerAppCompatActivity
|
||||||
import info.nightscout.androidaps.diaconn.databinding.DiaconnG8BlescannerActivityBinding
|
|
||||||
import info.nightscout.androidaps.diaconn.events.EventDiaconnG8DeviceChange
|
|
||||||
import info.nightscout.core.activities.NoSplashAppCompatActivity
|
|
||||||
import info.nightscout.core.ui.toast.ToastUtils
|
import info.nightscout.core.ui.toast.ToastUtils
|
||||||
import info.nightscout.core.utils.extensions.safeEnable
|
import info.nightscout.core.utils.extensions.safeEnable
|
||||||
import info.nightscout.interfaces.pump.BlePreCheck
|
import info.nightscout.interfaces.pump.BlePreCheck
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
|
import info.nightscout.pump.diaconn.databinding.DiaconnG8BlescannerActivityBinding
|
||||||
|
import info.nightscout.pump.diaconn.events.EventDiaconnG8DeviceChange
|
||||||
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class DiaconnG8BLEScanActivity : NoSplashAppCompatActivity() {
|
class DiaconnG8BLEScanActivity : DaggerAppCompatActivity() {
|
||||||
|
|
||||||
@Inject lateinit var sp: SP
|
@Inject lateinit var sp: SP
|
||||||
@Inject lateinit var blePreCheck: BlePreCheck
|
@Inject lateinit var blePreCheck: BlePreCheck
|
||||||
@Inject lateinit var context: Context
|
@Inject lateinit var context: Context
|
||||||
|
@Inject lateinit var rxBus: RxBus
|
||||||
|
|
||||||
private val bluetoothAdapter: BluetoothAdapter? get() = (context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager?)?.adapter
|
|
||||||
private var listAdapter: ListAdapter? = null
|
private var listAdapter: ListAdapter? = null
|
||||||
private val devices = ArrayList<BluetoothDeviceItem>()
|
private val devices = ArrayList<BluetoothDeviceItem>()
|
||||||
private var bluetoothLeScanner: BluetoothLeScanner? = null
|
private val bluetoothAdapter: BluetoothAdapter? get() = (context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager?)?.adapter
|
||||||
|
private val bluetoothLeScanner: BluetoothLeScanner? get() = bluetoothAdapter?.bluetoothLeScanner
|
||||||
private val serviceUUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e") // BLE GATT Service UUID
|
private val serviceUUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e") // BLE GATT Service UUID
|
||||||
|
|
||||||
private lateinit var binding: DiaconnG8BlescannerActivityBinding
|
private lateinit var binding: DiaconnG8BlescannerActivityBinding
|
||||||
|
@ -58,8 +60,8 @@ class DiaconnG8BLEScanActivity : NoSplashAppCompatActivity() {
|
||||||
blePreCheck.prerequisitesCheck(this)
|
blePreCheck.prerequisitesCheck(this)
|
||||||
|
|
||||||
listAdapter = ListAdapter()
|
listAdapter = ListAdapter()
|
||||||
binding.blescannerListview.emptyView = binding.blescannerNodevice
|
binding.bleScannerListview.emptyView = binding.bleScannerNoDevice
|
||||||
binding.blescannerListview.adapter = listAdapter
|
binding.bleScannerListview.adapter = listAdapter
|
||||||
listAdapter?.notifyDataSetChanged()
|
listAdapter?.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,13 +69,10 @@ class DiaconnG8BLEScanActivity : NoSplashAppCompatActivity() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_SCAN) == PackageManager.PERMISSION_GRANTED) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_SCAN) == PackageManager.PERMISSION_GRANTED) {
|
||||||
bluetoothAdapter?.let { bluetoothAdapter ->
|
bluetoothAdapter?.safeEnable()
|
||||||
bluetoothAdapter.safeEnable()
|
startScan()
|
||||||
bluetoothLeScanner = bluetoothAdapter.bluetoothLeScanner
|
|
||||||
startScan()
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
ToastUtils.errorToast(context, context.getString(info.nightscout.core.main.R.string.need_connect_permission))
|
ToastUtils.errorToast(context, context.getString(R.string.need_connect_permission))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +111,7 @@ class DiaconnG8BLEScanActivity : NoSplashAppCompatActivity() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&
|
||||||
ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PERMISSION_GRANTED
|
ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PERMISSION_GRANTED
|
||||||
) {
|
) {
|
||||||
ToastUtils.errorToast(context, context.getString(info.nightscout.core.main.R.string.need_connect_permission))
|
ToastUtils.errorToast(context, context.getString(R.string.need_connect_permission))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (device == null || device.name == null || device.name == "") {
|
if (device == null || device.name == null || device.name == "") {
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.activities
|
package info.nightscout.pump.diaconn.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
|
@ -9,27 +9,29 @@ import android.widget.ArrayAdapter
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import info.nightscout.androidaps.diaconn.R
|
import dagger.android.support.DaggerAppCompatActivity
|
||||||
import info.nightscout.androidaps.diaconn.common.RecordTypes
|
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryRecord
|
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryRecordDao
|
|
||||||
import info.nightscout.androidaps.diaconn.databinding.DiaconnG8HistoryActivityBinding
|
|
||||||
import info.nightscout.core.activities.NoSplashAppCompatActivity
|
|
||||||
import info.nightscout.core.utils.fabric.FabricPrivacy
|
import info.nightscout.core.utils.fabric.FabricPrivacy
|
||||||
import info.nightscout.interfaces.plugin.ActivePlugin
|
import info.nightscout.interfaces.plugin.ActivePlugin
|
||||||
import info.nightscout.interfaces.profile.ProfileFunction
|
import info.nightscout.interfaces.profile.ProfileFunction
|
||||||
import info.nightscout.interfaces.queue.Callback
|
import info.nightscout.interfaces.queue.Callback
|
||||||
import info.nightscout.interfaces.queue.CommandQueue
|
import info.nightscout.interfaces.queue.CommandQueue
|
||||||
import info.nightscout.interfaces.utils.DecimalFormatter
|
import info.nightscout.interfaces.utils.DecimalFormatter
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
|
import info.nightscout.pump.diaconn.common.RecordTypes
|
||||||
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryRecord
|
||||||
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryRecordDao
|
||||||
|
import info.nightscout.pump.diaconn.databinding.DiaconnG8HistoryActivityBinding
|
||||||
import info.nightscout.rx.AapsSchedulers
|
import info.nightscout.rx.AapsSchedulers
|
||||||
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventPumpStatusChanged
|
import info.nightscout.rx.events.EventPumpStatusChanged
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.utils.DateUtil
|
import info.nightscout.shared.utils.DateUtil
|
||||||
import info.nightscout.shared.utils.T
|
import info.nightscout.shared.utils.T
|
||||||
import io.reactivex.rxjava3.disposables.CompositeDisposable
|
import io.reactivex.rxjava3.disposables.CompositeDisposable
|
||||||
import io.reactivex.rxjava3.kotlin.plusAssign
|
import io.reactivex.rxjava3.kotlin.plusAssign
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class DiaconnG8HistoryActivity : NoSplashAppCompatActivity() {
|
class DiaconnG8HistoryActivity : DaggerAppCompatActivity() {
|
||||||
|
|
||||||
@Inject lateinit var profileFunction: ProfileFunction
|
@Inject lateinit var profileFunction: ProfileFunction
|
||||||
@Inject lateinit var fabricPrivacy: FabricPrivacy
|
@Inject lateinit var fabricPrivacy: FabricPrivacy
|
||||||
|
@ -38,6 +40,8 @@ class DiaconnG8HistoryActivity : NoSplashAppCompatActivity() {
|
||||||
@Inject lateinit var diaconnHistoryRecordDao: DiaconnHistoryRecordDao
|
@Inject lateinit var diaconnHistoryRecordDao: DiaconnHistoryRecordDao
|
||||||
@Inject lateinit var dateUtil: DateUtil
|
@Inject lateinit var dateUtil: DateUtil
|
||||||
@Inject lateinit var aapsSchedulers: AapsSchedulers
|
@Inject lateinit var aapsSchedulers: AapsSchedulers
|
||||||
|
@Inject lateinit var rxBus: RxBus
|
||||||
|
@Inject lateinit var rh: ResourceHelper
|
||||||
|
|
||||||
private val disposable = CompositeDisposable()
|
private val disposable = CompositeDisposable()
|
||||||
|
|
|
@ -1,27 +1,29 @@
|
||||||
package info.nightscout.androidaps.diaconn.activities
|
package info.nightscout.pump.diaconn.activities
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.AdapterView
|
import android.widget.AdapterView
|
||||||
import android.widget.ArrayAdapter
|
import android.widget.ArrayAdapter
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import dagger.android.support.DaggerAppCompatActivity
|
||||||
import info.nightscout.androidaps.diaconn.R
|
|
||||||
import info.nightscout.androidaps.diaconn.databinding.DiaconnG8UserOptionsActivityBinding
|
|
||||||
import info.nightscout.core.activities.NoSplashAppCompatActivity
|
|
||||||
import info.nightscout.core.ui.toast.ToastUtils
|
import info.nightscout.core.ui.toast.ToastUtils
|
||||||
import info.nightscout.core.utils.fabric.FabricPrivacy
|
import info.nightscout.core.utils.fabric.FabricPrivacy
|
||||||
import info.nightscout.interfaces.plugin.ActivePlugin
|
import info.nightscout.interfaces.plugin.ActivePlugin
|
||||||
import info.nightscout.interfaces.queue.Callback
|
import info.nightscout.interfaces.queue.Callback
|
||||||
import info.nightscout.interfaces.queue.CommandQueue
|
import info.nightscout.interfaces.queue.CommandQueue
|
||||||
import info.nightscout.interfaces.ui.ActivityNames
|
import info.nightscout.interfaces.ui.ActivityNames
|
||||||
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
|
import info.nightscout.pump.diaconn.databinding.DiaconnG8UserOptionsActivityBinding
|
||||||
|
import info.nightscout.rx.logging.AAPSLogger
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import io.reactivex.rxjava3.disposables.CompositeDisposable
|
import io.reactivex.rxjava3.disposables.CompositeDisposable
|
||||||
import java.text.DecimalFormat
|
import java.text.DecimalFormat
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class DiaconnG8UserOptionsActivity : NoSplashAppCompatActivity() {
|
class DiaconnG8UserOptionsActivity : DaggerAppCompatActivity() {
|
||||||
|
|
||||||
@Inject lateinit var fabricPrivacy: FabricPrivacy
|
@Inject lateinit var fabricPrivacy: FabricPrivacy
|
||||||
@Inject lateinit var context: Context
|
@Inject lateinit var context: Context
|
||||||
|
@ -30,6 +32,8 @@ class DiaconnG8UserOptionsActivity : NoSplashAppCompatActivity() {
|
||||||
@Inject lateinit var commandQueue: CommandQueue
|
@Inject lateinit var commandQueue: CommandQueue
|
||||||
@Inject lateinit var sp: SP
|
@Inject lateinit var sp: SP
|
||||||
@Inject lateinit var activityNames: ActivityNames
|
@Inject lateinit var activityNames: ActivityNames
|
||||||
|
@Inject lateinit var aapsLogger: AAPSLogger
|
||||||
|
@Inject lateinit var rh: ResourceHelper
|
||||||
|
|
||||||
private val disposable = CompositeDisposable()
|
private val disposable = CompositeDisposable()
|
||||||
|
|
||||||
|
@ -52,12 +56,12 @@ class DiaconnG8UserOptionsActivity : NoSplashAppCompatActivity() {
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
|
||||||
binding.saveAlarm.setOnClickListener { onSaveAlarmClick() }
|
binding.saveAlarm.setOnClickListener { onSaveAlarmClick() }
|
||||||
binding.saveLcdOnTime.setOnClickListener { onSavelcdOnTimeClick() }
|
binding.saveLcdOnTime.setOnClickListener { onSaveLcdOnTimeClick() }
|
||||||
binding.saveLang.setOnClickListener { onSaveLangClick() }
|
binding.saveLang.setOnClickListener { onSaveLangClick() }
|
||||||
|
|
||||||
binding.saveBolusSpeed.setOnClickListener { onSaveBolusSpeedClick() }
|
binding.saveBolusSpeed.setOnClickListener { onSaveBolusSpeedClick() }
|
||||||
|
|
||||||
val spBolusSpeed = sp.getString("g8_bolusspeed", "5")
|
val spBolusSpeed = sp.getString(getString(R.string.key_diaconn_g8_bolusspeed), "5")
|
||||||
|
|
||||||
binding.bolusSpeed.setParams(spBolusSpeed.toDouble(), 1.0, 8.0, 1.0, DecimalFormat("1"), true, binding.saveBolusSpeed)
|
binding.bolusSpeed.setParams(spBolusSpeed.toDouble(), 1.0, 8.0, 1.0, DecimalFormat("1"), true, binding.saveBolusSpeed)
|
||||||
|
|
||||||
|
@ -107,7 +111,7 @@ class DiaconnG8UserOptionsActivity : NoSplashAppCompatActivity() {
|
||||||
onSaveClick()
|
onSaveClick()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onSavelcdOnTimeClick() {
|
private fun onSaveLcdOnTimeClick() {
|
||||||
|
|
||||||
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.LCD
|
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.LCD
|
||||||
|
|
||||||
|
@ -141,8 +145,8 @@ class DiaconnG8UserOptionsActivity : NoSplashAppCompatActivity() {
|
||||||
diaconnG8Pump.bolusSpeed = intSpeed
|
diaconnG8Pump.bolusSpeed = intSpeed
|
||||||
diaconnG8Pump.speed = intSpeed
|
diaconnG8Pump.speed = intSpeed
|
||||||
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.BOLUS_SPEED
|
diaconnG8Pump.setUserOptionType = DiaconnG8Pump.BOLUS_SPEED
|
||||||
sp.putString("g8_bolusspeed", intSpeed.toString())
|
sp.putString(R.string.key_diaconn_g8_bolusspeed, intSpeed.toString())
|
||||||
sp.putBoolean("diaconn_g8_isbolusspeedsync", false)
|
sp.putBoolean(R.string.key_diaconn_g8_is_bolus_speed_sync, false)
|
||||||
|
|
||||||
ToastUtils.okToast(context, "Save Success!")
|
ToastUtils.okToast(context, "Save Success!")
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.api
|
package info.nightscout.pump.diaconn.api
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.api
|
package info.nightscout.pump.diaconn.api
|
||||||
|
|
||||||
import retrofit2.Call
|
import retrofit2.Call
|
||||||
import retrofit2.http.Body
|
import retrofit2.http.Body
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.api
|
package info.nightscout.pump.diaconn.api
|
||||||
|
|
||||||
import info.nightscout.rx.logging.AAPSLogger
|
import info.nightscout.rx.logging.AAPSLogger
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.common
|
package info.nightscout.pump.diaconn.common
|
||||||
|
|
||||||
object RecordTypes {
|
object RecordTypes {
|
||||||
const val RECORD_TYPE_BOLUS = 0x01.toByte()
|
const val RECORD_TYPE_BOLUS = 0x01.toByte()
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.database
|
package info.nightscout.pump.diaconn.database
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.room.Database
|
import androidx.room.Database
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.database
|
package info.nightscout.pump.diaconn.database
|
||||||
|
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import androidx.room.Index
|
import androidx.room.Index
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.database
|
package info.nightscout.pump.diaconn.database
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
|
@ -1,11 +1,11 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Fragment
|
import info.nightscout.pump.diaconn.DiaconnG8Fragment
|
||||||
import info.nightscout.androidaps.diaconn.activities.DiaconnG8BLEScanActivity
|
import info.nightscout.pump.diaconn.activities.DiaconnG8BLEScanActivity
|
||||||
import info.nightscout.androidaps.diaconn.activities.DiaconnG8HistoryActivity
|
import info.nightscout.pump.diaconn.activities.DiaconnG8HistoryActivity
|
||||||
import info.nightscout.androidaps.diaconn.activities.DiaconnG8UserOptionsActivity
|
import info.nightscout.pump.diaconn.activities.DiaconnG8UserOptionsActivity
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
|
|
|
@ -1,8 +1,79 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.packet.*
|
import info.nightscout.pump.diaconn.packet.AppCancelSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.AppCancelSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.AppConfirmSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.AppConfirmSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalLimitInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalLimitInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalPauseReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalPauseSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalPauseSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalSettingReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BasalSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BatteryWarningReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigAPSMainInfoInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigAPSMainInfoInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigLogInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigLogInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigMainInfoInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BigMainInfoInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BolusSpeedInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BolusSpeedInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BolusSpeedSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BolusSpeedSettingReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.BolusSpeedSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.ConfirmReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.DiaconnG8Packet
|
||||||
|
import info.nightscout.pump.diaconn.packet.DisplayTimeInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.DisplayTimeInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.DisplayTimeoutSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.DisplayTimeoutSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.IncarnationInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.IncarnationInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionBasalReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionBasalSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionBasalSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionBlockReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionCancelSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionCancelSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionExtendedBolusResultReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionExtendedBolusSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionExtendedBolusSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionSnackInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionSnackInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionSnackResultReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionSnackSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InjectionSnackSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.InsulinLackReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LanguageInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LanguageInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LanguageSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LanguageSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LogStatusInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.LogStatusInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.RejectReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SerialNumInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SerialNumInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SneckLimitInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SneckLimitInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SoundInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SoundInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SoundSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.SoundSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TempBasalInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TempBasalInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TempBasalReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TempBasalSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TempBasalSettingResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TimeInquirePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TimeInquireResponsePacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TimeReportPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TimeSettingPacket
|
||||||
|
import info.nightscout.pump.diaconn.packet.TimeSettingResponsePacket
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
|
@ -1,8 +1,8 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.service.DiaconnG8Service
|
import info.nightscout.pump.diaconn.service.DiaconnG8Service
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
|
@ -1,10 +1,10 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.Provides
|
import dagger.Provides
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryDatabase
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryDatabase
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryRecordDao
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryRecordDao
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
||||||
@Module
|
@Module
|
|
@ -1,9 +1,8 @@
|
||||||
package info.nightscout.androidaps.diaconn.di
|
package info.nightscout.pump.diaconn.di
|
||||||
|
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.api.DiaconnLogUploader
|
import info.nightscout.pump.diaconn.api.DiaconnLogUploader
|
||||||
import info.nightscout.androidaps.diaconn.service.DiaconnG8Service
|
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.events
|
package info.nightscout.pump.diaconn.events
|
||||||
|
|
||||||
import info.nightscout.rx.events.Event
|
import info.nightscout.rx.events.Event
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.events
|
package info.nightscout.pump.diaconn.events
|
||||||
|
|
||||||
import info.nightscout.rx.events.Event
|
import info.nightscout.rx.events.Event
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.events
|
package info.nightscout.pump.diaconn.events
|
||||||
|
|
||||||
import info.nightscout.rx.events.Event
|
import info.nightscout.rx.events.Event
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,12 +1,11 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.androidaps.diaconn.R
|
import info.nightscout.pump.diaconn.R
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.PumplogUtil
|
import info.nightscout.pump.diaconn.pumplog.PumplogUtil
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,11 +1,11 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.androidaps.diaconn.R
|
import info.nightscout.pump.diaconn.R
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.PumplogUtil
|
import info.nightscout.pump.diaconn.pumplog.PumplogUtil
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -214,7 +214,7 @@ class BigAPSMainInfoInquireResponsePacket(
|
||||||
diaconnG8Pump.pumpProfiles!![diaconnG8Pump.activeProfile][23] = diaconnG8Pump.baseAmount24
|
diaconnG8Pump.pumpProfiles!![diaconnG8Pump.activeProfile][23] = diaconnG8Pump.baseAmount24
|
||||||
|
|
||||||
//incarnation no 처리
|
//incarnation no 처리
|
||||||
diaconnG8Pump.isPumpVersionGe2_63 = PumplogUtil.isPumpVersionGe(sp.getString(rh.gs(R.string.pumpversion), ""),2, 63)
|
diaconnG8Pump.isPumpVersionGe2_63 = PumplogUtil.isPumpVersionGe(sp.getString(rh.gs(R.string.pumpversion), ""), 2, 63)
|
||||||
|
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "result > " + diaconnG8Pump.result)
|
aapsLogger.debug(LTag.PUMPCOMM, "result > " + diaconnG8Pump.result)
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "systemRemainInsulin > " + diaconnG8Pump.systemRemainInsulin)
|
aapsLogger.debug(LTag.PUMPCOMM, "systemRemainInsulin > " + diaconnG8Pump.systemRemainInsulin)
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,43 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
|
||||||
import info.nightscout.androidaps.diaconn.R
|
|
||||||
import info.nightscout.androidaps.diaconn.api.ApiResponse
|
|
||||||
import info.nightscout.androidaps.diaconn.api.DiaconnApiService
|
|
||||||
import info.nightscout.androidaps.diaconn.api.DiaconnLogUploader
|
|
||||||
import info.nightscout.androidaps.diaconn.api.PumpLog
|
|
||||||
import info.nightscout.androidaps.diaconn.api.PumpLogDto
|
|
||||||
import info.nightscout.androidaps.diaconn.common.RecordTypes
|
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryRecord
|
|
||||||
import info.nightscout.androidaps.diaconn.database.DiaconnHistoryRecordDao
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_ALARM_BATTERY
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_ALARM_BLOCK
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_ALARM_SHORTAGE
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_CHANGE_INJECTOR_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_CHANGE_NEEDLE_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_CHANGE_TUBE_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECTION_1DAY
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECTION_1DAY_BASAL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECTION_1HOUR_BASAL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECTION_DUAL_NORMAL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_DUAL_FAIL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_DUAL_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_MEAL_FAIL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_MEAL_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_NORMAL_FAIL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_NORMAL_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_SQUARE_FAIL
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_INJECT_SQUARE_SUCCESS
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_RESET_SYS_V3
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_SET_DUAL_INJECTION
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_SET_SQUARE_INJECTION
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_SUSPEND_RELEASE_V2
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_SUSPEND_V2
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_TB_START_V3
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.LOG_TB_STOP_V3
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.PumplogUtil
|
|
||||||
import info.nightscout.interfaces.plugin.ActivePlugin
|
import info.nightscout.interfaces.plugin.ActivePlugin
|
||||||
import info.nightscout.interfaces.pump.DetailedBolusInfo
|
import info.nightscout.interfaces.pump.DetailedBolusInfo
|
||||||
import info.nightscout.interfaces.pump.DetailedBolusInfoStorage
|
import info.nightscout.interfaces.pump.DetailedBolusInfoStorage
|
||||||
|
@ -45,6 +9,42 @@ import info.nightscout.interfaces.pump.PumpSync
|
||||||
import info.nightscout.interfaces.pump.TemporaryBasalStorage
|
import info.nightscout.interfaces.pump.TemporaryBasalStorage
|
||||||
import info.nightscout.interfaces.pump.defs.PumpDescription
|
import info.nightscout.interfaces.pump.defs.PumpDescription
|
||||||
import info.nightscout.interfaces.pump.defs.PumpType
|
import info.nightscout.interfaces.pump.defs.PumpType
|
||||||
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
|
import info.nightscout.pump.diaconn.api.ApiResponse
|
||||||
|
import info.nightscout.pump.diaconn.api.DiaconnApiService
|
||||||
|
import info.nightscout.pump.diaconn.api.DiaconnLogUploader
|
||||||
|
import info.nightscout.pump.diaconn.api.PumpLog
|
||||||
|
import info.nightscout.pump.diaconn.api.PumpLogDto
|
||||||
|
import info.nightscout.pump.diaconn.common.RecordTypes
|
||||||
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryRecord
|
||||||
|
import info.nightscout.pump.diaconn.database.DiaconnHistoryRecordDao
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_ALARM_BATTERY
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_ALARM_BLOCK
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_ALARM_SHORTAGE
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_CHANGE_INJECTOR_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_CHANGE_NEEDLE_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_CHANGE_TUBE_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECTION_1DAY
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECTION_1DAY_BASAL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECTION_1HOUR_BASAL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECTION_DUAL_NORMAL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_DUAL_FAIL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_DUAL_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_MEAL_FAIL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_MEAL_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_NORMAL_FAIL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_NORMAL_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_SQUARE_FAIL
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_INJECT_SQUARE_SUCCESS
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_RESET_SYS_V3
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_SET_DUAL_INJECTION
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_SET_SQUARE_INJECTION
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_SUSPEND_RELEASE_V2
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_SUSPEND_V2
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_TB_START_V3
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.LOG_TB_STOP_V3
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.PumplogUtil
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.events.EventPumpStatusChanged
|
import info.nightscout.rx.events.EventPumpStatusChanged
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,13 +1,13 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
|
||||||
import info.nightscout.androidaps.diaconn.R
|
|
||||||
import info.nightscout.androidaps.diaconn.pumplog.PumplogUtil
|
|
||||||
import info.nightscout.interfaces.pump.defs.PumpDescription
|
import info.nightscout.interfaces.pump.defs.PumpDescription
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.interfaces.pump.defs.PumpType
|
import info.nightscout.interfaces.pump.defs.PumpType
|
||||||
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
|
import info.nightscout.pump.diaconn.pumplog.PumplogUtil
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -213,7 +213,7 @@ class BigMainInfoInquireResponsePacket(
|
||||||
diaconnG8Pump.pumpProfiles!![diaconnG8Pump.activeProfile][23] = diaconnG8Pump.baseAmount24
|
diaconnG8Pump.pumpProfiles!![diaconnG8Pump.activeProfile][23] = diaconnG8Pump.baseAmount24
|
||||||
|
|
||||||
//incarnation no 처리
|
//incarnation no 처리
|
||||||
diaconnG8Pump.isPumpVersionGe2_63 = PumplogUtil.isPumpVersionGe(sp.getString(rh.gs(R.string.pumpversion), ""),2, 63)
|
diaconnG8Pump.isPumpVersionGe2_63 = PumplogUtil.isPumpVersionGe(sp.getString(rh.gs(R.string.pumpversion), ""), 2, 63)
|
||||||
|
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "result > " + diaconnG8Pump.result)
|
aapsLogger.debug(LTag.PUMPCOMM, "result > " + diaconnG8Pump.result)
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "systemRemainInsulin > " + diaconnG8Pump.systemRemainInsulin)
|
aapsLogger.debug(LTag.PUMPCOMM, "systemRemainInsulin > " + diaconnG8Pump.systemRemainInsulin)
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,8 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
|
import info.nightscout.pump.diaconn.R
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
|
@ -31,8 +32,8 @@ class BolusSpeedSettingReportPacket(
|
||||||
|
|
||||||
val bufferData = prefixDecode(data)
|
val bufferData = prefixDecode(data)
|
||||||
diaconnG8Pump.speed = getByteToInt(bufferData) // speed result
|
diaconnG8Pump.speed = getByteToInt(bufferData) // speed result
|
||||||
sp.putBoolean("diaconn_g8_isbolusspeedsync", true)
|
sp.putBoolean(R.string.key_diaconn_g8_is_bolus_speed_sync, true)
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "bolusSpeed --> ${diaconnG8Pump.speed }")
|
aapsLogger.debug(LTag.PUMPCOMM, "bolusSpeed --> ${diaconnG8Pump.speed}")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getFriendlyName(): String {
|
override fun getFriendlyName(): String {
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet;
|
package info.nightscout.pump.diaconn.packet;
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
|
@ -6,9 +6,9 @@ import java.nio.ByteOrder;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector;
|
import dagger.android.HasAndroidInjector;
|
||||||
import info.nightscout.shared.utils.DateUtil;
|
|
||||||
import info.nightscout.rx.logging.AAPSLogger;
|
import info.nightscout.rx.logging.AAPSLogger;
|
||||||
import info.nightscout.rx.logging.LTag;
|
import info.nightscout.rx.logging.LTag;
|
||||||
|
import info.nightscout.shared.utils.DateUtil;
|
||||||
|
|
||||||
public class DiaconnG8Packet {
|
public class DiaconnG8Packet {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import java.util.*
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import java.util.*
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,9 +1,9 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,10 +1,10 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,10 +1,10 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.bus.RxBus
|
import info.nightscout.rx.bus.RxBus
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,11 +1,10 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.androidaps.diaconn.R
|
import info.nightscout.pump.diaconn.R
|
||||||
import info.nightscout.shared.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
import info.nightscout.shared.interfaces.ResourceHelper
|
||||||
import info.nightscout.shared.sharedPreferences.SP
|
import info.nightscout.shared.sharedPreferences.SP
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,7 +1,7 @@
|
||||||
package info.nightscout.androidaps.diaconn.packet
|
package info.nightscout.pump.diaconn.packet
|
||||||
|
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.androidaps.diaconn.DiaconnG8Pump
|
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||||
import info.nightscout.rx.logging.LTag
|
import info.nightscout.rx.logging.LTag
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue