:plugins:insulin cleanup
This commit is contained in:
parent
a4907b212a
commit
905916e1eb
|
@ -39,6 +39,8 @@ import app.aaps.plugins.aps.openAPSSMB.OpenAPSSMBPlugin
|
||||||
import app.aaps.plugins.aps.openAPSSMBDynamicISF.OpenAPSSMBDynamicISFPlugin
|
import app.aaps.plugins.aps.openAPSSMBDynamicISF.OpenAPSSMBDynamicISFPlugin
|
||||||
import app.aaps.plugins.automation.AutomationPlugin
|
import app.aaps.plugins.automation.AutomationPlugin
|
||||||
import app.aaps.plugins.configuration.maintenance.MaintenancePlugin
|
import app.aaps.plugins.configuration.maintenance.MaintenancePlugin
|
||||||
|
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
||||||
|
import app.aaps.plugins.insulin.InsulinOrefFreePeakPlugin
|
||||||
import dagger.android.support.AndroidSupportInjection
|
import dagger.android.support.AndroidSupportInjection
|
||||||
import info.nightscout.androidaps.R
|
import info.nightscout.androidaps.R
|
||||||
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
|
||||||
|
@ -47,8 +49,6 @@ import info.nightscout.androidaps.danar.DanaRPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.eopatch.EopatchPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.eopatch.EopatchPumpPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
|
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicPumpPlugin
|
||||||
import info.nightscout.insulin.InsulinOrefFreePeakPlugin
|
|
||||||
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
|
||||||
import info.nightscout.plugins.general.smsCommunicator.SmsCommunicatorPlugin
|
import info.nightscout.plugins.general.smsCommunicator.SmsCommunicatorPlugin
|
||||||
import info.nightscout.plugins.general.wear.WearPlugin
|
import info.nightscout.plugins.general.wear.WearPlugin
|
||||||
import info.nightscout.plugins.sync.nsclient.NSClientPlugin
|
import info.nightscout.plugins.sync.nsclient.NSClientPlugin
|
||||||
|
|
|
@ -7,6 +7,8 @@ import app.aaps.implementation.di.ImplementationModule
|
||||||
import app.aaps.plugins.aps.di.ApsModule
|
import app.aaps.plugins.aps.di.ApsModule
|
||||||
import app.aaps.plugins.automation.di.AutomationModule
|
import app.aaps.plugins.automation.di.AutomationModule
|
||||||
import app.aaps.plugins.configuration.di.ConfigurationModule
|
import app.aaps.plugins.configuration.di.ConfigurationModule
|
||||||
|
import app.aaps.plugins.constraints.di.PluginsConstraintsModule
|
||||||
|
import app.aaps.plugins.insulin.di.InsulinModule
|
||||||
import app.aaps.shared.impl.di.SharedImplModule
|
import app.aaps.shared.impl.di.SharedImplModule
|
||||||
import dagger.BindsInstance
|
import dagger.BindsInstance
|
||||||
import dagger.Component
|
import dagger.Component
|
||||||
|
@ -21,8 +23,6 @@ import info.nightscout.androidaps.plugins.pump.medtronic.di.MedtronicModule
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule
|
import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule
|
import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule
|
||||||
import info.nightscout.database.impl.DatabaseModule
|
import info.nightscout.database.impl.DatabaseModule
|
||||||
import info.nightscout.insulin.di.InsulinModule
|
|
||||||
import app.aaps.plugins.constraints.di.PluginsConstraintsModule
|
|
||||||
import info.nightscout.plugins.di.PluginsModule
|
import info.nightscout.plugins.di.PluginsModule
|
||||||
import info.nightscout.plugins.sync.di.OpenHumansModule
|
import info.nightscout.plugins.sync.di.OpenHumansModule
|
||||||
import info.nightscout.plugins.sync.di.SyncModule
|
import info.nightscout.plugins.sync.di.SyncModule
|
||||||
|
|
|
@ -9,6 +9,17 @@ import app.aaps.plugins.aps.openAPSSMBDynamicISF.OpenAPSSMBDynamicISFPlugin
|
||||||
import app.aaps.plugins.automation.AutomationPlugin
|
import app.aaps.plugins.automation.AutomationPlugin
|
||||||
import app.aaps.plugins.configuration.configBuilder.ConfigBuilderPlugin
|
import app.aaps.plugins.configuration.configBuilder.ConfigBuilderPlugin
|
||||||
import app.aaps.plugins.configuration.maintenance.MaintenancePlugin
|
import app.aaps.plugins.configuration.maintenance.MaintenancePlugin
|
||||||
|
import app.aaps.plugins.constraints.bgQualityCheck.BgQualityCheckPlugin
|
||||||
|
import app.aaps.plugins.constraints.dstHelper.DstHelperPlugin
|
||||||
|
import app.aaps.plugins.constraints.objectives.ObjectivesPlugin
|
||||||
|
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
||||||
|
import app.aaps.plugins.constraints.signatureVerifier.SignatureVerifierPlugin
|
||||||
|
import app.aaps.plugins.constraints.storage.StorageConstraintPlugin
|
||||||
|
import app.aaps.plugins.constraints.versionChecker.VersionCheckerPlugin
|
||||||
|
import app.aaps.plugins.insulin.InsulinLyumjevPlugin
|
||||||
|
import app.aaps.plugins.insulin.InsulinOrefFreePeakPlugin
|
||||||
|
import app.aaps.plugins.insulin.InsulinOrefRapidActingPlugin
|
||||||
|
import app.aaps.plugins.insulin.InsulinOrefUltraRapidActingPlugin
|
||||||
import dagger.Binds
|
import dagger.Binds
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.multibindings.IntKey
|
import dagger.multibindings.IntKey
|
||||||
|
@ -21,17 +32,6 @@ import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicPumpPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.OmnipodDashPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.omnipod.dash.OmnipodDashPumpPlugin
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.eros.OmnipodErosPumpPlugin
|
import info.nightscout.androidaps.plugins.pump.omnipod.eros.OmnipodErosPumpPlugin
|
||||||
import info.nightscout.insulin.InsulinLyumjevPlugin
|
|
||||||
import info.nightscout.insulin.InsulinOrefFreePeakPlugin
|
|
||||||
import info.nightscout.insulin.InsulinOrefRapidActingPlugin
|
|
||||||
import info.nightscout.insulin.InsulinOrefUltraRapidActingPlugin
|
|
||||||
import app.aaps.plugins.constraints.bgQualityCheck.BgQualityCheckPlugin
|
|
||||||
import app.aaps.plugins.constraints.dstHelper.DstHelperPlugin
|
|
||||||
import app.aaps.plugins.constraints.objectives.ObjectivesPlugin
|
|
||||||
import app.aaps.plugins.constraints.safety.SafetyPlugin
|
|
||||||
import app.aaps.plugins.constraints.signatureVerifier.SignatureVerifierPlugin
|
|
||||||
import app.aaps.plugins.constraints.storage.StorageConstraintPlugin
|
|
||||||
import app.aaps.plugins.constraints.versionChecker.VersionCheckerPlugin
|
|
||||||
import info.nightscout.plugins.general.actions.ActionsPlugin
|
import info.nightscout.plugins.general.actions.ActionsPlugin
|
||||||
import info.nightscout.plugins.general.food.FoodPlugin
|
import info.nightscout.plugins.general.food.FoodPlugin
|
||||||
import info.nightscout.plugins.general.overview.OverviewPlugin
|
import info.nightscout.plugins.general.overview.OverviewPlugin
|
||||||
|
|
|
@ -11,7 +11,7 @@ apply from: "${project.rootDir}/core/main/allopen_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
|
apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
|
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
|
||||||
android {
|
android {
|
||||||
namespace 'info.nightscout.insulin'
|
namespace 'app.aaps.plugins.insulin'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
|
@ -6,8 +6,8 @@ import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import app.aaps.core.interfaces.plugin.ActivePlugin
|
import app.aaps.core.interfaces.plugin.ActivePlugin
|
||||||
import app.aaps.core.interfaces.resources.ResourceHelper
|
import app.aaps.core.interfaces.resources.ResourceHelper
|
||||||
|
import app.aaps.plugins.insulin.databinding.InsulinFragmentBinding
|
||||||
import dagger.android.support.DaggerFragment
|
import dagger.android.support.DaggerFragment
|
||||||
import info.nightscout.insulin.databinding.InsulinFragmentBinding
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class InsulinFragment : DaggerFragment() {
|
class InsulinFragment : DaggerFragment() {
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,7 +1,5 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.main.utils.extensions.putInt
|
|
||||||
import app.aaps.core.main.utils.extensions.storeInt
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
||||||
import app.aaps.core.interfaces.logging.AAPSLogger
|
import app.aaps.core.interfaces.logging.AAPSLogger
|
||||||
|
@ -11,6 +9,8 @@ import app.aaps.core.interfaces.rx.bus.RxBus
|
||||||
import app.aaps.core.interfaces.sharedPreferences.SP
|
import app.aaps.core.interfaces.sharedPreferences.SP
|
||||||
import app.aaps.core.interfaces.ui.UiInteraction
|
import app.aaps.core.interfaces.ui.UiInteraction
|
||||||
import app.aaps.core.interfaces.utils.HardLimits
|
import app.aaps.core.interfaces.utils.HardLimits
|
||||||
|
import app.aaps.core.main.utils.extensions.putInt
|
||||||
|
import app.aaps.core.main.utils.extensions.storeInt
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,8 +1,8 @@
|
||||||
package info.nightscout.insulin.di
|
package app.aaps.plugins.insulin.di
|
||||||
|
|
||||||
|
import app.aaps.plugins.insulin.InsulinFragment
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.android.ContributesAndroidInjector
|
import dagger.android.ContributesAndroidInjector
|
||||||
import info.nightscout.insulin.InsulinFragment
|
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
|
@ -2,7 +2,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context="info.nightscout.insulin.InsulinFragment">
|
tools:context=".InsulinFragment">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.configuration.Constants
|
import app.aaps.core.interfaces.configuration.Constants
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.insulin
|
package app.aaps.plugins.insulin
|
||||||
|
|
||||||
import app.aaps.core.interfaces.configuration.Config
|
import app.aaps.core.interfaces.configuration.Config
|
||||||
import app.aaps.core.interfaces.insulin.Insulin
|
import app.aaps.core.interfaces.insulin.Insulin
|
|
@ -6,9 +6,9 @@ import app.aaps.core.interfaces.ui.UiInteraction
|
||||||
import app.aaps.core.interfaces.utils.T
|
import app.aaps.core.interfaces.utils.T
|
||||||
import app.aaps.core.main.extensions.iobCalc
|
import app.aaps.core.main.extensions.iobCalc
|
||||||
import app.aaps.database.entities.Bolus
|
import app.aaps.database.entities.Bolus
|
||||||
|
import app.aaps.plugins.insulin.InsulinLyumjevPlugin
|
||||||
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 info.nightscout.insulin.InsulinLyumjevPlugin
|
|
||||||
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
|
||||||
|
|
|
@ -11,9 +11,9 @@ import app.aaps.core.main.extensions.isInProgress
|
||||||
import app.aaps.core.main.extensions.toTemporaryBasal
|
import app.aaps.core.main.extensions.toTemporaryBasal
|
||||||
import app.aaps.database.entities.ExtendedBolus
|
import app.aaps.database.entities.ExtendedBolus
|
||||||
import app.aaps.database.entities.TemporaryBasal
|
import app.aaps.database.entities.TemporaryBasal
|
||||||
|
import app.aaps.plugins.insulin.InsulinLyumjevPlugin
|
||||||
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 info.nightscout.insulin.InsulinLyumjevPlugin
|
|
||||||
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
|
||||||
|
|
|
@ -8,9 +8,9 @@ import app.aaps.core.interfaces.ui.UiInteraction
|
||||||
import app.aaps.core.interfaces.utils.T
|
import app.aaps.core.interfaces.utils.T
|
||||||
import app.aaps.core.main.extensions.iobCalc
|
import app.aaps.core.main.extensions.iobCalc
|
||||||
import app.aaps.database.entities.TemporaryBasal
|
import app.aaps.database.entities.TemporaryBasal
|
||||||
|
import app.aaps.plugins.insulin.InsulinLyumjevPlugin
|
||||||
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 info.nightscout.insulin.InsulinLyumjevPlugin
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue