This commit is contained in:
Milos Kozak 2019-06-03 22:07:38 +02:00
parent 5ab79f7f5a
commit 4a07e01b7d
2 changed files with 4 additions and 10 deletions

View file

@ -279,16 +279,9 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// xDrip-plus port
// new for tidepool
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
// you will want to install the android studio lombok plugin
//compileOnly 'org.projectlombok:lombok:1.16.20'
// compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
//annotationProcessor "org.projectlombok:lombok:1.16.20"
// new for tidepool
implementation "com.squareup.retrofit2:retrofit:2.4.0"
implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
implementation "com.squareup.retrofit2:converter-gson:2.4.0"

View file

@ -4,6 +4,7 @@ import com.google.gson.annotations.Expose
import info.nightscout.androidaps.BuildConfig
import info.nightscout.androidaps.interfaces.PluginBase
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin
import info.nightscout.androidaps.plugins.source.SourceNSClientPlugin
import info.nightscout.androidaps.utils.DateUtil
import info.nightscout.androidaps.utils.T
import java.util.*
@ -26,9 +27,9 @@ class OpenDatasetRequestMessage : BaseMessage() {
@Expose
var dataSetType = UPLOAD_TYPE // omit for "normal"
@Expose
var deviceManufacturers = arrayOf((ConfigBuilderPlugin.getPlugin().activeBgSource as PluginBase).name)
var deviceManufacturers = arrayOf(((ConfigBuilderPlugin.getPlugin().activeBgSource ?: SourceNSClientPlugin.getPlugin()) as PluginBase).name)
@Expose
var deviceModel = (ConfigBuilderPlugin.getPlugin().activeBgSource as PluginBase).name
var deviceModel = arrayOf(((ConfigBuilderPlugin.getPlugin().activeBgSource ?: SourceNSClientPlugin.getPlugin()) as PluginBase).name)
@Expose
var deviceTags = arrayOf("bgm", "cgm", "insulin-pump")
@Expose