:pump:virtual cleanup
This commit is contained in:
parent
c79b7cf477
commit
d3e6fb0df9
|
@ -60,6 +60,7 @@ import app.aaps.plugins.sync.nsclientV3.NSClientV3Plugin
|
||||||
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
||||||
import app.aaps.plugins.sync.tidepool.TidepoolPlugin
|
import app.aaps.plugins.sync.tidepool.TidepoolPlugin
|
||||||
import app.aaps.plugins.sync.xdrip.XdripPlugin
|
import app.aaps.plugins.sync.xdrip.XdripPlugin
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import dagger.android.support.AndroidSupportInjection
|
import dagger.android.support.AndroidSupportInjection
|
||||||
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
||||||
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
import info.nightscout.androidaps.danaRv2.DanaRv2Plugin
|
||||||
|
@ -71,7 +72,6 @@ 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.pump.diaconn.DiaconnG8Plugin
|
||||||
import info.nightscout.pump.medtrum.MedtrumPlugin
|
import info.nightscout.pump.medtrum.MedtrumPlugin
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class MyPreferenceFragment : PreferenceFragmentCompat(), OnSharedPreferenceChangeListener {
|
class MyPreferenceFragment : PreferenceFragmentCompat(), OnSharedPreferenceChangeListener {
|
||||||
|
|
|
@ -14,6 +14,7 @@ import app.aaps.plugins.main.di.PluginsModule
|
||||||
import app.aaps.plugins.source.di.SourceModule
|
import app.aaps.plugins.source.di.SourceModule
|
||||||
import app.aaps.plugins.sync.di.OpenHumansModule
|
import app.aaps.plugins.sync.di.OpenHumansModule
|
||||||
import app.aaps.plugins.sync.di.SyncModule
|
import app.aaps.plugins.sync.di.SyncModule
|
||||||
|
import app.aaps.pump.virtual.di.VirtualPumpModule
|
||||||
import app.aaps.shared.impl.di.SharedImplModule
|
import app.aaps.shared.impl.di.SharedImplModule
|
||||||
import app.aaps.ui.di.UiModule
|
import app.aaps.ui.di.UiModule
|
||||||
import dagger.BindsInstance
|
import dagger.BindsInstance
|
||||||
|
@ -36,7 +37,6 @@ 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.pump.diaconn.di.DiaconnG8Module
|
||||||
import info.nightscout.pump.medtrum.di.MedtrumModule
|
import info.nightscout.pump.medtrum.di.MedtrumModule
|
||||||
import info.nightscout.pump.virtual.di.VirtualPumpModule
|
|
||||||
import info.nightscout.workflow.di.WorkflowModule
|
import info.nightscout.workflow.di.WorkflowModule
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ import app.aaps.plugins.sync.nsclientV3.NSClientV3Plugin
|
||||||
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
||||||
import app.aaps.plugins.sync.tidepool.TidepoolPlugin
|
import app.aaps.plugins.sync.tidepool.TidepoolPlugin
|
||||||
import app.aaps.plugins.sync.xdrip.XdripPlugin
|
import app.aaps.plugins.sync.xdrip.XdripPlugin
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import dagger.Binds
|
import dagger.Binds
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.multibindings.IntKey
|
import dagger.multibindings.IntKey
|
||||||
|
@ -68,7 +69,6 @@ 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.pump.diaconn.DiaconnG8Plugin
|
||||||
import info.nightscout.pump.medtrum.MedtrumPlugin
|
import info.nightscout.pump.medtrum.MedtrumPlugin
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
import javax.inject.Qualifier
|
import javax.inject.Qualifier
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
|
|
|
@ -3,11 +3,11 @@ package app.aaps.interfaces.pump
|
||||||
import app.aaps.core.interfaces.pump.PumpEnactResult
|
import app.aaps.core.interfaces.pump.PumpEnactResult
|
||||||
import app.aaps.core.main.pump.toHtml
|
import app.aaps.core.main.pump.toHtml
|
||||||
import app.aaps.plugins.aps.loop.extensions.json
|
import app.aaps.plugins.aps.loop.extensions.json
|
||||||
|
import app.aaps.pump.virtual.extensions.toText
|
||||||
import app.aaps.shared.tests.TestBaseWithProfile
|
import app.aaps.shared.tests.TestBaseWithProfile
|
||||||
import com.google.common.truth.Truth.assertThat
|
import com.google.common.truth.Truth.assertThat
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.pump.virtual.extensions.toText
|
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
|
|
@ -20,11 +20,11 @@ import app.aaps.core.interfaces.utils.DateUtil
|
||||||
import app.aaps.core.interfaces.utils.fabric.FabricPrivacy
|
import app.aaps.core.interfaces.utils.fabric.FabricPrivacy
|
||||||
import app.aaps.core.nssdk.interfaces.RunningConfiguration
|
import app.aaps.core.nssdk.interfaces.RunningConfiguration
|
||||||
import app.aaps.database.impl.AppRepository
|
import app.aaps.database.impl.AppRepository
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import app.aaps.shared.tests.TestBase
|
import app.aaps.shared.tests.TestBase
|
||||||
import com.google.common.truth.Truth.assertThat
|
import com.google.common.truth.Truth.assertThat
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.mockito.Mock
|
import org.mockito.Mock
|
||||||
|
|
|
@ -26,6 +26,7 @@ import app.aaps.plugins.constraints.objectives.ObjectivesPlugin
|
||||||
import app.aaps.plugins.constraints.objectives.objectives.Objective
|
import app.aaps.plugins.constraints.objectives.objectives.Objective
|
||||||
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
||||||
import app.aaps.plugins.source.GlimpPlugin
|
import app.aaps.plugins.source.GlimpPlugin
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import app.aaps.shared.tests.TestBaseWithProfile
|
import app.aaps.shared.tests.TestBaseWithProfile
|
||||||
import com.google.common.truth.Truth.assertThat
|
import com.google.common.truth.Truth.assertThat
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
|
@ -41,7 +42,6 @@ import info.nightscout.pump.dana.DanaPump
|
||||||
import info.nightscout.pump.dana.R
|
import info.nightscout.pump.dana.R
|
||||||
import info.nightscout.pump.dana.database.DanaHistoryDatabase
|
import info.nightscout.pump.dana.database.DanaHistoryDatabase
|
||||||
import info.nightscout.pump.danars.DanaRSPlugin
|
import info.nightscout.pump.danars.DanaRSPlugin
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.mockito.Mock
|
import org.mockito.Mock
|
||||||
|
|
|
@ -16,11 +16,11 @@ import app.aaps.database.impl.AppRepository
|
||||||
import app.aaps.plugins.aps.openAPSAMA.OpenAPSAMAPlugin
|
import app.aaps.plugins.aps.openAPSAMA.OpenAPSAMAPlugin
|
||||||
import app.aaps.plugins.aps.openAPSSMB.OpenAPSSMBPlugin
|
import app.aaps.plugins.aps.openAPSSMB.OpenAPSSMBPlugin
|
||||||
import app.aaps.plugins.source.GlimpPlugin
|
import app.aaps.plugins.source.GlimpPlugin
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import app.aaps.shared.tests.TestBaseWithProfile
|
import app.aaps.shared.tests.TestBaseWithProfile
|
||||||
import com.google.common.truth.Truth.assertThat
|
import com.google.common.truth.Truth.assertThat
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.mockito.Mock
|
import org.mockito.Mock
|
||||||
|
|
|
@ -13,7 +13,7 @@ apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
namespace 'info.nightscout.pump.virtual'
|
namespace 'app.aaps.pump.virtual'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.pump.virtual
|
package app.aaps.pump.virtual
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
|
@ -21,9 +21,9 @@ import app.aaps.core.interfaces.utils.DecimalFormatter
|
||||||
import app.aaps.core.interfaces.utils.T
|
import app.aaps.core.interfaces.utils.T
|
||||||
import app.aaps.core.interfaces.utils.fabric.FabricPrivacy
|
import app.aaps.core.interfaces.utils.fabric.FabricPrivacy
|
||||||
import app.aaps.core.main.extensions.toStringFull
|
import app.aaps.core.main.extensions.toStringFull
|
||||||
|
import app.aaps.pump.virtual.databinding.VirtualPumpFragmentBinding
|
||||||
|
import app.aaps.pump.virtual.events.EventVirtualPumpUpdateGui
|
||||||
import dagger.android.support.DaggerFragment
|
import dagger.android.support.DaggerFragment
|
||||||
import info.nightscout.pump.virtual.databinding.VirtualPumpFragmentBinding
|
|
||||||
import info.nightscout.pump.virtual.events.EventVirtualPumpUpdateGui
|
|
||||||
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
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.pump.virtual
|
package app.aaps.pump.virtual
|
||||||
|
|
||||||
import android.os.SystemClock
|
import android.os.SystemClock
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
|
@ -39,9 +39,9 @@ import app.aaps.core.main.events.EventNewNotification
|
||||||
import app.aaps.core.main.extensions.convertedToAbsolute
|
import app.aaps.core.main.extensions.convertedToAbsolute
|
||||||
import app.aaps.core.main.extensions.plannedRemainingMinutes
|
import app.aaps.core.main.extensions.plannedRemainingMinutes
|
||||||
import app.aaps.core.utils.fabric.InstanceId
|
import app.aaps.core.utils.fabric.InstanceId
|
||||||
|
import app.aaps.pump.virtual.events.EventVirtualPumpUpdateGui
|
||||||
|
import app.aaps.pump.virtual.extensions.toText
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import info.nightscout.pump.virtual.events.EventVirtualPumpUpdateGui
|
|
||||||
import info.nightscout.pump.virtual.extensions.toText
|
|
||||||
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 org.json.JSONException
|
import org.json.JSONException
|
|
@ -1,11 +1,11 @@
|
||||||
package info.nightscout.pump.virtual.di
|
package app.aaps.pump.virtual.di
|
||||||
|
|
||||||
import app.aaps.core.interfaces.pump.VirtualPump
|
import app.aaps.core.interfaces.pump.VirtualPump
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpFragment
|
||||||
|
import app.aaps.pump.virtual.VirtualPumpPlugin
|
||||||
import dagger.Binds
|
import dagger.Binds
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.pump.virtual.VirtualPumpFragment
|
|
||||||
import info.nightscout.pump.virtual.VirtualPumpPlugin
|
|
||||||
|
|
||||||
@Module(
|
@Module(
|
||||||
includes = [
|
includes = [
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.pump.virtual.events
|
package app.aaps.pump.virtual.events
|
||||||
|
|
||||||
import app.aaps.core.interfaces.rx.events.EventUpdateGui
|
import app.aaps.core.interfaces.rx.events.EventUpdateGui
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.pump.virtual.extensions
|
package app.aaps.pump.virtual.extensions
|
||||||
|
|
||||||
import app.aaps.core.interfaces.pump.PumpEnactResult
|
import app.aaps.core.interfaces.pump.PumpEnactResult
|
||||||
import app.aaps.core.interfaces.resources.ResourceHelper
|
import app.aaps.core.interfaces.resources.ResourceHelper
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.pump.virtual
|
package app.aaps.pump.virtual
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.db.PersistenceLayer
|
import app.aaps.core.interfaces.db.PersistenceLayer
|
Loading…
Reference in a new issue