Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/src/main/kotlin/app/aaps/di/PluginsListModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import app.aaps.plugins.smoothing.AvgSmoothingPlugin
import app.aaps.plugins.smoothing.ExponentialSmoothingPlugin
import app.aaps.plugins.smoothing.NoSmoothingPlugin
import app.aaps.plugins.source.DexcomPlugin
import app.aaps.plugins.source.EversensePlugin
import app.aaps.plugins.source.GlimpPlugin
import app.aaps.plugins.source.GlunovoPlugin
import app.aaps.plugins.source.IntelligoPlugin
Expand Down Expand Up @@ -280,6 +281,7 @@ abstract class PluginsListModule {
@IntoMap
@IntKey(440)
abstract fun bindDexcomPlugin(plugin: DexcomPlugin): PluginBase
@Binds abstract fun bindEversensePlugin(plugin: EversensePlugin): PluginBase

@Binds
@AllConfigs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ enum class SourceSensor(val text: String) {
SIBIONIC("SI App"),
SINO("Sino App"),
EVERSENSE("Eversense"),
EVERSENSE_E3("Eversense E3"),
EVERSENSE_365("Eversense 365"),
AIDEX("GlucoRx Aidex"),
SYAI_TAG("Syai Tag"),
RANDOM("Random"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ enum class NotificationId(

// CGM
BG_READINGS_MISSED(27, URGENT, CGM),
EVERSENSE_ALARM(95, URGENT, CGM, allowMultiple = true),
EVERSENSE_FIRMWARE(96, INFO, CGM),
EVERSENSE_RELEASE(97, INFO, CGM),
EVERSENSE_PLACEMENT(98, URGENT, CGM),

// Loop / APS
EASY_MODE_ENABLED(2, URGENT, LOOP),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ data class GlucoseValue(
MM_600_SERIES,
MM_SIMPLERA,
EVERSENSE,
EVERSENSE_E3,
EVERSENSE_365,
AIDEX,
RANDOM,
UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ fun GlucoseValue.SourceSensor.fromDb(): SourceSensor =
GlucoseValue.SourceSensor.MM_600_SERIES -> SourceSensor.MM_600_SERIES
GlucoseValue.SourceSensor.MM_SIMPLERA -> SourceSensor.MM_SIMPLERA
GlucoseValue.SourceSensor.EVERSENSE -> SourceSensor.EVERSENSE
GlucoseValue.SourceSensor.EVERSENSE_E3 -> SourceSensor.EVERSENSE_E3
GlucoseValue.SourceSensor.EVERSENSE_365 -> SourceSensor.EVERSENSE_365
GlucoseValue.SourceSensor.AIDEX -> SourceSensor.AIDEX
GlucoseValue.SourceSensor.RANDOM -> SourceSensor.RANDOM
GlucoseValue.SourceSensor.UNKNOWN -> SourceSensor.UNKNOWN
Expand Down Expand Up @@ -76,6 +78,8 @@ fun SourceSensor.toDb(): GlucoseValue.SourceSensor =
SourceSensor.MM_600_SERIES -> GlucoseValue.SourceSensor.MM_600_SERIES
SourceSensor.MM_SIMPLERA -> GlucoseValue.SourceSensor.MM_SIMPLERA
SourceSensor.EVERSENSE -> GlucoseValue.SourceSensor.EVERSENSE
SourceSensor.EVERSENSE_E3 -> GlucoseValue.SourceSensor.EVERSENSE_E3
SourceSensor.EVERSENSE_365 -> GlucoseValue.SourceSensor.EVERSENSE_365
SourceSensor.AIDEX -> GlucoseValue.SourceSensor.AIDEX
SourceSensor.RANDOM -> GlucoseValue.SourceSensor.RANDOM
SourceSensor.UNKNOWN -> GlucoseValue.SourceSensor.UNKNOWN
Expand Down
1 change: 1 addition & 0 deletions plugins/eversense/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
28 changes: 28 additions & 0 deletions plugins/eversense/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.ksp)

id("kotlinx-serialization")
id("android-module-dependencies")
id("test-module-dependencies")
}

android {
namespace = "com.nightscout.eversense"
}

dependencies {
api(libs.androidx.core)
api(platform(libs.kotlinx.serialization.bom))
api(libs.kotlinx.serialization.json)

api(libs.org.slf4j.api)
api(libs.com.github.tony19.logback.android)

implementation("org.bouncycastle:bcpkix-jdk18on:1.81")
implementation("org.bouncycastle:bcprov-jdk18on:1.81")

testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
}


Empty file.
21 changes: 21 additions & 0 deletions plugins/eversense/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
12 changes: 12 additions & 0 deletions plugins/eversense/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />

<application>
</application>

</manifest>
Loading