Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.3 #184

Open
wants to merge 110 commits into
base: master
Choose a base branch
from
Open

v1.3 #184

Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
bf8ee94
Fix force sound before delay
pachi81 Nov 13, 2024
16b2cd8
LibreLink handle error 4
pachi81 Nov 13, 2024
f3879b4
Improve error messages
pachi81 Nov 20, 2024
3d71a8b
Delta and obsolete for higher intervals
pachi81 Nov 21, 2024
53a47dc
Wear Phone connection states
pachi81 Nov 21, 2024
977043b
Fix TIME_VALUE notifier
pachi81 Nov 21, 2024
9f38c2b
Disable Batterylevel
pachi81 Nov 21, 2024
b1b22e6
Forward interval
pachi81 Nov 22, 2024
4b2774e
Use battery receiver as watch-dog on phone
pachi81 Nov 22, 2024
03f88c0
Repeat alarm until closed
pachi81 Nov 23, 2024
b9e8fd6
Update versions
pachi81 Nov 23, 2024
8d7a723
Fix #172: error4 handling
pachi81 Nov 24, 2024
34d9727
Wear: 5s extra delay to prefer phone as receiver
pachi81 Nov 24, 2024
8bb40aa
Update strings
pachi81 Nov 24, 2024
92d5a23
Fix for lockscreen
pachi81 Nov 25, 2024
fa955d3
Floating Widget: smaller sizes
pachi81 Nov 25, 2024
754734e
Add Google Groups
pachi81 Nov 25, 2024
ec4d148
Move exact alarms to utils
pachi81 Nov 25, 2024
c377420
Update strings
pachi81 Nov 25, 2024
065a582
Force stop sound and vibration on disable alarms
pachi81 Nov 26, 2024
e981c14
New languages: it, ru and zh
pachi81 Nov 26, 2024
2d5366c
Update strings_de.xml
pachi81 Nov 27, 2024
657caca
Update strings.xml
pachi81 Nov 27, 2024
a6408ab
Update strings.xml
Krazee78 Nov 27, 2024
bd04a27
Update strings.xml
Krazee78 Nov 27, 2024
a8232d5
Update strings.xml
Krazee78 Nov 27, 2024
e47f48a
Update strings.xml
Krazee78 Nov 27, 2024
711f185
Update strings.xml
Krazee78 Nov 27, 2024
ef19925
Update strings.xml
Krazee78 Nov 27, 2024
9dd482d
Update strings.xml
Krazee78 Nov 27, 2024
449226d
New resources
pachi81 Nov 27, 2024
584ad25
Update strings.xml
Krazee78 Nov 27, 2024
fccf21c
Update strings.xml
Krazee78 Nov 27, 2024
6fb5e58
Update strings.xml
Krazee78 Nov 27, 2024
1d62be8
Fix interval check
pachi81 Nov 28, 2024
3e36c74
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Nov 28, 2024
9d662aa
Update strings.xml
Krazee78 Nov 28, 2024
82f40eb
Update strings.xml
Krazee78 Nov 28, 2024
c680f6f
Update strings.xml
Krazee78 Nov 28, 2024
533d2e5
Update strings.xml PL
froster82 Nov 28, 2024
1d5d288
New watch face menu
pachi81 Nov 28, 2024
c0f0ad2
Update strings
pachi81 Nov 28, 2024
fcfb86c
Update strings zh-TW
pachi81 Nov 29, 2024
deec0a5
Fix repeat setting for old API
pachi81 Nov 29, 2024
6aaca90
Fix phone alarm popup on watch
pachi81 Nov 29, 2024
12f134b
Update strings.xml PL
froster82 Nov 29, 2024
2c563f4
Fix reported crashes
pachi81 Nov 29, 2024
9808e26
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Nov 29, 2024
c7681f3
Update strings.xml
Krazee78 Dec 1, 2024
7a2a2cf
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Dec 1, 2024
c0b5ba0
Wear: No update while watch screen is off
pachi81 Dec 2, 2024
73a40f2
Wear: No update while watch screen is off
pachi81 Dec 5, 2024
3568bf7
Undo API 35
pachi81 Dec 6, 2024
c0acd2f
Remove screen off setting from watch
pachi81 Dec 6, 2024
7323533
Force very low alarm
pachi81 Dec 6, 2024
32bd4db
Error Info for cloud sources
pachi81 Dec 6, 2024
356fb1c
Move notes to table
pachi81 Dec 6, 2024
8acfca4
Fix failure handling
pachi81 Dec 6, 2024
16e559e
ScreenEvent only if enabled
pachi81 Dec 6, 2024
bce55f9
Update strings de
pachi81 Dec 6, 2024
9a3ae2c
Update zh-TW translation
josesun Dec 7, 2024
a72bfc2
Update zh-TW translation, add the missing part
josesun Dec 7, 2024
3a9d5ac
Update strings.xml PL
froster82 Dec 8, 2024
1b885ea
string nl
pachi81 Dec 8, 2024
6f9b8f4
strings de
pachi81 Dec 8, 2024
eee88a6
Fix alarm stop for lockscreen
pachi81 Dec 8, 2024
b9da3e1
Fix alarm notification for snooze
pachi81 Dec 8, 2024
ea777ef
Feature removal: retrigger alarm notification
pachi81 Dec 10, 2024
7f3c8a3
Fix screen off handling
pachi81 Dec 10, 2024
f447f7c
LibreLinkUp: support ru server
pachi81 Dec 10, 2024
d9b49b5
refactor
pachi81 Dec 11, 2024
0596400
v1.2.19
pachi81 Dec 11, 2024
82cbff5
Update strings.xml
Krazee78 Dec 11, 2024
da9c386
Layout fixes
pachi81 Dec 12, 2024
079a75a
GDH second new icon
pachi81 Dec 14, 2024
e4e58f2
Update strings.xml
Krazee78 Dec 14, 2024
1fde008
Update strings.xml
Krazee78 Dec 14, 2024
2a90ef7
GDA Second
pachi81 Dec 14, 2024
9fbaa6e
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Dec 14, 2024
db0c55f
GDA Second icon
pachi81 Dec 14, 2024
0f55503
Update strings.xml
Krazee78 Dec 14, 2024
20569d2
Add until to strings
pachi81 Dec 15, 2024
e23ef5d
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Dec 15, 2024
981cc44
Update strings.xml
Krazee78 Dec 15, 2024
c793b57
GDH/GDA Second replace related names
pachi81 Dec 15, 2024
0c589bc
New icons for second variants
pachi81 Dec 16, 2024
71c10d7
Force very low moved+Tasker
pachi81 Dec 16, 2024
cf5a56b
GDA: patient name added
pachi81 Dec 16, 2024
635edd7
LibreLink: No new value info after 6 min
pachi81 Dec 16, 2024
f0ff8dd
v1.2.20 (89)
pachi81 Dec 16, 2024
6757613
Fix Alarm no vibration
pachi81 Dec 17, 2024
b068dd6
reset do not disturb
lolokraus Dec 17, 2024
a05e583
Merge pull request #189 from lolokraus/feature/1
pachi81 Dec 18, 2024
6ad2037
Fix recreate silent mode
pachi81 Dec 18, 2024
f493479
New strings
pachi81 Dec 18, 2024
6cfc38b
Update strings.xml italian
lostboy86 Dec 19, 2024
681e30f
Update strings.xml
lostboy86 Dec 19, 2024
1178511
Add video tutorials
pachi81 Dec 19, 2024
0f9eff3
Update strings.xml PL
froster82 Dec 19, 2024
cf2edb7
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Dec 20, 2024
a69430a
Fix vibration issues by using VibratorManager
pachi81 Dec 20, 2024
03ab7ed
Fix wear vibrator setting
pachi81 Dec 20, 2024
81e3c99
v1.2.21
pachi81 Dec 21, 2024
27b2e76
v1.2.21
pachi81 Dec 21, 2024
5e4155a
Fix Alarm after Snooze
pachi81 Dec 22, 2024
9e14fd3
Fix save unit
pachi81 Dec 22, 2024
cbce33a
Setting for snooze buttons
pachi81 Dec 23, 2024
3f94c0f
Merge remote-tracking branch 'origin/1.3' into 1.3
pachi81 Dec 23, 2024
a55a6c2
Update strings.xml pl
froster82 Dec 23, 2024
89cec7b
v1.2.22 (90)
pachi81 Dec 23, 2024
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
6 changes: 3 additions & 3 deletions auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ android {
}

dependencies {
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'com.joaomgcd:taskerpluginlibrary:0.4.10'
implementation project(path: ':common')
implementation "androidx.car.app:app:1.4.0"
implementation "androidx.preference:preference-ktx:1.2.1"
implementation "com.jaredrummler:colorpicker:1.1.0"
implementation "androidx.media:media:1.7.0"
implementation 'androidx.work:work-runtime:2.9.1'
implementation 'androidx.work:work-runtime:2.10.0'
}

afterEvaluate {
Expand Down
111 changes: 86 additions & 25 deletions auto/src/main/java/de/michelinside/glucodataauto/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.michelinside.glucodataauto

import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlarmManager
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
Expand Down Expand Up @@ -46,8 +46,6 @@ import de.michelinside.glucodatahandler.common.utils.GitHubVersionChecker
import de.michelinside.glucodatahandler.common.utils.Utils
import de.michelinside.glucodatahandler.common.ui.Dialogs
import de.michelinside.glucodatahandler.common.utils.TextToSpeechUtils
import java.text.DateFormat
import java.util.Date
import de.michelinside.glucodatahandler.common.R as CR

class MainActivity : AppCompatActivity(), NotifierInterface {
Expand Down Expand Up @@ -165,6 +163,7 @@ class MainActivity : AppCompatActivity(), NotifierInterface {

GlucoDataServiceAuto.startDataSync()
versionChecker.checkVersion(1)
checkNewSettings()
} catch (exc: Exception) {
Log.e(LOG_ID, "onResume exception: " + exc.message.toString() )
}
Expand All @@ -178,27 +177,12 @@ class MainActivity : AppCompatActivity(), NotifierInterface {
return false
}
}
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val alarmManager = this.getSystemService(Context.ALARM_SERVICE) as AlarmManager
if (!alarmManager.canScheduleExactAlarms()) {
Log.i(LOG_ID, "Request exact alarm permission...")
startActivity(Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM))
}
}
requestExactAlarmPermission()
return true
}

private fun canScheduleExactAlarms(): Boolean {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val alarmManager = this.getSystemService(Context.ALARM_SERVICE) as AlarmManager
return alarmManager.canScheduleExactAlarms()
}
return true
}

private fun requestExactAlarmPermission() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && !canScheduleExactAlarms()) {
if (!Utils.canScheduleExactAlarms(this)) {
Log.i(LOG_ID, "Request exact alarm permission...")
val builder: AlertDialog.Builder = AlertDialog.Builder(this)
builder
Expand All @@ -215,6 +199,49 @@ class MainActivity : AppCompatActivity(), NotifierInterface {
}
}

private fun checkNewSettings() {
try {
if(!sharedPref.contains(Constants.SHARED_PREF_DISCLAIMER_SHOWN)) {
Dialogs.showOkDialog(this,
CR.string.gdh_disclaimer_title,
CR.string.gdh_disclaimer_message,
null
)
with(sharedPref.edit()) {
putString(Constants.SHARED_PREF_DISCLAIMER_SHOWN, BuildConfig.VERSION_NAME)
apply()
}
}
if(!sharedPref.contains(Constants.SHARED_PREF_LIBRE_AUTO_ACCEPT_TOU)) {
if(sharedPref.getBoolean(Constants.SHARED_PREF_LIBRE_ENABLED, false)) {
Dialogs.showOkCancelDialog(this,
resources.getString(CR.string.src_cat_libreview),
resources.getString(CR.string.src_libre_tou_message),
{ _, _ ->
with(sharedPref.edit()) {
putBoolean(Constants.SHARED_PREF_LIBRE_AUTO_ACCEPT_TOU, true)
apply()
}
},
{ _, _ ->
with(sharedPref.edit()) {
putBoolean(Constants.SHARED_PREF_LIBRE_AUTO_ACCEPT_TOU, false)
apply()
}
})
} else {
with(sharedPref.edit()) {
putBoolean(Constants.SHARED_PREF_LIBRE_AUTO_ACCEPT_TOU, true)
apply()
}
}
}

} catch (exc: Exception) {
Log.e(LOG_ID, "checkNewSettings exception: " + exc.message.toString() )
}
}

override fun onCreateOptionsMenu(menu: Menu?): Boolean {
try {
Log.v(LOG_ID, "onCreateOptionsMenu called")
Expand Down Expand Up @@ -311,6 +338,14 @@ class MainActivity : AppCompatActivity(), NotifierInterface {
startActivity(mailIntent)
return true
}
R.id.action_google_groups -> {
val browserIntent = Intent(
Intent.ACTION_VIEW,
Uri.parse(resources.getText(CR.string.google_gdh_group_url).toString())
)
startActivity(browserIntent)
return true
}
R.id.action_facebook -> {
val browserIntent = Intent(
Intent.ACTION_VIEW,
Expand Down Expand Up @@ -355,6 +390,7 @@ class MainActivity : AppCompatActivity(), NotifierInterface {
return super.onOptionsItemSelected(item)
}

@SuppressLint("SetTextI18n")
private fun update() {
try {
Log.v(LOG_ID, "update values")
Expand Down Expand Up @@ -394,17 +430,42 @@ class MainActivity : AppCompatActivity(), NotifierInterface {

private fun updateConnectionsTable() {
tableConnections.removeViews(1, maxOf(0, tableConnections.childCount - 1))
if (SourceStateData.lastState != SourceState.NONE)
tableConnections.addView(createRow(
SourceStateData.lastSource.resId,
SourceStateData.getStateMessage(this)))
if (SourceStateData.lastState != SourceState.NONE) {
val msg = SourceStateData.getStateMessage(this)
tableConnections.addView(
createRow(
SourceStateData.lastSource.resId,
msg
)
)
if(SourceStateData.lastState == SourceState.ERROR && SourceStateData.lastSource == DataSource.DEXCOM_SHARE) {
if (msg.contains("500:")) { // invalid password
val us_account = sharedPref.getBoolean(Constants.SHARED_PREF_DEXCOM_SHARE_USE_US_URL, false)
val browserIntent = Intent(
Intent.ACTION_VIEW,
Uri.parse(resources.getString(if(us_account)CR.string.dexcom_account_us_url else CR.string.dexcom_account_non_us_url))
)
val onClickListener = View.OnClickListener {
startActivity(browserIntent)
}
tableConnections.addView(
createRow(
SourceStateData.lastSource.resId,
resources.getString(if(us_account) CR.string.dexcom_share_check_us_account else CR.string.dexcom_share_check_non_us_account),
onClickListener
)
)
}
}
tableConnections.addView(createRow(CR.string.request_timestamp, Utils.getUiTimeStamp(SourceStateData.lastStateTime)))
}
tableConnections.addView(createRow(CR.string.pref_cat_android_auto, if (GlucoDataServiceAuto.connected) resources.getString(CR.string.connected_label) else resources.getString(CR.string.disconnected_label)))
checkTableVisibility(tableConnections)
}

private fun updateNotesTable() {
tableNotes.removeViews(1, maxOf(0, tableNotes.childCount - 1))
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && !canScheduleExactAlarms()) {
if (!Utils.canScheduleExactAlarms(this)) {
Log.w(LOG_ID, "Schedule exact alarm is not active!!!")
val onClickListener = View.OnClickListener {
startActivity(Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM))
Expand Down Expand Up @@ -478,7 +539,7 @@ class MainActivity : AppCompatActivity(), NotifierInterface {
if(ReceiveData.time > 0) {
if (ReceiveData.isMmol)
tableDetails.addView(createRow(CR.string.info_label_raw, "${ReceiveData.rawValue} mg/dl"))
tableDetails.addView(createRow(CR.string.info_label_timestamp, DateFormat.getTimeInstance(DateFormat.DEFAULT).format(Date(ReceiveData.time))))
tableDetails.addView(createRow(CR.string.info_label_timestamp, Utils.getUiTimeStamp(ReceiveData.time)))
if (ReceiveData.sensorID?.isNotEmpty() == true) {
tableDetails.addView(createRow(CR.string.info_label_sensor_id, if(BuildConfig.DEBUG) "ABCDE12345" else ReceiveData.sensorID!!))
}
Expand Down
2 changes: 1 addition & 1 deletion auto/src/main/res/layout-land/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1"
android:text="@string/info_label_alarm"/>
android:text="@string/alarm_header"/>
</TableRow>
</TableLayout>

Expand Down
2 changes: 1 addition & 1 deletion auto/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1"
android:text="@string/info_label_alarm"/>
android:text="@string/alarm_header"/>
</TableRow>
</TableLayout>

Expand Down
7 changes: 7 additions & 0 deletions auto/src/main/res/menu/menu_items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
</menu>
</item>
</group>
<group
android:id="@+id/group_google_groups">
<item
android:id="@+id/action_google_groups"
android:title="@string/menu_google_groups"
app:showAsAction="never" />
</group>
<group
android:id="@+id/group_facebook">
<item
Expand Down
2 changes: 1 addition & 1 deletion auto/src/main/res/xml/pref_general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
app:showSeekBarValue="true"
app:seekBarIncrement="1"
app:min="2"
android:max="12"
android:max="16"
android:key="obsolete_time"
android:title="@string/obsolete_time"
android:summary="@string/obsolete_time_summary"
Expand Down
12 changes: 11 additions & 1 deletion auto/src/main/res/xml/sources_online.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
android:title="@string/src_enabled"
android:summary="@string/src_libre_enabled_summary"
app:iconSpaceReserved="false" />
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="true"
android:key="source_libre_auto_accept_tou"
android:title="@string/source_libre_auto_accept_tou"
android:summary="@string/source_libre_auto_accept_tou_summary"
app:iconSpaceReserved="false" />
<androidx.preference.EditTextPreference
android:defaultValue=""
android:key="source_libre_user"
Expand Down Expand Up @@ -99,7 +105,11 @@
<Preference
android:key="source_dexcom_share_info"
android:title="@string/pref_source_dexcom_share_info"
android:summary="@string/pref_source_dexcom_share_info_summary"
android:summary="@string/pref_source_dexcom_share_info_1_summary"
app:iconSpaceReserved="false" />
<Preference
android:key="source_dexcom_share_info"
android:summary="@string/pref_source_dexcom_share_info_2_summary"
app:iconSpaceReserved="false" />
</PreferenceCategory>

Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ plugins {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

project.ext.set("versionCode", 79)
project.ext.set("versionName", "1.2.1")
project.ext.set("compileSdk", 34)
project.ext.set("targetSdk", 34)
project.ext.set("versionCode", 82)
project.ext.set("versionName", "1.2.9")
project.ext.set("compileSdk", 35)
project.ext.set("targetSdk", 35)
project.ext.set("minSdk", 26)
project.ext.set("releasePath", properties.getProperty('releasePath'))
project.ext.set("DEXCOM_APPLICATION_ID", properties.getProperty('DEXCOM_APPLICATION_ID'))
6 changes: 3 additions & 3 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ android {

dependencies {

implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.android.gms:play-services-wearable:18.2.0'
implementation 'androidx.work:work-runtime:2.9.1'
implementation 'com.google.android.gms:play-services-wearable:19.0.0'
implementation 'androidx.work:work-runtime:2.10.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'io.mockk:mockk:1.13.12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object Constants {
const val COMMAND_BUNDLE = "command_bundle"
const val GLUCOSE_CONVERSION_FACTOR = 18.0182F
const val GLUCOSE_MIN_VALUE = 40
const val GLUCOSE_MAX_VALUE = 400
const val GLUCOSE_MAX_VALUE = 600
const val ACTION_STOP_FOREGROUND = "stop_foreground"

const val ACTION_PREFIX = "gdh_action_"
Expand Down Expand Up @@ -95,6 +95,7 @@ object Constants {
const val SHARED_PREF_FLOATING_WIDGET = "floating_widget"
const val SHARED_PREF_FLOATING_WIDGET_STYLE = "floating_widget_style"
const val SHARED_PREF_FLOATING_WIDGET_SIZE = "floating_widget_size"
const val SHARED_PREF_FLOATING_WIDGET_SIZE_MIGRATION = "floating_widget_size_migration"
const val SHARED_PREF_FLOATING_WIDGET_TRANSPARENCY = "floating_widget_transparency"
const val SHARED_PREF_FLOATING_WIDGET_TIME_TO_CLOSE = "floating_widget_time_to_close"
const val SHARED_PREF_FLOATING_WIDGET_TAP_ACTION = "floating_widget_tap_action"
Expand All @@ -117,6 +118,11 @@ object Constants {
const val SHARED_PREF_SAVE_WEAR_LOGS = "save_wear_logs"


const val SHARED_PREF_WATCHFACES_PUJIE = "pref_watchfaces_pujie"
const val SHARED_PREF_WATCHFACES_DMM = "pref_watchfaces_dmm"
const val SHARED_PREF_WATCHFACES_GDC = "pref_watchfaces_gdc"


// internal app preferences (not changed by settings) -> use separate tag for not trigger onChanged events
const val SHARED_PREF_INTERNAL_TAG = "GlucoDataHandlerInternalAppPrefs"
const val SHARED_PREF_FLOATING_WIDGET_X = "floating_widget_x"
Expand Down Expand Up @@ -155,6 +161,7 @@ object Constants {
const val SHARED_PREF_LIBRE_REGION="source_libre_region"
const val SHARED_PREF_LIBRE_PATIENT_ID="source_libre_patient_id"
const val SHARED_PREF_LIBRE_USER_ID="source_libre_user_id"
const val SHARED_PREF_LIBRE_AUTO_ACCEPT_TOU="source_libre_auto_accept_tou"

const val SHARED_PREF_DEXCOM_SHARE_ENABLED="source_dexcom_share_enabled"
const val SHARED_PREF_DEXCOM_SHARE_USER="source_dexcom_share_user"
Expand Down Expand Up @@ -232,6 +239,7 @@ object Constants {
const val SHARED_PREF_ALARM_SUFFIX_TEST = "_test"
const val SHARED_PREF_ALARM_SUFFIX_SAVE_SOUND = "_save_sound"
const val SHARED_PREF_ALARM_SUFFIX_REPEAT = "_repeat"
const val SHARED_PREF_ALARM_SUFFIX_REPEAT_UNTIL_CLOSE = "_repeat_until_close"
const val SHARED_PREF_ALARM_SUFFIX_DELTA = "_delta"
const val SHARED_PREF_ALARM_SUFFIX_OCCURRENCE_COUNT = "_occurrence_count"
const val SHARED_PREF_ALARM_SUFFIX_BORDER = "_border"
Expand All @@ -246,6 +254,12 @@ object Constants {

const val SHARED_PREF_ALARM_TYPE_SETTINGS_CAT = "cat_alarm_settings"

const val SHARED_PREF_BATTERY_RECEIVER_ENABLED = "battery_receiver_enabled"
const val SHARED_PREF_SEND_TO_WATCH_INTERVAL = "send_to_watch_interval"
const val SHARED_PREF_SEND_TO_RECEIVER_INTERVAL = "send_to_receiver_interval"

const val SHARED_PREF_DISCLAIMER_SHOWN = "gdh_disclaimer_shown"

// Android Auto
const val AA_MEDIA_ICON_STYLE_TREND = "trend"
const val AA_MEDIA_ICON_STYLE_GLUCOSE_TREND = "glucose_trend"
Expand Down
Loading