diff --git a/DEPS b/DEPS index cec584c7c1..4f9b3d7a6c 100644 --- a/DEPS +++ b/DEPS @@ -111,7 +111,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'f582982073b6f04b7a70bc284bac8fafa6c0a846', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '8ce3dadcb6bb3e05570e1b5748fbc2716d264bb0', # Fuchsia compatibility # @@ -571,7 +571,7 @@ deps = { 'packages': [ { 'package': 'flutter/android/sdk/all/${{platform}}', - 'version': 'version:31v8' + 'version': 'version:32v1' } ], 'condition': 'download_android_deps', diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java index 5382497032..d5fcac7d50 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java @@ -1028,7 +1028,7 @@ public class FlutterView extends FrameLayout * @param currentView The root view. * @return A descendant of currentView or currentView itself. */ - @SuppressLint("PrivateApi") + @SuppressLint("DiscouragedPrivateApi") private View findViewByAccessibilityIdRootedAtCurrentView(int accessibilityId, View currentView) { Method getAccessibilityViewIdMethod; try { diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/renderer/FlutterRenderer.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/renderer/FlutterRenderer.java index 67c5e39018..2c4ab15de3 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/renderer/FlutterRenderer.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/renderer/FlutterRenderer.java @@ -4,7 +4,6 @@ package io.flutter.embedding.engine.renderer; -import android.annotation.TargetApi; import android.graphics.Bitmap; import android.graphics.Rect; import android.graphics.SurfaceTexture; @@ -34,7 +33,6 @@ import java.util.concurrent.atomic.AtomicLong; *
{@link io.flutter.embedding.android.FlutterSurfaceView} and {@link
* io.flutter.embedding.android.FlutterTextureView} are implementations of {@link RenderSurface}.
*/
-@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public class FlutterRenderer implements TextureRegistry {
private static final String TAG = "FlutterRenderer";
diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/localization/LocalizationPlugin.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/localization/LocalizationPlugin.java
index 5dc003e543..38dc780ed7 100644
--- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/localization/LocalizationPlugin.java
+++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/localization/LocalizationPlugin.java
@@ -4,6 +4,7 @@
package io.flutter.plugin.localization;
+import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
@@ -22,6 +23,7 @@ public class LocalizationPlugin {
@NonNull private final LocalizationChannel localizationChannel;
@NonNull private final Context context;
+ @SuppressLint("AppBundleLocaleChanges") // This is optionally turned on by apps.
@VisibleForTesting
final LocalizationChannel.LocalizationMessageHandler localizationMessageHandler =
new LocalizationChannel.LocalizationMessageHandler() {
diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java
index a7d1c628b3..cb27706e37 100644
--- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java
+++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java
@@ -4,6 +4,7 @@
package io.flutter.plugin.platform;
+import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityManager.TaskDescription;
import android.content.ClipData;
@@ -243,8 +244,7 @@ public class PlatformPlugin {
private void setSystemChromeEnabledSystemUIMode(PlatformChannel.SystemUiMode systemUiMode) {
int enabledOverlays;
- if (systemUiMode == PlatformChannel.SystemUiMode.LEAN_BACK
- && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
+ if (systemUiMode == PlatformChannel.SystemUiMode.LEAN_BACK) {
// LEAN BACK
// Available starting at SDK 16
// Should not show overlays, tap to reveal overlays, needs onChange callback
@@ -364,6 +364,7 @@ public class PlatformPlugin {
}
@SuppressWarnings("deprecation")
+ @TargetApi(21)
private void setSystemChromeSystemUIOverlayStyle(
PlatformChannel.SystemChromeStyle systemChromeStyle) {
Window window = activity.getWindow();
diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java
index 09aeb1c696..48f1ab700c 100644
--- a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java
+++ b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java
@@ -2758,6 +2758,8 @@ public class AccessibilityBridge extends AccessibilityNodeProvider {
* @param eventOrigin the view in the embedded view's hierarchy that sent the event.
* @return True if the event was sent.
*/
+ // AccessibilityEvent has many irrelevant cases that would be confusing to list.
+ @SuppressLint("SwitchIntDef")
public boolean externalViewRequestSendAccessibilityEvent(
View embeddedView, View eventOrigin, AccessibilityEvent event) {
if (!accessibilityViewEmbedder.requestSendAccessibilityEvent(
diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java
index 621b80f6e2..368e14ce5f 100644
--- a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java
+++ b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java
@@ -434,7 +434,7 @@ class AccessibilityViewEmbedder {
private @Nullable final Field childNodeIdsField;
private @Nullable final Method longArrayGetIndex;
- @SuppressLint("PrivateApi")
+ @SuppressLint("DiscouragedPrivateApi,PrivateApi")
private ReflectionAccessors() {
Method getSourceNodeId = null;
Method getParentNodeId = null;
diff --git a/engine/src/flutter/shell/platform/android/test_runner/build.gradle b/engine/src/flutter/shell/platform/android/test_runner/build.gradle
index 2b4748aa1f..5d6aca1b8d 100644
--- a/engine/src/flutter/shell/platform/android/test_runner/build.gradle
+++ b/engine/src/flutter/shell/platform/android/test_runner/build.gradle
@@ -33,7 +33,7 @@ println "AVAILABLE PROCESSORS: $availableProcessors"
println "=========================================="
android {
- compileSdkVersion 31
+ compileSdkVersion 32
defaultConfig {
minSdkVersion 16
diff --git a/engine/src/flutter/testing/android_background_image/android/app/build.gradle b/engine/src/flutter/testing/android_background_image/android/app/build.gradle
index ff4e84a6e1..cfa8d98bed 100644
--- a/engine/src/flutter/testing/android_background_image/android/app/build.gradle
+++ b/engine/src/flutter/testing/android_background_image/android/app/build.gradle
@@ -16,8 +16,8 @@ android {
// The others are irrelevant for a test application.
disable 'UnpackedNativeCode','MissingApplicationIcon','GoogleAppIndexingApiWarning','GoogleAppIndexingWarning','GradleDependency','NewerVersionAvailable'
}
- buildToolsVersion = '31.0.0'
- compileSdkVersion 31
+ buildToolsVersion = '33.0.0-rc4'
+ compileSdkVersion 32
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
@@ -25,7 +25,7 @@ android {
defaultConfig {
applicationId 'dev.flutter.android_background_image'
minSdkVersion 16
- targetSdkVersion 31
+ targetSdkVersion 32
versionCode 1
versionName '1.0'
}
diff --git a/engine/src/flutter/testing/scenario_app/android/app/build.gradle b/engine/src/flutter/testing/scenario_app/android/app/build.gradle
index 08450900b2..cfee735833 100644
--- a/engine/src/flutter/testing/scenario_app/android/app/build.gradle
+++ b/engine/src/flutter/testing/scenario_app/android/app/build.gradle
@@ -15,8 +15,8 @@ android {
// The others are irrelevant for a test application.
disable 'UnpackedNativeCode','MissingApplicationIcon','GoogleAppIndexingApiWarning','GoogleAppIndexingWarning','GradleDependency','NewerVersionAvailable','Registered'
}
- buildToolsVersion = '31.0.0'
- compileSdkVersion 31
+ buildToolsVersion = '33.0.0-rc4'
+ compileSdkVersion 32
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
@@ -24,7 +24,7 @@ android {
defaultConfig {
applicationId 'dev.flutter.scenarios'
minSdkVersion 18
- targetSdkVersion 31
+ targetSdkVersion 32
versionCode 1
versionName '1.0'
testInstrumentationRunner 'dev.flutter.TestRunner'
diff --git a/engine/src/flutter/tools/android_lint/baseline.xml b/engine/src/flutter/tools/android_lint/baseline.xml
index 00aad19954..a3aef00b22 100644
--- a/engine/src/flutter/tools/android_lint/baseline.xml
+++ b/engine/src/flutter/tools/android_lint/baseline.xml
@@ -1,5 +1,5 @@
-