Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 352fad5

Browse files
committed
added suppress deprecation linter and visiblefortesting tag
1 parent 517adcc commit 352fad5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

shell/platform/android/io/flutter/Build.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
package io.flutter;
66

7+
import androidx.annotation.VisibleForTesting;
8+
79
/** A replacement of utilities from android.os.Build. */
810
public class Build {
911
/** For use in place of the Android Build.VERSION_CODES class. */
1012
public static class API_LEVELS {
11-
public static final int FLUTTER_MIN = 21;
13+
@VisibleForTesting public static final int FLUTTER_MIN = 21;
1214
public static final int API_21 = 21;
1315
public static final int API_22 = 22;
1416
public static final int API_23 = 23;

shell/platform/android/io/flutter/embedding/android/FlutterView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ public enum ZeroSides {
610610
*
611611
* @return some ZeroSides enum
612612
*/
613+
@SuppressLint("deprecated")
613614
@androidx.annotation.DeprecatedSinceApi(api = API_LEVELS.API_30)
614615
@VisibleForTesting
615616
public ZeroSides calculateShouldZeroSides() {

0 commit comments

Comments
 (0)