Fixed
Status Update
Comments
jn...@google.com <jn...@google.com>
al...@google.com <al...@google.com> #2
Probably worth checking with Flavio how to fix these. It might be as as simple as modifying AndroidManifest.xml
al...@google.com <al...@google.com> #3
In most cases, the fix is to replace with @RequiresApi which ensures
correctness versus @TargetApi which only suppresses analysis.
On Mon, May 17, 2021, 6:24 AM alexclarke <
buganizer-system+alexclarke@google.com> wrote:
correctness versus @TargetApi which only suppresses analysis.
On Mon, May 17, 2021, 6:24 AM alexclarke <
buganizer-system+alexclarke@google.com> wrote:
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 979e76bef05fa5f47b004f197fe10254228c0738
Author: Neda Topoljanac <tneda@google.com>
Date: Mon May 17 13:53:45 2021
Replace TargetApi annotation with RequiresApi
Fixing Lint isues that @TargetApi is banned.
Bug: 187447093, 187447094
Test: Existing ones
Relnote: "Replaced @TargetApi with @RequiresApi."
Change-Id: I0184a41bcc214a5033f431f969f36ab5b9c174ae
M wear/wear-complications-data/api/restricted_current.txt
M wear/wear-complications-data/src/main/java/androidx/wear/complications/ComplicationHelperActivity.java
M wear/wear-watchface-data/api/restricted_current.txt
M wear/wear-watchface-data/src/main/java/android/support/wearable/watchface/accessibility/ContentDescriptionLabel.java
https://android-review.googlesource.com/1709508
Branch: androidx-main
commit 979e76bef05fa5f47b004f197fe10254228c0738
Author: Neda Topoljanac <tneda@google.com>
Date: Mon May 17 13:53:45 2021
Replace TargetApi annotation with RequiresApi
Fixing Lint isues that @TargetApi is banned.
Bug: 187447093, 187447094
Test: Existing ones
Relnote: "Replaced @TargetApi with @RequiresApi."
Change-Id: I0184a41bcc214a5033f431f969f36ab5b9c174ae
M wear/wear-complications-data/api/restricted_current.txt
M wear/wear-complications-data/src/main/java/androidx/wear/complications/ComplicationHelperActivity.java
M wear/wear-watchface-data/api/restricted_current.txt
M wear/wear-watchface-data/src/main/java/android/support/wearable/watchface/accessibility/ContentDescriptionLabel.java
Description
The following lint check is baseline suppressed in your project. Please remove all instances of this suppression from
wear/wear-watchface-data/lint-baseline.xml
and address the associated issues before your next stable release.1 instance(s) of `BanTargetApiAnnotation
Uses @TargetApi annotation
Found in
src/main/java/android/support/wearable/watchface/accessibility/ContentDescriptionLabel.java
at line 46:@TargetApi(VERSION_CODES.KITKAT)