Skip to content

raise animalsniffer Android API minimum to 34 - #127

Merged
pjfanning merged 1 commit into
apache:trunkfrom
pjfanning:android-api-34
Oct 4, 2026
Merged

pjfanning merged 1 commit into
apache:trunkfrom
pjfanning:android-api-34

Conversation

@pjfanning

Copy link
Copy Markdown
Member

Follow-up to #126 (Java 17 baseline).

  • androidSdkMinimum 26 → 34
  • gummy-bears signature 0.3.0 → 0.16.0

API 34 (Android 14) is the first level whose core libraries cover the Java 17 API. Checked against the gummy-bears 0.16.0 signatures:

API level Java 11 APIs (String.repeat/isBlank, InputStream.readAllBytes/transferTo) Java 16/17 APIs (java.lang.Record, String.stripIndent, Stream.toList)
26 (old) ✗ ✗
33 ✓ ✗
34 ✓ ✓

With 26 the check would reject Java 9–17 APIs even though Java 17 is now required. 33 would still block records, and a record in a public API needs java.lang.Record at runtime.

The javax.xml.stream.* / javax.xml.namespace.* ignores stay, since Android still has no StAX.

./gradlew animalsnifferMain animalsnifferTest passes locally.

🤖 Generated with Claude Code

API 34 (Android 14) is the first level whose core libraries cover the
Java 17 API (java.lang.Record, String.stripIndent, Stream.toList), matching
the Java 17 baseline. Also update the gummy-bears signature to 0.16.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pjfanning
pjfanning merged commit 876047d into apache:trunk Oct 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant