@ -1,7 +1,7 @@
|
|||||||
# Karoo Reminder Extension
|
# Karoo Reminder Extension
|
||||||
|
|
||||||
[](https://github.com/timklge/karoo-reminder/actions/workflows/android.yml)
|
[](https://github.com/timklge/karoo-reminder/actions/workflows/android.yml)
|
||||||

|
[](https://github.com/timklge/karoo-reminder/releases)
|
||||||

|

|
||||||
|
|
||||||
Karoo extension that displays in-ride alerts based on custom triggers. Reminders can be set to activate after a specific time interval, distance traveled, or when a sensor value is outside a defined range (e.g., heart rate exceeds zone 2).
|
Karoo extension that displays in-ride alerts based on custom triggers. Reminders can be set to activate after a specific time interval, distance traveled, or when a sensor value is outside a defined range (e.g., heart rate exceeds zone 2).
|
||||||
|
|||||||
@ -15,8 +15,8 @@ android {
|
|||||||
applicationId = "de.timklge.karooreminder"
|
applicationId = "de.timklge.karooreminder"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 9
|
versionCode = 10
|
||||||
versionName = "1.1"
|
versionName = "1.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
|
|||||||
@ -3,9 +3,9 @@
|
|||||||
"packageName": "de.timklge.karooreminder",
|
"packageName": "de.timklge.karooreminder",
|
||||||
"iconUrl": "https://github.com/timklge/karoo-reminder/releases/latest/download/karoo-reminder.png",
|
"iconUrl": "https://github.com/timklge/karoo-reminder/releases/latest/download/karoo-reminder.png",
|
||||||
"latestApkUrl": "https://github.com/timklge/karoo-reminder/releases/latest/download/app-release.apk",
|
"latestApkUrl": "https://github.com/timklge/karoo-reminder/releases/latest/download/app-release.apk",
|
||||||
"latestVersion": "1.1",
|
"latestVersion": "1.1.1",
|
||||||
"latestVersionCode": 9,
|
"latestVersionCode": 10,
|
||||||
"developer": "timklge",
|
"developer": "timklge",
|
||||||
"description": "Shows in-ride alerts after a given time interval, distance or HR / power / speed / cadence out of range",
|
"description": "Shows in-ride alerts after a given time interval, distance or HR / power / speed / cadence out of range",
|
||||||
"releaseNotes": "Added distance, HR / power out of range trigger types"
|
"releaseNotes": "Added distance, HR / power out of range trigger types. Updated icon."
|
||||||
}
|
}
|
||||||
@ -4,14 +4,15 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@drawable/timer"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@drawable/timer"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.AppCompat">
|
android:theme="@style/Theme.AppCompat">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:exported="true">
|
android:exported="true"
|
||||||
|
android:theme="@style/SplashTheme">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 20 KiB |
@ -65,7 +65,7 @@ enum class ReminderTrigger(val id: String, val label: String) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class KarooReminderExtension : KarooExtension("karoo-reminder", "1.1") {
|
class KarooReminderExtension : KarooExtension("karoo-reminder", "1.1.1") {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "karoo-reminder"
|
const val TAG = "karoo-reminder"
|
||||||
@ -171,7 +171,7 @@ class KarooReminderExtension : KarooExtension("karoo-reminder", "1.1") {
|
|||||||
detail = reminder.text,
|
detail = reminder.text,
|
||||||
title = reminder.name,
|
title = reminder.name,
|
||||||
autoDismissMs = if(reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
autoDismissMs = if(reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
||||||
icon = R.drawable.ic_launcher,
|
icon = R.drawable.timer,
|
||||||
textColor = reminder.getTextColor(applicationContext),
|
textColor = reminder.getTextColor(applicationContext),
|
||||||
backgroundColor = reminder.getResourceColor(applicationContext)
|
backgroundColor = reminder.getResourceColor(applicationContext)
|
||||||
)))
|
)))
|
||||||
@ -221,7 +221,7 @@ class KarooReminderExtension : KarooExtension("karoo-reminder", "1.1") {
|
|||||||
detail = reminder.text,
|
detail = reminder.text,
|
||||||
title = reminder.name,
|
title = reminder.name,
|
||||||
autoDismissMs = if(reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
autoDismissMs = if(reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
||||||
icon = R.drawable.ic_launcher,
|
icon = R.drawable.timer,
|
||||||
textColor = reminder.getTextColor(applicationContext),
|
textColor = reminder.getTextColor(applicationContext),
|
||||||
backgroundColor = reminder.getResourceColor(applicationContext)
|
backgroundColor = reminder.getResourceColor(applicationContext)
|
||||||
)))
|
)))
|
||||||
@ -299,7 +299,7 @@ class KarooReminderExtension : KarooExtension("karoo-reminder", "1.1") {
|
|||||||
detail = reminder.text,
|
detail = reminder.text,
|
||||||
title = reminder.name,
|
title = reminder.name,
|
||||||
autoDismissMs = if (reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
autoDismissMs = if (reminder.isAutoDismiss) reminder.autoDismissSeconds * 1000L else null,
|
||||||
icon = R.drawable.ic_launcher,
|
icon = R.drawable.timer,
|
||||||
textColor = reminder.getTextColor(applicationContext),
|
textColor = reminder.getTextColor(applicationContext),
|
||||||
backgroundColor = reminder.getResourceColor(applicationContext)
|
backgroundColor = reminder.getResourceColor(applicationContext)
|
||||||
)
|
)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 790 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
6
app/src/main/res/drawable/launch_background.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<color android:color="#FFFFFF" />
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
||||||
BIN
app/src/main/res/drawable/timer.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<background android:drawable="@color/ic_launcher_background"/>
|
|
||||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
|
||||||
</adaptive-icon>
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<background android:drawable="@color/ic_launcher_background"/>
|
|
||||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
|
||||||
</adaptive-icon>
|
|
||||||
|
Before Width: | Height: | Size: 970 B |
|
Before Width: | Height: | Size: 950 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 632 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
6
app/src/main/res/values/styles.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ExtensionInfo
|
<ExtensionInfo
|
||||||
displayName="@string/extension_name"
|
displayName="@string/extension_name"
|
||||||
icon="@drawable/ic_launcher"
|
icon="@drawable/timer"
|
||||||
id="karoo-reminder"
|
id="karoo-reminder"
|
||||||
scansDevices="false">
|
scansDevices="false">
|
||||||
<!-- DataType ... -->
|
<!-- DataType ... -->
|
||||||
|
|||||||