Aidex: lints

This commit is contained in:
Milos Kozak 2022-04-25 11:15:54 +02:00
parent 6c05b9d17f
commit f67f4fc520

View file

@ -14,27 +14,27 @@ import info.nightscout.androidaps.interfaces.BgSource
import info.nightscout.androidaps.interfaces.PluginBase import info.nightscout.androidaps.interfaces.PluginBase
import info.nightscout.androidaps.interfaces.PluginDescription import info.nightscout.androidaps.interfaces.PluginDescription
import info.nightscout.androidaps.interfaces.PluginType import info.nightscout.androidaps.interfaces.PluginType
import info.nightscout.shared.logging.AAPSLogger
import info.nightscout.shared.logging.LTag
import info.nightscout.androidaps.receivers.DataWorker import info.nightscout.androidaps.receivers.DataWorker
import info.nightscout.androidaps.services.Intents import info.nightscout.androidaps.services.Intents
import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.resources.ResourceHelper
import info.nightscout.shared.logging.AAPSLogger
import info.nightscout.shared.logging.LTag
import javax.inject.Inject import javax.inject.Inject
import javax.inject.Singleton import javax.inject.Singleton
import kotlin.math.log
@Singleton @Singleton
class AidexPlugin @Inject constructor( class AidexPlugin @Inject constructor(
injector: HasAndroidInjector, injector: HasAndroidInjector,
rh: ResourceHelper, rh: ResourceHelper,
aapsLogger: AAPSLogger aapsLogger: AAPSLogger
) : PluginBase(PluginDescription() ) : PluginBase(
.mainType(PluginType.BGSOURCE) PluginDescription()
.fragmentClass(BGSourceFragment::class.java.name) .mainType(PluginType.BGSOURCE)
.pluginIcon((R.drawable.ic_blooddrop_48)) .fragmentClass(BGSourceFragment::class.java.name)
.pluginName(R.string.aidex) .pluginIcon((R.drawable.ic_blooddrop_48))
.shortName(R.string.aidex_short) .pluginName(R.string.aidex)
.description(R.string.description_source_aidex), .shortName(R.string.aidex_short)
.description(R.string.description_source_aidex),
aapsLogger, rh, injector aapsLogger, rh, injector
), BgSource { ), BgSource {
@ -43,7 +43,7 @@ class AidexPlugin @Inject constructor(
/** /**
* Aidex App doesn't have upload to NS * Aidex App doesn't have upload to NS
*/ */
override fun shouldUploadToNs(glucoseValue: GlucoseValue): Boolean = true override fun shouldUploadToNs(glucoseValue: GlucoseValue): Boolean = true
override fun advancedFilteringSupported(): Boolean { override fun advancedFilteringSupported(): Boolean {
return advancedFiltering return advancedFiltering