From 986442d0e7f5967f015fee0b50522c3cfb91ced3 Mon Sep 17 00:00:00 2001 From: pawcode Development Date: Sat, 4 Apr 2026 20:56:41 +0200 Subject: [PATCH 1/3] chore(git): exclude docs --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 846a6b3..355f1d6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ /.idea/navEditor.xml /.idea/assetWizardSettings.xml /.idea/copilot.* +/docs/plans +/docs/android .DS_Store /build /captures From 0571272552a05f4e42ed26e6dcd55d7ab162b497 Mon Sep 17 00:00:00 2001 From: pawcode Development Date: Sat, 4 Apr 2026 20:40:06 +0200 Subject: [PATCH 2/3] feat(assistant): add shortcuts.xml with OPEN_APP_FEATURE capability --- app/src/main/AndroidManifest.xml | 4 ++++ .../pawcode/cardstore/data/utils/ShortcutUpdater.kt | 11 ++++++++--- app/src/main/res/xml/shortcuts.xml | 11 +++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/xml/shortcuts.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e78ad9f..1c4fa5d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -43,6 +43,10 @@ + + allCards.sortedByDescending { it.useCount } } - val topCards = sortedCards.take(MAX_SHORTCUTS) - + val maxShortcuts = ShortcutManagerCompat.getMaxShortcutCountPerActivity(context) + val topCards = sortedCards.take(maxShortcuts) val newShortcutIds = topCards.map { cardShortcutId(it.cardId) }.toSet() + val existingShortcuts = ShortcutManagerCompat.getDynamicShortcuts(context) val staleIds = existingShortcuts.filter { it.id !in newShortcutIds }.map { it.id } if (staleIds.isNotEmpty()) ShortcutManagerCompat.removeDynamicShortcuts(context, staleIds) @@ -62,6 +62,11 @@ suspend fun updateShortcuts(context: Context) { .setLongLabel(card.storeName) .setIcon(icon) .setIntent(intent) + .addCapabilityBinding( + "actions.intent.OPEN_APP_FEATURE", + "feature.name", + listOf(card.storeName), + ) .build() ShortcutManagerCompat.pushDynamicShortcut(context, shortcut) diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml new file mode 100644 index 0000000..1e2d78e --- /dev/null +++ b/app/src/main/res/xml/shortcuts.xml @@ -0,0 +1,11 @@ + + + + + + + + + From 2065d576fd29705a0cb508cfdca5f68c4fb58bf5 Mon Sep 17 00:00:00 2001 From: pawcode Development Date: Sun, 5 Apr 2026 10:54:12 +0200 Subject: [PATCH 3/3] build(*): bump version code for closed alpha release --- version.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.properties b/version.properties index 142b8ba..26e1d32 100644 --- a/version.properties +++ b/version.properties @@ -1,2 +1,2 @@ -VERSION_CODE=67 +VERSION_CODE=68 VERSION_NAME=1.5.1-staging.3 \ No newline at end of file