parent
047bfdc87d
commit
edb97f7902
5 changed files with 55 additions and 9 deletions
|
|
@ -11,7 +11,6 @@ plugins {
|
||||||
id("mihon.android.application.compose")
|
id("mihon.android.application.compose")
|
||||||
kotlin("plugin.parcelize")
|
kotlin("plugin.parcelize")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
// id("com.github.zellius.shortcut-helper")
|
|
||||||
alias(libs.plugins.aboutLibraries)
|
alias(libs.plugins.aboutLibraries)
|
||||||
id("com.github.ben-manes.versions")
|
id("com.github.ben-manes.versions")
|
||||||
}
|
}
|
||||||
|
|
@ -23,8 +22,6 @@ if (gradle.startParameter.taskRequests.toString().contains("Standard")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// shortcutHelper.setFilePath("./shortcuts.xml")
|
|
||||||
|
|
||||||
val supportedAbis = setOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
val supportedAbis = setOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
|
||||||
50
app/src/beta/res/xml/shortcuts.xml
Normal file
50
app/src/beta/res/xml/shortcuts.xml
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<shortcut
|
||||||
|
android:enabled="true"
|
||||||
|
android:icon="@drawable/sc_collections_bookmark_48dp"
|
||||||
|
android:shortcutDisabledMessage="@string/app_not_available"
|
||||||
|
android:shortcutId="show_library"
|
||||||
|
android:shortcutLongLabel="@string/label_library"
|
||||||
|
android:shortcutShortLabel="@string/label_library">
|
||||||
|
<intent
|
||||||
|
android:action="eu.kanade.tachiyomi.SHOW_LIBRARY"
|
||||||
|
android:targetPackage="app.komikku.beta"
|
||||||
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
|
</shortcut>
|
||||||
|
<shortcut
|
||||||
|
android:enabled="true"
|
||||||
|
android:icon="@drawable/sc_new_releases_48dp"
|
||||||
|
android:shortcutDisabledMessage="@string/app_not_available"
|
||||||
|
android:shortcutId="show_recently_updated"
|
||||||
|
android:shortcutLongLabel="@string/label_recent_updates"
|
||||||
|
android:shortcutShortLabel="@string/label_recent_updates">
|
||||||
|
<intent
|
||||||
|
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_UPDATED"
|
||||||
|
android:targetPackage="app.komikku.beta"
|
||||||
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
|
</shortcut>
|
||||||
|
<shortcut
|
||||||
|
android:enabled="true"
|
||||||
|
android:icon="@drawable/sc_history_48dp"
|
||||||
|
android:shortcutDisabledMessage="@string/app_not_available"
|
||||||
|
android:shortcutId="show_recently_read"
|
||||||
|
android:shortcutLongLabel="@string/label_recent_manga"
|
||||||
|
android:shortcutShortLabel="@string/label_recent_manga">
|
||||||
|
<intent
|
||||||
|
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_READ"
|
||||||
|
android:targetPackage="app.komikku.beta"
|
||||||
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
|
</shortcut>
|
||||||
|
<shortcut
|
||||||
|
android:enabled="true"
|
||||||
|
android:icon="@drawable/sc_explore_48dp"
|
||||||
|
android:shortcutDisabledMessage="@string/app_not_available"
|
||||||
|
android:shortcutId="show_catalogues"
|
||||||
|
android:shortcutLongLabel="@string/browse"
|
||||||
|
android:shortcutShortLabel="@string/browse">
|
||||||
|
<intent
|
||||||
|
android:action="eu.kanade.tachiyomi.SHOW_CATALOGUES"
|
||||||
|
android:targetPackage="app.komikku.beta"
|
||||||
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
|
</shortcut>
|
||||||
|
</shortcuts>
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
android:shortcutShortLabel="@string/label_library">
|
android:shortcutShortLabel="@string/label_library">
|
||||||
<intent
|
<intent
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_LIBRARY"
|
android:action="eu.kanade.tachiyomi.SHOW_LIBRARY"
|
||||||
android:targetPackage="eu.kanade.tachiyomi.sy"
|
android:targetPackage="app.komikku"
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
<shortcut
|
<shortcut
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
android:shortcutShortLabel="@string/label_recent_updates">
|
android:shortcutShortLabel="@string/label_recent_updates">
|
||||||
<intent
|
<intent
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_UPDATED"
|
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_UPDATED"
|
||||||
android:targetPackage="eu.kanade.tachiyomi.sy"
|
android:targetPackage="app.komikku"
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
<shortcut
|
<shortcut
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
android:shortcutShortLabel="@string/label_recent_manga">
|
android:shortcutShortLabel="@string/label_recent_manga">
|
||||||
<intent
|
<intent
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_READ"
|
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_READ"
|
||||||
android:targetPackage="eu.kanade.tachiyomi.sy"
|
android:targetPackage="app.komikku"
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
<shortcut
|
<shortcut
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
android:shortcutShortLabel="@string/browse">
|
android:shortcutShortLabel="@string/browse">
|
||||||
<intent
|
<intent
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_CATALOGUES"
|
android:action="eu.kanade.tachiyomi.SHOW_CATALOGUES"
|
||||||
android:targetPackage="eu.kanade.tachiyomi.sy"
|
android:targetPackage="app.komikku"
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
</shortcuts>
|
</shortcuts>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ firebase-bom = "33.7.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
desugar = "com.android.tools:desugar_jdk_libs:2.1.4"
|
desugar = "com.android.tools:desugar_jdk_libs:2.1.4"
|
||||||
android-shortcut-gradle = "com.github.zellius:android-shortcut-gradle-plugin:0.1.2"
|
|
||||||
|
|
||||||
rxjava = "io.reactivex:rxjava:1.3.8"
|
rxjava = "io.reactivex:rxjava:1.3.8"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class BaselineProfileGenerator {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun generate() = baselineProfileRule.collect(
|
fun generate() = baselineProfileRule.collect(
|
||||||
packageName = "eu.kanade.tachiyomi.sy.benchmark",
|
packageName = "app.komikku.benchmark",
|
||||||
profileBlock = {
|
profileBlock = {
|
||||||
pressHome()
|
pressHome()
|
||||||
startActivityAndWait()
|
startActivityAndWait()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue