-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [fix]: small Compose performance improvements * [fix]: clearing logs with logging paused * [fix]: proper fix of clearing logs * [feat]: search in crashes * [fix]: select all feature * [feat]: sorting crashes * [feat]: disabling separate notification channels * [feat]: open crashes page on startup * [fix]: logic in sorting * [build]: added release workflow
- Loading branch information
Showing
39 changed files
with
584 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- 'master' | ||
|
||
env: | ||
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | ||
ALIAS: ${{ secrets.ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
cache: 'gradle' | ||
|
||
- name: Checkout keystore repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.KEYSTORE_GIT_REPOSITORY }} | ||
token: ${{ secrets.KEYSTORE_ACCESS_TOKEN }} | ||
path: app/keystore | ||
|
||
- name: Build APK | ||
run: bash ./gradlew assembleRelease --stacktrace --no-daemon | ||
|
||
- name: Upload APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: logfox-release | ||
compression-level: 0 | ||
path: app/build/outputs/apk/release/app-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...re-preferences/src/main/kotlin/com/f0x1d/logfox/preferences/shared/crashes/CrashesSort.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.f0x1d.logfox.preferences.shared.crashes | ||
|
||
import androidx.annotation.Keep | ||
import androidx.annotation.StringRes | ||
import com.f0x1d.logfox.database.entity.AppCrashesCount | ||
import com.f0x1d.logfox.strings.Strings | ||
|
||
@Keep | ||
enum class CrashesSort( | ||
@StringRes val titleRes: Int, | ||
val sorter: (List<AppCrashesCount>) -> List<AppCrashesCount> = { it }, | ||
) { | ||
NAME( | ||
titleRes = Strings.sort_by_name, | ||
sorter = { crashes -> | ||
crashes.sortedBy { it.lastCrash.appName ?: it.lastCrash.packageName } | ||
}, | ||
), | ||
NEW( | ||
titleRes = Strings.sort_by_new, | ||
sorter = { crashes -> | ||
crashes.sortedBy { it.lastCrash.dateAndTime } | ||
}, | ||
), | ||
COUNT( | ||
titleRes = Strings.sort_by_count, | ||
sorter = { crashes -> | ||
crashes.sortedBy { it.count } | ||
}, | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:autoMirrored="true" | ||
android:height="24dp" | ||
android:tint="?colorControlNormal" | ||
android:viewportHeight="24" | ||
android:viewportWidth="24" | ||
android:width="24dp"> | ||
|
||
<path | ||
android:fillColor="@android:color/white" | ||
android:pathData="M3,18h6v-2L3,16v2zM3,6v2h18L21,6L3,6zM3,13h12v-2L3,11v2z" /> | ||
|
||
</vector> |
Oops, something went wrong.