From 15ecdc86fbe5902822726c86e3dfae58311eabb0 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 28 Apr 2022 20:42:46 +0200 Subject: [PATCH] fixed #1166 --- CHANGELOG.md | 4 ++++ .../headless_in_app_webview/HeadlessInAppWebViewManager.java | 4 +--- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75822993..3f1bfd37 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.4.3+3 + +- Fixed "Android error: package org.jetbrains.annotations does not exist import org.jetbrains.annotations.NotNull;" [#1166](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1166) + ## 5.4.3+2 - Fixed "Latest version 5.4.3 crashes on Android" [#1159](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1159) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/headless_in_app_webview/HeadlessInAppWebViewManager.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/headless_in_app_webview/HeadlessInAppWebViewManager.java index 8395a29c..d8487181 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/headless_in_app_webview/HeadlessInAppWebViewManager.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/headless_in_app_webview/HeadlessInAppWebViewManager.java @@ -26,8 +26,6 @@ import androidx.annotation.Nullable; import com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin; import com.pichillilorenzo.flutter_inappwebview.in_app_webview.FlutterWebView; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.HashMap; import java.util.List; @@ -52,7 +50,7 @@ public class HeadlessInAppWebViewManager implements MethodChannel.MethodCallHand } @Override - public void onMethodCall(final MethodCall call, @NotNull final Result result) { + public void onMethodCall(final MethodCall call, final Result result) { final String id = (String) call.argument("id"); switch (call.method) { diff --git a/pubspec.yaml b/pubspec.yaml index 270474e4..7786aeac 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_inappwebview description: A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window. -version: 5.4.3+2 +version: 5.4.3+3 homepage: https://github.com/pichillilorenzo/flutter_inappwebview environment: