Commit 9450489
Fix UseRequiresApi: Replace @TargetApi with @RequiresApi (facebook#55507)
Summary:
Pull Request resolved: facebook#55507
Replace TargetApi(29) with RequiresApi(29) in BlendModeHelper.kt to fix the
UseRequiresApi lint warning. The RequiresApi annotation from AndroidX properly
propagates the API level requirement to callers, while TargetApi only suppresses
the lint warning locally without providing this safety.
Also updated the import from android.annotation.TargetApi to
androidx.annotation.RequiresApi.
changelog: [internal] internal
Reviewed By: alanleedev
Differential Revision: D92022472
fbshipit-source-id: 775bea90ca96ec28af79a841f9dc36a235eaff851 parent 6edbf2e commit 9450489
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments