From 3fa1cf9e0714c9440d24a52e3cc7fc19de56ad2e Mon Sep 17 00:00:00 2001 From: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:00:00 +0700 Subject: [PATCH] chore(deps): Automate app shortcuts with shortcut-helper plugin - Revert shortcuts setup with `com.github.zellius.shortcut-helper` - Switch to komikku-app/android-shortcut-gradle:0.2.0 --- app/build.gradle.kts | 3 ++ app/{src/main/res/xml => }/shortcuts.xml | 4 -- app/src/beta/res/xml/shortcuts.xml | 50 ------------------------ build.gradle.kts | 2 +- gradle/libs.versions.toml | 1 + 5 files changed, 5 insertions(+), 55 deletions(-) rename app/{src/main/res/xml => }/shortcuts.xml (91%) delete mode 100644 app/src/beta/res/xml/shortcuts.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f64c948c6..17d45026e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -6,6 +6,7 @@ import mihon.buildlogic.getGitSha plugins { id("mihon.android.application") id("mihon.android.application.compose") + id("com.github.zellius.shortcut-helper") kotlin("plugin.parcelize") kotlin("plugin.serialization") alias(libs.plugins.aboutLibraries) @@ -19,6 +20,8 @@ if (Config.includeTelemetry) { } } +shortcutHelper.setFilePath("./shortcuts.xml") + android { namespace = "eu.kanade.tachiyomi" diff --git a/app/src/main/res/xml/shortcuts.xml b/app/shortcuts.xml similarity index 91% rename from app/src/main/res/xml/shortcuts.xml rename to app/shortcuts.xml index 6692bedc8..48936aafe 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/shortcuts.xml @@ -8,7 +8,6 @@ android:shortcutShortLabel="@string/label_library"> diff --git a/app/src/beta/res/xml/shortcuts.xml b/app/src/beta/res/xml/shortcuts.xml deleted file mode 100644 index c1de3f041..000000000 --- a/app/src/beta/res/xml/shortcuts.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - diff --git a/build.gradle.kts b/build.gradle.kts index 0a26d50e6..0d5a71dfd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ buildscript { dependencies { - // classpath(libs.android.shortcut.gradle) + classpath(libs.android.shortcut.gradle) classpath(sylibs.gradleversionsx) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4ef915fc2..dfd1f8a65 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -16,6 +16,7 @@ materialKolor = "5.0.0-alpha06" [libraries] desugar = "com.android.tools:desugar_jdk_libs:2.1.5" +android-shortcut-gradle = "com.github.komikku-app:android-shortcut-gradle-plugin:0.2.0" rxjava = "io.reactivex:rxjava:1.3.8"