fix(Android): replace deprecated EXIF ISO tag - #403
Merged
Conversation
AlexV525
approved these changes
Jul 22, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Closes #402
Problem
Android's
ExifKeeperreferenced the deprecatedExifInterface.TAG_ISO_SPEED_RATINGSconstant, so Java compilation emitted a deprecation note on every consumer build. The issue reproduction and maintainer follow-up confirmed that AndroidX 1.4.2 maps the legacy name toTAG_PHOTOGRAPHIC_SENSITIVITYfor the same underlying EXIF tag.Changes
TAG_ISO_SPEED_RATINGSwithTAG_PHOTOGRAPHIC_SENSITIVITYin the EXIF attribute copy list.Verification
ExifKeeper.javawith AndroidX 1.4.2 usingjavac -Xlint:deprecation -Werror; it failed only onTAG_ISO_SPEED_RATINGS.dart run melos exec -- "dart format . -o none --set-exit-if-changed"- passed, 0 files changed.dart run melos run analyze- passed for all 7 packages.:flutter_image_compress_common:compileDebugJavaWithJavac --rerun-tasks- passed.assembleDebug- passed, 178 tasks completed andapp-debug.apkproduced.melos run testis not runnable on the currentmain: all 7 packages report that theirtestdirectory is absent. The repository CI does not invoke this script; the affected compile path is covered directly above.Risk
ExifKeeper; AndroidX preserves compatibility for the same EXIF field, so image metadata behavior is unchanged.Standards
CONTRIBUTING.mdfor themaintarget and Conventional Commit format..github/workflows/runnable.ymlfor format, analysis, and Android build verification.