Skip to content

Commit

Permalink
[flutter_plugin_android_lifecycle] Fix lints (flutter#4030)
Browse files Browse the repository at this point in the history
Removes lint-baseline.xml and fixes the resulting warnings.

Part of flutter#88011
  • Loading branch information
stuartmorgan authored May 18, 2023
1 parent 70eb807 commit b31a128
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 22 deletions.
3 changes: 2 additions & 1 deletion packages/flutter_plugin_android_lifecycle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.0.15

* Fixes Java lints.
* Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.

## 2.0.14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ android {
checkAllWarnings true
warningsAsErrors true
disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency'
baseline file("lint-baseline.xml")
}

dependencies {
Expand All @@ -68,4 +67,3 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.1.1'
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

/** Provides a static method for extracting lifecycle objects from Flutter plugin bindings. */
public class FlutterLifecycleAdapter {
private static final String TAG = "FlutterLifecycleAdapter";

/**
* Returns the lifecycle object for the activity a plugin is bound to.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
public class FlutterAndroidLifecyclePlugin implements FlutterPlugin {
@SuppressWarnings("deprecation")
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
public static void registerWith(
@NonNull io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
// no-op
}

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_plugin_android_lifecycle/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_plugin_android_lifecycle
description: Flutter plugin for accessing an Android Lifecycle within other plugins.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_plugin_android_lifecycle
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_plugin_android_lifecycle%22
version: 2.0.14
version: 2.0.15

environment:
sdk: ">=2.18.0 <4.0.0"
Expand Down

0 comments on commit b31a128

Please sign in to comment.