diff --git a/app/build.gradle b/app/build.gradle index aa02fe48..bab1da71 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,8 +17,8 @@ android { minSdkVersion 26 targetSdkVersion 36 - versionCode 52 - versionName "1.19.4" + versionCode 53 + versionName "1.20.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/io/heckel/ntfy/util/Util.kt b/app/src/main/java/io/heckel/ntfy/util/Util.kt index 28be312b..02d512b7 100644 --- a/app/src/main/java/io/heckel/ntfy/util/Util.kt +++ b/app/src/main/java/io/heckel/ntfy/util/Util.kt @@ -327,7 +327,13 @@ fun mimeTypeToIconResource(mimeType: String?): Int { } fun supportedImage(mimeType: String?): Boolean { - return listOf("image/jpeg", "image/png", "image/gif", "image/webp").contains(mimeType) + return listOf( + "image/jpeg", + "image/jpg", // Technically not a valid MIME type, see https://github.com/binwiederhier/ntfy-android/pull/142 + "image/png", + "image/gif", + "image/webp" + ).contains(mimeType) } // We cannot open .apk files, because we don't have the REQUEST_INSTALL_PACKAGES anymore diff --git a/fastlane/metadata/android/en-US/changelog/53.txt b/fastlane/metadata/android/en-US/changelog/53.txt new file mode 100644 index 00000000..c32809b6 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelog/53.txt @@ -0,0 +1,5 @@ +Maintenance + bug fixes: +* Updated dependencies, minimum SDK version to 26, clean up legacy code, upgrade Gradle (ntfy-android#140, thanks to @cyb3rko) +* Updated target SDK version to 36 +* Fixed crashes with redrawing the list when temporarily muted topics expire +* Fixed ForegroundServiceDidNotStartInTimeException (#1520) diff --git a/fastlane/metadata/android/en-US/changelog/NEXT.txt b/fastlane/metadata/android/en-US/changelog/NEXT.txt index c32809b6..5d5b01f6 100644 --- a/fastlane/metadata/android/en-US/changelog/NEXT.txt +++ b/fastlane/metadata/android/en-US/changelog/NEXT.txt @@ -1,5 +1,2 @@ Maintenance + bug fixes: -* Updated dependencies, minimum SDK version to 26, clean up legacy code, upgrade Gradle (ntfy-android#140, thanks to @cyb3rko) -* Updated target SDK version to 36 -* Fixed crashes with redrawing the list when temporarily muted topics expire -* Fixed ForegroundServiceDidNotStartInTimeException (#1520) +* Add support for (technically incorrect) 'image/jpg' MIME type (ntfy-android#142, thanks to @Murilobeluco)