diff --git a/DEPS b/DEPS index c7653d6bcb..31b48b6c15 100644 --- a/DEPS +++ b/DEPS @@ -514,6 +514,17 @@ deps = { 'dep_type': 'cipd', }, + 'src/third_party/android_tools/sdk/cmdline-tools': { + 'packages': [ + { + 'package': 'flutter/android/sdk/cmdline-tools', + 'version': 'latest', + } + ], + 'condition': 'download_android_deps', + 'dep_type': 'cipd', + }, + 'src/third_party/android_tools/sdk/licenses': { 'packages': [ { diff --git a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java index cdb0db92b8..0fe692c49c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java @@ -43,7 +43,7 @@ import java.util.ArrayList; * The most obvious example of when this may come in handy is if an application wishes to subclass * the Android v4 support library's {@code FragmentActivity}. * - *
Usage:
+ *Usage: * *
To wire this class up to your activity, simply forward the events defined in {@link
* FlutterActivityEvents} from your activity to an instance of this class. Optionally, you can make
@@ -425,9 +425,7 @@ public final class FlutterActivityDelegate
ActivityInfo activityInfo =
activity
.getPackageManager()
- .getActivityInfo(
- activity.getComponentName(),
- PackageManager.GET_META_DATA | PackageManager.GET_ACTIVITIES);
+ .getActivityInfo(activity.getComponentName(), PackageManager.GET_META_DATA);
Bundle metadata = activityInfo.metaData;
return metadata != null && metadata.getBoolean(SPLASH_SCREEN_META_DATA_KEY);
} catch (NameNotFoundException e) {
diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java
index 4c647142e9..843284c993 100644
--- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java
+++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java
@@ -4,6 +4,7 @@
package io.flutter.embedding.android;
+import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Bitmap;
@@ -99,6 +100,7 @@ public class FlutterImageView extends View implements RenderSurface {
}
@TargetApi(19)
+ @SuppressLint("WrongConstant") // RGBA_8888 is a valid constant.
@NonNull
private static ImageReader createImageReader(int width, int height) {
if (width <= 0) {
diff --git a/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityTest.java b/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityTest.java
index b88460b3cb..29eb3ea93d 100644
--- a/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityTest.java
+++ b/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityTest.java
@@ -15,6 +15,7 @@ import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.robolectric.Shadows.shadowOf;
+import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
@@ -438,6 +439,7 @@ public class FlutterActivityTest {
static class FlutterActivityWithProvidedEngine extends FlutterActivity {
@Override
+ @SuppressLint("MissingSuperCall")
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.delegate = new FlutterActivityAndFragmentDelegate(this);
super.delegate.setupFlutterEngine();
diff --git a/engine/src/flutter/tools/android_lint/bin/main.dart b/engine/src/flutter/tools/android_lint/bin/main.dart
index e71e3d6483..aec851f3a5 100644
--- a/engine/src/flutter/tools/android_lint/bin/main.dart
+++ b/engine/src/flutter/tools/android_lint/bin/main.dart
@@ -27,7 +27,6 @@ const LocalProcessManager processManager = LocalProcessManager();
/// Java 1.8.
Future