DataBroadcaster -> Tizen

This commit is contained in:
Milos Kozak 2023-12-14 11:15:56 +01:00
parent 39eb458e6c
commit d7bc09c7e0
4 changed files with 14 additions and 14 deletions

View file

@ -47,7 +47,7 @@ import app.aaps.plugins.source.PoctechPlugin
import app.aaps.plugins.source.RandomBgPlugin
import app.aaps.plugins.source.TomatoPlugin
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.nsclientV3.NSClientV3Plugin
import app.aaps.plugins.sync.openhumans.OpenHumansUploaderPlugin
@ -350,7 +350,7 @@ abstract class PluginsListModule {
@AllConfigs
@IntoMap
@IntKey(368)
abstract fun bindDataBroadcastPlugin(plugin: DataBroadcastPlugin): PluginBase
abstract fun bindDataBroadcastPlugin(plugin: TizenPlugin): PluginBase
@Binds
@AllConfigs

View file

@ -1,4 +1,4 @@
package app.aaps.plugins.sync.dataBroadcaster
package app.aaps.plugins.sync.tizen
import android.content.Context
import android.content.Intent
@ -41,7 +41,7 @@ import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class DataBroadcastPlugin @Inject constructor(
class TizenPlugin @Inject constructor(
injector: HasAndroidInjector,
aapsLogger: AAPSLogger,
rh: ResourceHelper,
@ -64,9 +64,9 @@ class DataBroadcastPlugin @Inject constructor(
PluginDescription()
.mainType(PluginType.SYNC)
.pluginIcon(app.aaps.core.main.R.drawable.ic_watch)
.pluginName(R.string.data_broadcaster)
.shortName(R.string.data_broadcaster_short)
.description(R.string.data_broadcaster_description),
.pluginName(R.string.tizen)
.shortName(R.string.tizen_short)
.description(R.string.tizen_description),
aapsLogger, rh, injector
) {

View file

@ -180,9 +180,9 @@
<!-- DataBroadcast-->
<string name="data_broadcaster">Samsung Tizen</string>
<string name="data_broadcaster_short">TIZ</string>
<string name="data_broadcaster_description">Broadcast data to Samsung\'s G-Watch Wear App (Tizen OS)</string>
<string name="tizen">Samsung Tizen</string>
<string name="tizen_short">TIZ</string>
<string name="tizen_description">Broadcast data to Samsung\'s G-Watch Wear App (Tizen OS)</string>
<!-- GarminPlugin -->
<string name="garmin">Garmin</string>

View file

@ -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.Loop
@ -27,7 +27,7 @@ import org.mockito.ArgumentMatchers.anyLong
import org.mockito.Mock
import org.mockito.Mockito
internal class DataBroadcastPluginTest : TestBaseWithProfile() {
internal class TizenPluginTest : TestBaseWithProfile() {
@Mock lateinit var defaultValueHelper: DefaultValueHelper
@Mock lateinit var loop: Loop
@ -36,13 +36,13 @@ internal class DataBroadcastPluginTest : TestBaseWithProfile() {
@Mock lateinit var autosensDataStore: AutosensDataStore
@Mock lateinit var processedDeviceStatusData: ProcessedDeviceStatusData
private lateinit var sut: DataBroadcastPlugin
private lateinit var sut: TizenPlugin
private val injector = HasAndroidInjector { AndroidInjector { } }
@BeforeEach
fun setUp() {
sut = DataBroadcastPlugin(
sut = TizenPlugin(
injector, aapsLogger, rh, aapsSchedulers, context, dateUtil, fabricPrivacy, rxBus, iobCobCalculator, profileFunction, defaultValueHelper, processedDeviceStatusData,
loop, activePlugin, receiverStatusStore, config, glucoseStatusProvider, decimalFormatter
)