From c3a27be661a0acec3e3fca21f18b77c5223cc591 Mon Sep 17 00:00:00 2001 From: liuja <542689970@qq.com> Date: Mon, 28 Oct 2024 09:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3=E4=B8=AD?= =?UTF-8?q?=E7=9A=84android?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuja <542689970@qq.com> --- packages/camera/camera_ohos/README.md | 4 +- packages/local_auth/local_auth_ohos/README.md | 4 +- .../shared_preferences_ohos/README.md | 4 +- .../webview_flutter_ohos/README.md | 2 +- .../webview_flutter_ohos/README.md | 57 +------------------ 5 files changed, 9 insertions(+), 62 deletions(-) diff --git a/packages/camera/camera_ohos/README.md b/packages/camera/camera_ohos/README.md index 509d5b880..012214404 100644 --- a/packages/camera/camera_ohos/README.md +++ b/packages/camera/camera_ohos/README.md @@ -1,6 +1,6 @@ -# camera\_android +# camera\_ohos -The Android implementation of [`camera`][1]. +The OpenHarmony implementation of [`camera`][1]. ## Usage diff --git a/packages/local_auth/local_auth_ohos/README.md b/packages/local_auth/local_auth_ohos/README.md index 07244912f..d9f89f0a6 100644 --- a/packages/local_auth/local_auth_ohos/README.md +++ b/packages/local_auth/local_auth_ohos/README.md @@ -1,6 +1,6 @@ -# local\_auth\_android +# local\_auth\_ohos -The Android implementation of [`local_auth`][1]. +The OpenHarmony implementation of [`local_auth`][1]. ## Usage diff --git a/packages/shared_preferences/shared_preferences_ohos/README.md b/packages/shared_preferences/shared_preferences_ohos/README.md index 6d30be341..79f05b032 100644 --- a/packages/shared_preferences/shared_preferences_ohos/README.md +++ b/packages/shared_preferences/shared_preferences_ohos/README.md @@ -1,6 +1,6 @@ -# shared\_preferences\_android +# shared\_preferences\_ohos -The Android implementation of [`shared_preferences`][1]. +The OpenHarmony implementation of [`shared_preferences`][1]. ## Usage diff --git a/packages/webview_flutter-v4.4.4/webview_flutter_ohos/README.md b/packages/webview_flutter-v4.4.4/webview_flutter_ohos/README.md index 4c4f50e3b..835d9405b 100644 --- a/packages/webview_flutter-v4.4.4/webview_flutter_ohos/README.md +++ b/packages/webview_flutter-v4.4.4/webview_flutter_ohos/README.md @@ -1 +1 @@ -# webview\_flutter\_android +# webview\_flutter\_ohos diff --git a/packages/webview_flutter/webview_flutter_ohos/README.md b/packages/webview_flutter/webview_flutter_ohos/README.md index 06ec1a7ba..a51f1991a 100644 --- a/packages/webview_flutter/webview_flutter_ohos/README.md +++ b/packages/webview_flutter/webview_flutter_ohos/README.md @@ -1,6 +1,6 @@ -# webview\_flutter\_android +# webview\_flutter\_ohos -The Android implementation of [`webview_flutter`][1]. +The OpenHarmony implementation of [`webview_flutter`][1]. ## Usage @@ -17,58 +17,5 @@ This plugin supports two different platform view display modes. The default disp to change in the future, and will not be considered a breaking change, so if you want to ensure a specific mode, you can set it explicitly. -### Texture Layer Hybrid Composition - -This is the current default mode for versions >=23. This is a new display mode used by most -plugins starting with Flutter 3.0. This is more performant than Hybrid Composition, but has some -limitations from using an Android [SurfaceTexture](https://developer.android.com/reference/android/graphics/SurfaceTexture). -See: -* https://github.com/flutter/flutter/issues/104889 -* https://github.com/flutter/flutter/issues/116954 - -### Hybrid Composition - -This is the current default mode for versions <23. It ensures that the WebView will display and work -as expected, at the cost of some performance. See: -* https://flutter.dev/docs/development/platform-integration/platform-views#performance - -This can be configured for versions >=23 with -`AndroidWebViewWidgetCreationParams.displayWithHybridComposition`. See https://pub.dev/packages/webview_flutter#platform-specific-features -for more details on setting platform-specific features in the main plugin. - -### External Native API - -The plugin also provides a native API accessible by the native code of Android applications or -packages. This API follows the convention of breaking changes of the Dart API, which means that any -changes to the class that are not backwards compatible will only be made with a major version change -of the plugin. Native code other than this external API does not follow breaking change conventions, -so app or plugin clients should not use any other native APIs. - -The API can be accessed by importing the native class `WebViewFlutterAndroidExternalApi`: - -Java: - -```java -import io.flutter.plugins.webviewflutter.WebViewFlutterAndroidExternalApi; -``` - -## Contributing - -This package uses [pigeon][3] to generate the communication layer between Flutter and the host -platform (Android). The communication interface is defined in the `pigeons/android_webview.dart` -file. After editing the communication interface regenerate the communication layer by running -`dart run pigeon --input pigeons/android_webview.dart`. - -Besides [pigeon][3] this package also uses [mockito][4] to generate mock objects for testing -purposes. To generate the mock objects run the following command: -```bash -dart run build_runner build --delete-conflicting-outputs -``` - -If you would like to contribute to the plugin, check out our [contribution guide][5]. - [1]: https://pub.dev/packages/webview_flutter [2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin -[3]: https://pub.dev/packages/pigeon -[4]: https://pub.dev/packages/mockito -[5]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md -- Gitee