[Android] add lint ignores to Flutter JNI. (#162527)
These API calls are triggering lints in g3, which has stricter lints for transitively calling higher API level methods.
This commit is contained in:
parent
f56d5a98c1
commit
4d08217f8d
@ -6,6 +6,7 @@ package io.flutter.embedding.engine;
|
|||||||
|
|
||||||
import static io.flutter.Build.API_LEVELS;
|
import static io.flutter.Build.API_LEVELS;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.AssetManager;
|
import android.content.res.AssetManager;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
@ -1287,6 +1288,7 @@ public class FlutterJNI {
|
|||||||
// ----- New Platform Views ----------
|
// ----- New Platform Views ----------
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@UiThread
|
@UiThread
|
||||||
public SurfaceControl.Transaction createTransaction() {
|
public SurfaceControl.Transaction createTransaction() {
|
||||||
if (platformViewsController2 == null) {
|
if (platformViewsController2 == null) {
|
||||||
@ -1296,6 +1298,7 @@ public class FlutterJNI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@UiThread
|
@UiThread
|
||||||
public void swapTransactions() {
|
public void swapTransactions() {
|
||||||
if (platformViewsController2 == null) {
|
if (platformViewsController2 == null) {
|
||||||
@ -1305,6 +1308,7 @@ public class FlutterJNI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@UiThread
|
@UiThread
|
||||||
public void applyTransactions() {
|
public void applyTransactions() {
|
||||||
if (platformViewsController2 == null) {
|
if (platformViewsController2 == null) {
|
||||||
@ -1314,6 +1318,7 @@ public class FlutterJNI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@UiThread
|
@UiThread
|
||||||
public FlutterOverlaySurface createOverlaySurface2() {
|
public FlutterOverlaySurface createOverlaySurface2() {
|
||||||
if (platformViewsController2 == null) {
|
if (platformViewsController2 == null) {
|
||||||
@ -1324,6 +1329,7 @@ public class FlutterJNI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@UiThread
|
@UiThread
|
||||||
public void destroyOverlaySurface2() {
|
public void destroyOverlaySurface2() {
|
||||||
ensureRunningOnMainThread();
|
ensureRunningOnMainThread();
|
||||||
@ -1335,6 +1341,8 @@ public class FlutterJNI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@UiThread
|
@UiThread
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
@SuppressLint("NewApi")
|
||||||
public void onDisplayPlatformView2(
|
public void onDisplayPlatformView2(
|
||||||
int viewId,
|
int viewId,
|
||||||
int x,
|
int x,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user