DataBroadcaster -> Tizen
This commit is contained in:
parent
39eb458e6c
commit
d7bc09c7e0
4 changed files with 14 additions and 14 deletions
|
@ -47,7 +47,7 @@ import app.aaps.plugins.source.PoctechPlugin
|
||||||
import app.aaps.plugins.source.RandomBgPlugin
|
import app.aaps.plugins.source.RandomBgPlugin
|
||||||
import app.aaps.plugins.source.TomatoPlugin
|
import app.aaps.plugins.source.TomatoPlugin
|
||||||
import app.aaps.plugins.source.XdripSourcePlugin
|
import app.aaps.plugins.source.XdripSourcePlugin
|
||||||
import app.aaps.plugins.sync.dataBroadcaster.DataBroadcastPlugin
|
import app.aaps.plugins.sync.tizen.TizenPlugin
|
||||||
import app.aaps.plugins.sync.nsclient.NSClientPlugin
|
import app.aaps.plugins.sync.nsclient.NSClientPlugin
|
||||||
import app.aaps.plugins.sync.nsclientV3.NSClientV3Plugin
|
import app.aaps.plugins.sync.nsclientV3.NSClientV3Plugin
|
||||||
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
|
||||||
|
@ -350,7 +350,7 @@ abstract class PluginsListModule {
|
||||||
@AllConfigs
|
@AllConfigs
|
||||||
@IntoMap
|
@IntoMap
|
||||||
@IntKey(368)
|
@IntKey(368)
|
||||||
abstract fun bindDataBroadcastPlugin(plugin: DataBroadcastPlugin): PluginBase
|
abstract fun bindDataBroadcastPlugin(plugin: TizenPlugin): PluginBase
|
||||||
|
|
||||||
@Binds
|
@Binds
|
||||||
@AllConfigs
|
@AllConfigs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package app.aaps.plugins.sync.dataBroadcaster
|
package app.aaps.plugins.sync.tizen
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
@ -41,7 +41,7 @@ import javax.inject.Inject
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class DataBroadcastPlugin @Inject constructor(
|
class TizenPlugin @Inject constructor(
|
||||||
injector: HasAndroidInjector,
|
injector: HasAndroidInjector,
|
||||||
aapsLogger: AAPSLogger,
|
aapsLogger: AAPSLogger,
|
||||||
rh: ResourceHelper,
|
rh: ResourceHelper,
|
||||||
|
@ -64,9 +64,9 @@ class DataBroadcastPlugin @Inject constructor(
|
||||||
PluginDescription()
|
PluginDescription()
|
||||||
.mainType(PluginType.SYNC)
|
.mainType(PluginType.SYNC)
|
||||||
.pluginIcon(app.aaps.core.main.R.drawable.ic_watch)
|
.pluginIcon(app.aaps.core.main.R.drawable.ic_watch)
|
||||||
.pluginName(R.string.data_broadcaster)
|
.pluginName(R.string.tizen)
|
||||||
.shortName(R.string.data_broadcaster_short)
|
.shortName(R.string.tizen_short)
|
||||||
.description(R.string.data_broadcaster_description),
|
.description(R.string.tizen_description),
|
||||||
aapsLogger, rh, injector
|
aapsLogger, rh, injector
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -180,9 +180,9 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- DataBroadcast-->
|
<!-- DataBroadcast-->
|
||||||
<string name="data_broadcaster">Samsung Tizen</string>
|
<string name="tizen">Samsung Tizen</string>
|
||||||
<string name="data_broadcaster_short">TIZ</string>
|
<string name="tizen_short">TIZ</string>
|
||||||
<string name="data_broadcaster_description">Broadcast data to Samsung\'s G-Watch Wear App (Tizen OS)</string>
|
<string name="tizen_description">Broadcast data to Samsung\'s G-Watch Wear App (Tizen OS)</string>
|
||||||
|
|
||||||
<!-- GarminPlugin -->
|
<!-- GarminPlugin -->
|
||||||
<string name="garmin">Garmin</string>
|
<string name="garmin">Garmin</string>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package app.aaps.plugins.sync.dataBroadcaster
|
package app.aaps.plugins.sync.tizen
|
||||||
|
|
||||||
import app.aaps.core.interfaces.aps.AutosensDataStore
|
import app.aaps.core.interfaces.aps.AutosensDataStore
|
||||||
import app.aaps.core.interfaces.aps.Loop
|
import app.aaps.core.interfaces.aps.Loop
|
||||||
|
@ -27,7 +27,7 @@ import org.mockito.ArgumentMatchers.anyLong
|
||||||
import org.mockito.Mock
|
import org.mockito.Mock
|
||||||
import org.mockito.Mockito
|
import org.mockito.Mockito
|
||||||
|
|
||||||
internal class DataBroadcastPluginTest : TestBaseWithProfile() {
|
internal class TizenPluginTest : TestBaseWithProfile() {
|
||||||
|
|
||||||
@Mock lateinit var defaultValueHelper: DefaultValueHelper
|
@Mock lateinit var defaultValueHelper: DefaultValueHelper
|
||||||
@Mock lateinit var loop: Loop
|
@Mock lateinit var loop: Loop
|
||||||
|
@ -36,13 +36,13 @@ internal class DataBroadcastPluginTest : TestBaseWithProfile() {
|
||||||
@Mock lateinit var autosensDataStore: AutosensDataStore
|
@Mock lateinit var autosensDataStore: AutosensDataStore
|
||||||
@Mock lateinit var processedDeviceStatusData: ProcessedDeviceStatusData
|
@Mock lateinit var processedDeviceStatusData: ProcessedDeviceStatusData
|
||||||
|
|
||||||
private lateinit var sut: DataBroadcastPlugin
|
private lateinit var sut: TizenPlugin
|
||||||
|
|
||||||
private val injector = HasAndroidInjector { AndroidInjector { } }
|
private val injector = HasAndroidInjector { AndroidInjector { } }
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
fun setUp() {
|
fun setUp() {
|
||||||
sut = DataBroadcastPlugin(
|
sut = TizenPlugin(
|
||||||
injector, aapsLogger, rh, aapsSchedulers, context, dateUtil, fabricPrivacy, rxBus, iobCobCalculator, profileFunction, defaultValueHelper, processedDeviceStatusData,
|
injector, aapsLogger, rh, aapsSchedulers, context, dateUtil, fabricPrivacy, rxBus, iobCobCalculator, profileFunction, defaultValueHelper, processedDeviceStatusData,
|
||||||
loop, activePlugin, receiverStatusStore, config, glucoseStatusProvider, decimalFormatter
|
loop, activePlugin, receiverStatusStore, config, glucoseStatusProvider, decimalFormatter
|
||||||
)
|
)
|
Loading…
Reference in a new issue