diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index bf41126f8b..193c7c536d 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -4,6 +4,8 @@
+
+
diff --git a/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventNSClientNewLog.kt b/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventNSClientNewLog.kt
index c88bfec8b3..cc001a4517 100644
--- a/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventNSClientNewLog.kt
+++ b/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventNSClientNewLog.kt
@@ -15,7 +15,6 @@ class EventNSClientNewLog(val action: String, val logText: String?) : Event() {
stringBuilder.append(action)
stringBuilder.append(" ")
stringBuilder.append(logText)
- stringBuilder.append("
")
return stringBuilder
}
}
\ No newline at end of file
diff --git a/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventXdripNewLog.kt b/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventXdripNewLog.kt
new file mode 100644
index 0000000000..933db28162
--- /dev/null
+++ b/app-wear-shared/shared/src/main/java/info/nightscout/rx/events/EventXdripNewLog.kt
@@ -0,0 +1,21 @@
+package info.nightscout.rx.events
+
+import java.text.SimpleDateFormat
+import java.util.Locale
+
+class EventXdripNewLog(val action: String, val logText: String?) : Event() {
+ var date = System.currentTimeMillis()
+
+ private var timeFormat = SimpleDateFormat("HH:mm:ss", Locale.getDefault())
+
+ fun toPreparedHtml(): StringBuilder {
+ val stringBuilder = StringBuilder()
+ stringBuilder.append(timeFormat.format(date))
+ stringBuilder.append(" ")
+ stringBuilder.append(action)
+ stringBuilder.append(" ")
+ stringBuilder.append(logText)
+ stringBuilder.append("
")
+ return stringBuilder
+ }
+}
\ No newline at end of file
diff --git a/app-wear-shared/shared/src/main/java/info/nightscout/rx/logging/LTag.kt b/app-wear-shared/shared/src/main/java/info/nightscout/rx/logging/LTag.kt
index 87a10164a1..7b3d6546e2 100644
--- a/app-wear-shared/shared/src/main/java/info/nightscout/rx/logging/LTag.kt
+++ b/app-wear-shared/shared/src/main/java/info/nightscout/rx/logging/LTag.kt
@@ -28,5 +28,6 @@ enum class LTag(val tag: String, val defaultValue : Boolean = true, val requires
UI("UI", defaultValue = false),
WEAR("WEAR"),
WIDGET("WIDGET"),
- WORKER("WORKER")
+ WORKER("WORKER"),
+ XDRIP("XDRIP")
}
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index b7af93d7db..72f8d7cb18 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -111,7 +111,7 @@ android {
defaultConfig {
multiDexEnabled true
versionCode 1500
- version "3.1.0.3-dev-g"
+ version "3.1.0.3-dev-h"
buildConfigField "String", "VERSION", '"' + version + '"'
buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"'
buildConfigField "String", "REMOTE", '"' + generateGitRemote() + '"'
diff --git a/app/src/main/java/info/nightscout/androidaps/di/AppModule.kt b/app/src/main/java/info/nightscout/androidaps/di/AppModule.kt
index 5c38128af0..a02cf5afc2 100644
--- a/app/src/main/java/info/nightscout/androidaps/di/AppModule.kt
+++ b/app/src/main/java/info/nightscout/androidaps/di/AppModule.kt
@@ -34,14 +34,14 @@ open class AppModule {
@PluginsListModule.PumpDriver pumpDrivers: Lazy