diff --git a/OAT.xml b/OAT.xml
index 1f5876088898c9ce3f7c46c84ba1023bf5801f27..f2e2b19941df371473f031d1e20884b344e4493f 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -64,6 +64,14 @@ used to filter file path.
+
+ desc="Mikkel Nygaard Ravn <mravn@google.com>"
+ filefilter="copyrightPolicyFilter"
+ group="defaultGroup"
+ name="Mikkel Nygaard Ravn <mravn@google.com>"
+ path=".*/ohos/.*"
+ rule="may"
+ type="copyright" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shell/platform/ohos/context/ohos_context.cpp b/shell/platform/ohos/context/ohos_context.cpp
index e436459390a0f9e7a2af97d33822c1026cd5f056..9099da45e093dc8ff09ab87bf5c8510aa72cc98c 100644
--- a/shell/platform/ohos/context/ohos_context.cpp
+++ b/shell/platform/ohos/context/ohos_context.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_context.cc originally written by
+ * Copyright (C) 2013 Raph Levien
+ *
*/
#include "flutter/shell/platform/ohos/context/ohos_context.h"
diff --git a/shell/platform/ohos/context/ohos_context.h b/shell/platform/ohos/context/ohos_context.h
index 84cdeb5820f055aab74deaaf36f7981878110468..0c7180ed82f594a1e5ab3703fb796cd6426dba64 100644
--- a/shell/platform/ohos/context/ohos_context.h
+++ b/shell/platform/ohos/context/ohos_context.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_context.h originally written by
+ * Copyright (C) 2013 Raph Levien
+ *
*/
#ifndef OHOS_CONTEXT_H
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngine.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngine.ets
index bb6b692fe663ce3eeb3b4f902082a86d9e8ea168..33c779db804194f1085be7493be3a891fe08e136 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngine.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngine.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngine.java originally written by
+* Copyright (C) 2018 Matt Carroll
+*
*/
import LifecycleChannel from './systemchannels/LifecycleChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineCache.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineCache.ets
index 7808dfd8afa1f7ad23e003028409cc18758dd616..d368805e5ad4cdcb5577ad89ec462a671edfa2c9 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineCache.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineCache.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngineCache.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import FlutterEngine from "./FlutterEngine"
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets
index bdcddb159e110ea3daace7a4983306835b333a46..7aaecdadadcb3c6d3173ab86b6624abd2abbfa24 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngineConnectionRegistry.java originally written by
+* Copyright (C) 2020 xster
+*
*/
import PluginRegistry from './plugins/PluginRegistry';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineGroup.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineGroup.ets
index bd4c494cc1543c76877f4518ac179c97da6bd0f9..b6faf17f3b77d7f3489b456d5896654ca8cc59bd 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineGroup.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterEngineGroup.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngineGroup.java originally written by
+* Copyright (C) 2021 xster
+*
*/
import FlutterEngine, { EngineLifecycleListener } from "./FlutterEngine"
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterOverlaySurface.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterOverlaySurface.ets
index 2d63d83de313f52eba3f8fa6d2ed584f7bee44bd..0ebb5838a75132974106339bb7664f5e5bfba668 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterOverlaySurface.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterOverlaySurface.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterOverlaySurface.java originally written by
+* Copyright (C) 2020 cg021 <40409839+cg021@users.noreply.github.com>
+*
*/
export class FlutterOverlaySurface {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterShellArgs.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterShellArgs.ets
index 604c4900106515617821e8c43d3900ab1cd7d66b..3382b84e990c56513b2a36f5bd3fce21d0c681de 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterShellArgs.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/FlutterShellArgs.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterShellArgs.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import Want from '@ohos.app.ability.Want';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartExecutor.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartExecutor.ets
index 2c41446b2a710cbd3cf11aa7431b0ef8f5fdfac1..1ee303c3c3e47fc2db1c769e7c02b3cfc2cc2896 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartExecutor.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartExecutor.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on DartExecutor.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import resourceManager from '@ohos.resourceManager';
import FlutterInjector from '../../../FlutterInjector';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartMessenger.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartMessenger.ets
index a1773db5c745c9111fcc3fda82ccde07e0d50bd2..2dc3fb3798f9f9bac24521f7e6ef1534279efafc 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartMessenger.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/DartMessenger.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on DartMessenger.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import { ErrorEvent, Queue, taskpool, worker, MessageEvents, JSON } from '@kit.ArkTS';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets
index b6e3411862cb936f4e9af2c6e0ab6a49be3c9dce..00ed6f2941b8a8c73af1ffb3e0bf324892bf3c93 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformMessageHandler.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
export interface PlatformMessageHandler {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets
index e170586a89c865338c314cb4badc16772eb1b5c0..a22ff97f93b5a1885fdefa9b0998578dd9a1a10d 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterApplicationInfo.java originally written by
+* Copyright (C) 2020 Emmanuel Garcia
+*
*/
import BuildProfile from "../../../../../../BuildProfile";
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterLoader.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterLoader.ets
index 8c9b1528ae386bd0008cacf0df9a5e0d641e1598..ee12451cee683ab17279e87d16e6d99805d089c6 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterLoader.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/loader/FlutterLoader.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterLoader.java originally written by
+* Copyright (C) 2020 Emmanuel Garcia
+*
*/
/**
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets
index f439b570473a9abf5d278d2446b7965e11c3bc1d..812580f28f9840ea9c838069a04fa81dcc09b91e 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterMutatorView.java originally written by
+* Copyright (C) 2021 Dan Field
+*
*/
import ArrayList from '@ohos.util.ArrayList';
import matrix4 from '@ohos.matrix4';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets
index 2f53c6c041bfd92ea74c3896d00a04f6b5590e2e..6e24617c6ebafa327d252885a3bd444cc65bedc2 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterMutatorsStack.java originally written by
+* Copyright (C) 2021 Dan Field
+*
*/
import matrix4 from '@ohos.matrix4'
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets
index 92e08f8dd9c22e441ecfe852895522a7417f859b..3794000ddc936cb8b06bc2a3e45e17f65d47c62b 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterPlugin.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import common from '@ohos.app.ability.common';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/PluginRegistry.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/PluginRegistry.ets
index 1a322ec2ba1bbcfcbce180b00ec4df6356733180..d16ae08db62e3f73e42201f2407d0345913f93ae 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/PluginRegistry.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/plugins/PluginRegistry.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PluginRegistry.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import { FlutterPlugin } from './FlutterPlugin';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets
index 2a0af4009cafd2cf5229f082a41ed2d445c69caa..d7df59cfd36769da937e4eaffe63110331ff6be9 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterUiDisplayListener.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
export interface FlutterUiDisplayListener {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets
index 1a6eba7bc91ba1ac1803177655c4324249c5ef6c..fd62a257b7d16815e724467b583ad18b52b6c3d9 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on AccessibilityChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import Log from '../../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets
index 4c863bc8bd38df145d113ebc57b01f41bcc40d7d..c736bff5f426ea850772e74cabd1471c121eea05 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on KeyEventChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets
index ce5acbdbbae50078e7c339c767a34a178413bf2d..dabdc0d9e6692a3567f8e0a1533359d587ecf413 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on LifecycleChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import Log from '../../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets
index f8d8d27c935626c1e6962720fbc825a884e88a0d..ab290626be06b4cbaf5cfc10622e839070a75658 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on LocalizationChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import DartExecutor from '../dart/DartExecutor';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets
index 3e8b3d4167c3aeb9c08e657e8c504e7c51f5214d..a3ba49ed8b1b2399192734b9db9225c68c284194 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MouseCursorChannel.java originally written by
+* Copyright (C) 2020 Tong Mu
+*
*/
import HashMap from '@ohos.util.HashMap';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets
index f7ebcb6926eb490ed2ee21cb8927e5ed2a202632..e789ea271dbec75416c31bd873a65ee90a2f5740 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on NavigationChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets
index caf39c49165ef42fcd90c20e7c823f1a7eda01e9..e33ef8934acc2dbaeee6eeab6457df8c7c366103 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets
index 0b602e31d8b92990082db1fd326c09496af0caa2..02b71dfcd69c680192e2fbd1ac15535d39cde58a 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewsChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import Any from '../../../plugin/common/Any';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets
index c23d09ecb359444b07586fcbad448f941072634c..fb2dc6622d139c111e02bd4c0120659760cef76b 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on RestorationChannel.java originally written by
+* Copyright (C) 2020 Michael Goderbauer
+*
*/
import Any from '../../../plugin/common/Any';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets
index 6756b9032c035a13b4797168c32ec5cf42e9db3e..7dcfb0ce2e3f835522a248a3fbd01f5be1455f91 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on SettingsChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets
index b478ee36461aa2f6bb9833b1f49c595e368f4bf3..d2775bd87b6aa01d059958efb31c1411cdde3906 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on SystemChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets
index f99b0cd27f3fba243e663d187c698e04b4b44b52..9e9536e62a319608cf3fc728ee40ce1782e7f467 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on TextInputChannel.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets
index f7ecfc7d5ef46c57923679789eb82f86eb83ef77..4b7cf8e889a974c2f902a906b43cc903a01bd59f 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on ExclusiveAppComponent.java originally written by
+* Copyright (C) 2020 xster
+*
*/
export default interface ExclusiveAppComponent {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterAbilityAndEntryDelegate.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterAbilityAndEntryDelegate.ets
index 1f3c735b0ef795858c91cc0ecf71c058ff421124..4a0c5e3e803b99ddaf4710226569186c1c10d621 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterAbilityAndEntryDelegate.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterAbilityAndEntryDelegate.ets
@@ -39,7 +39,6 @@ import Any from '../../plugin/common/Any';
const TAG = "FlutterAbilityDelegate";
const PLUGINS_RESTORATION_BUNDLE_KEY = "plugins";
const FRAMEWORK_RESTORATION_BUNDLE_KEY = "framework";
-const EVENT_BACK_PRESS = 'EVENT_BACK_PRESS';
/**
* 主要职责:
@@ -92,14 +91,6 @@ class FlutterAbilityAndEntryDelegate implements ExclusiveAppComponent
this.flutterView.attachToFlutterEngine(this.flutterEngine!!);
}
this.host?.configureFlutterEngine(this.flutterEngine!!);
- this.context.eventHub.on(EVENT_BACK_PRESS, () => {
- if (this.flutterView?.getKeyboardHeight() == 0) {
- this.flutterEngine?.getNavigationChannel()?.popRoute();
- this.flutterEngine?.getPlatformViewsController()?.setBackNodeControllers();
- } else {
- this.flutterEngine?.getTextInputChannel()?.textInputMethodHandler?.hide();
- }
- });
}
/**
@@ -307,7 +298,6 @@ class FlutterAbilityAndEntryDelegate implements ExclusiveAppComponent
}
this.isAttached = false;
- this.context?.eventHub.off(EVENT_BACK_PRESS);
}
onLowMemory(): void {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets
index 75408f2baa60902d1afe7ccf05a0ea8c557b38cd..90c5ec94758085e9fb2a47a2ec3e39902fc0ed27 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngineConfigurator.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import FlutterEngine from '../engine/FlutterEngine';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineProvider.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineProvider.ets
index a8eea36514d690e00aba5c987f61907cf4292515..f128eceed8d6c0d29e79412baf20b8ca5e7bf4dc 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineProvider.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterEngineProvider.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterEngineProvider.java originally written by
+* Copyright (C) 2019 Matt Carroll
+*
*/
import FlutterEngine from '../engine/FlutterEngine';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/KeyboardManager.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/KeyboardManager.ets
index 21b5c88934ba7443f6dc5ead7fd8974e40db2ac3..6196f49ffe832d1c7dc11306bed004a3a68bb52f 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/KeyboardManager.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/KeyboardManager.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on KeyboardManager.java originally written by
+* Copyright (C) 2021 LongCatIsLooong <31859944+longcatislooong@users.noreply.github.com>
+*
*/
import TextInputPlugin from '../../plugin/editing/TextInputPlugin';
import FlutterEngine from '../engine/FlutterEngine';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/PlatformPlugin.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/PlatformPlugin.ets
index 500390aeb93de65c2cd3eabe284126c1a47918e7..c46e9b1cf5645dc05598bc6db7045c2bbb3fdf67 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/PlatformPlugin.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/PlatformPlugin.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformPlugin.java originally written by
+* Copyright (C) 2016 Adam Barth
+*
*/
import abilityAccessCtrl from '@ohos.abilityAccessCtrl';
import { BusinessError } from '@kit.BasicServicesKit';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BasicMessageChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BasicMessageChannel.ets
index 01a4a194f644701f130c5718324567ff4e3b27a0..9b8f71984397bee52e807c6e624a3ee998f958df 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BasicMessageChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BasicMessageChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on BasicMessageChannel.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import MessageChannelUtils from '../../util/MessageChannelUtils';
import { BinaryMessageHandler } from './BinaryMessenger';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryCodec.ets
index 1c15c762108efc389aef0b9d2bf3ff8b07b01991..3293b48360795e907ab8874c04eb8dcc0e0bc566 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on BinaryCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import MessageCodec from './MessageCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryMessenger.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryMessenger.ets
index 19e9a35f6757844f1d9231f791bd7cf7b89bb615..e49d8fcee593d92ba664f44a47a71d84fdd2ff70 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryMessenger.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/BinaryMessenger.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on BinaryMessenger.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
/**
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/EventChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/EventChannel.ets
index 0affd6b72708e69ff22a6e8b774bbf19de237f7a..2a98570c4650802467f6d5844921a7bbf4e4a23b 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/EventChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/EventChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on EventChannel.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/FlutterException.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/FlutterException.ets
index 260d5ad1d10e2f9da9d18e9ebc4548266c08d433..c64464d246ad9ce3dd5db3ba1ca2b67327f5766d 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/FlutterException.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/FlutterException.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterException.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import Any from './Any';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMessageCodec.ets
index d30f817fb3c6ce49d1ccdd5cae6a774098e8ca2e..6b3f9b1b060be0e59566e968c0c32a129a95c65d 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on JSONMessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import StringUtils from '../../util/StringUtils';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMethodCodec.ets
index 895aa995dd6ba5644177c9c69dbd8039d3082394..3e3e182feb06a523c6674da6aa02f961003cf817 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/JSONMethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on JSONMethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import Log from '../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MessageCodec.ets
index 4fdd52011b4ecbd0e6509864581000e5d8c0ad15..4e275b571ae6b40363ece8ca5c7e573c3f7eb60f 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
/**
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets
index 1588f617fb9e52fe9ebd4e4e66833ec83ebdf3ee..6eb30ebd9860a97e9a8962527bb5c1e579cfa495 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MethodCall.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import ToolUtils from '../../util/ToolUtils';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodChannel.ets
index 07eeb637cd9132db4bec808be340db56fd874fea..c2ca68d9999bbd9fc45b44f81bb8348131ea354e 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodChannel.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodChannel.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MethodChannel.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import Log from '../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCodec.ets
index 445892d23809b823471da4edeecacb1e5050cf85..2d99039d5b7d519ef579c58982d3de8616d73046 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import Any from './Any';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableBinaryCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableBinaryCodec.ets
index 3874e37028199fd8a68cf04b4a0ad25820491b97..4c917f6f41e4f7018c2c3fad24cbcb82545c8137 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableBinaryCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableBinaryCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on BinaryCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import SendableMessageCodec from './SendableMessageCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMessageCodec.ets
index 44abb977cf85359b885c5795ecd95706bc36d13e..6883af92f340cd82e06380bde529ca1bec9c3036 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on JSONMessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import StringUtils from '../../util/StringUtils';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMethodCodec.ets
index 55c96b523a490c673462bdaf07313199166b094d..48f46a0eb6fdf649dbbcd9986a03d2d2ea03c149 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableJSONMethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on JSONMethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import ToolUtils from '../../util/ToolUtils';
import FlutterException from './FlutterException';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMessageCodec.ets
index d58ffa6e27e6322a03a002297fba7e7a5bfe6a5a..b0976d9719e5b3e0aa0a80fd1c2714211149c1b9 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import { lang } from '@kit.ArkTS';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMethodCodec.ets
index 05bdcc403f9975e5fce7efc8cfc44120275dfb3d..87a5b2551e81706f452b02c35008277ee82f1e0f 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableMethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import { lang } from '@kit.ArkTS';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMessageCodec.ets
index af405327733303d134942a5fa849b3975f7094f5..15dc905fdd79030e61c7b180df2633c42c864a8b 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StandardMessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import Any from './Any';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMethodCodec.ets
index c2af05f39d3f9e32e67a52c1cae23b36381a2a38..838ec21ab811880b313d92adcdcceaa97ac12fdd 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStandardMethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StandardMethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import { ByteBuffer } from '../../util/ByteBuffer';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStringCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStringCodec.ets
index 23466ca64ae0cdeccf49a7475a8a2f96c7b1cf54..09251833a905002b788215f25da2ea997c071f0e 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStringCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/SendableStringCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StringCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import SendableMessageCodec from './SendableMessageCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets
index 25d7737baec7d236a2a99a949c6aab3c5c397105..c0176349290f511d798f30ada9a59a1cbffc2720 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StandardMessageCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import { ByteBuffer } from '../../util/ByteBuffer';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMethodCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMethodCodec.ets
index 279960f403444795148dd534546c5e145cfdfd07..e23554f494a48f8e94d6e8297dc423427a9cdaa1 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMethodCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMethodCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StandardMethodCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import { ByteBuffer } from '../../util/ByteBuffer';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StringCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StringCodec.ets
index 3ce96e365ce74d7e82bbf2f742c1bdb3800afb27..437e9508f93953f107e8955db4e09f6daeaba2dc 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StringCodec.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StringCodec.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on StringCodec.java originally written by
+* Copyright (C) 2017 Mikkel Nygaard Ravn
+*
*/
import StringUtils from '../../util/StringUtils';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/ListenableEditingState.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/ListenableEditingState.ets
index 42f1cec3c5bab24dc157117d50b849caf42138ef..cea255d7ad9ea3d2d32baf56c335f4a56838b98a 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/ListenableEditingState.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/ListenableEditingState.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on ListenableEditingState.java originally written by
+* Copyright (C) 2020 LongCatIsLooong <31859944+longcatislooong@users.noreply.github.com>
+*
*/
import { TextEditState } from '../../embedding/engine/systemchannels/TextInputChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextEditingDelta.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextEditingDelta.ets
index 495c4a51821d5b9279c56dc134138e5ccb17b41f..c74dcfb190546060b26ac5530ec3ed05644339f4 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextEditingDelta.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextEditingDelta.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on TextEditingDelta.java originally written by
+* Copyright (C) 2021 Renzo Olivares
+*
*/
import Log from '../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextInputPlugin.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextInputPlugin.ets
index 50be54c4b0ad32053498917760e5b350a72c2bf7..87c3a245753ec2fc5c7e8fbe201d5337c75ddcd2 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextInputPlugin.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextInputPlugin.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on TextInputPlugin.java originally written by
+* Copyright (C) 2016 Adam Barth
+*
*/
import TextInputChannel, {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextUtils.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextUtils.ets
index 61aa4b3dee7fe35658c24b51ebf1205708d7f923..f5ec8f10c64e07e608c8a611c1dd8c676bcc8c68 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextUtils.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/editing/TextUtils.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterTextUtils.java originally written by
+* Copyright (C) 2020 Ali Mahdiyar
+*
*/
import FlutterNapi from '../../embedding/engine/FlutterNapi';
import Log from '../../util/Log';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/localization/LocalizationPlugin.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/localization/LocalizationPlugin.ets
index 05421fc41e6c74003556ed92dffc9018314b7926..6c58d1a98f44f68e056921d464ff18d542eb1148 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/localization/LocalizationPlugin.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/localization/LocalizationPlugin.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on LocalizationPlugin.java originally written by
+* Copyright (C) 2020 Gary Qian
+*
*/
import LocalizationChannel, {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/mouse/MouseCursorPlugin.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/mouse/MouseCursorPlugin.ets
index 90fc4b83874d49a66f1bb4f732a6df272ad87c80..6ac503563522e68d69aa62bbb3bb1f09516c47d8 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/mouse/MouseCursorPlugin.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/mouse/MouseCursorPlugin.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on MouseCursorPlugin.java originally written by
+* Copyright (C) 2020 Tong Mu
+*
*/
import MouseCursorChannel, { MouseCursorMethodHandler } from '../../embedding/engine/systemchannels/MouseCursorChannel';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets
index aae15ba935e29f71d8f734b5505b8236b49af2d7..42b3c9d2bb476dc5cbc12ce5b95e43facdc17b30 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on AccessibilityEventsDelegate.java originally written by
+* Copyright (C) 2019 Amir Hardon
+*
*/
import AccessibilityBridge from '../../view/AccessibilityBridge';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformView.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformView.ets
index 1628ddd672c078a94b7624996e20878110eaaf58..7d9dd7c17dc54e7d1be527a2fe9af61c8522945a 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformView.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformView.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformView.java originally written by
+* Copyright (C) 2018 amirh
+*
*/
import { DVModel, DynamicView } from '../../view/DynamicView/dynamicView'
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewFactory.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewFactory.ets
index 81ce2ba940d0decbebe39f9db33be4c5f2ec499d..3759c0a1e1c1d02b98934802538bea95dbbadbad 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewFactory.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewFactory.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewFactory.java originally written by
+* Copyright (C) 2018 amirh
+*
*/
import MessageCodec from '../common/MessageCodec';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistry.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistry.ets
index 2c49f5eeaddb54cece120df8eea307c69ad76ebf..a56f896ad82b78887bae1f555bed7e6cf42bd3fa 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistry.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistry.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewRegistry.java originally written by
+* Copyright (C) 2018 amirh
+*
*/
import PlatformViewFactory from './PlatformViewFactory'
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets
index 98cb247d890cbe65150feb84242c01128047e7f9..d40f2c8b344a19f3dd75369c87f0a7042f3245ad 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewRegistryImpl.java originally written by
+* Copyright (C) 2018 amirh
+*
*/
import HashMap from '@ohos.util.HashMap';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets
index 62888046c561533a3ea096c77ce7f3f634503e4c..b8cef0dc73a922d96a21639715629df087b94332 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewsAccessibilityDelegate.java originally written by
+* Copyright (C) 2019 Amir Hardon
+*
*/
import AccessibilityBridge from '../../view/AccessibilityBridge';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets
index 8606a179938ed86927951840d3332c0c0374d3ca..b8ebcc538c4350447a4f055ff1cc73fc9f26cbd7 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on PlatformViewsController.java originally written by
+* Copyright (C) 2018 amirh
+*
*/
import { PlatformViewsAccessibilityDelegate } from './PlatformViewsAccessibilityDelegate';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/TraceSection.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/TraceSection.ets
index e74cbcce5f63e638a9cbac1e9cd59c693ca2b7a6..3a9ff0e17ba95f34658548c7dd9c10516b6f6f6f 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/TraceSection.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/TraceSection.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on TraceSection.java originally written by
+* Copyright (C) 2022 Dan Field
+*
*/
import hiTraceMeter from '@ohos.hiTraceMeter'
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/AccessibilityBridge.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/AccessibilityBridge.ets
index c1cca165b662746188ce2ba82f76576f3a092578..1ca77e4a3f288c3aef75d6c1808988d4a27e8b12 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/AccessibilityBridge.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/AccessibilityBridge.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on AccessibilityBridge.java originally written by
+* Copyright (C) 2016 Hixie
+*
*/
import AccessibilityChannel, {AccessibilityMessageHandler} from '../embedding/engine/systemchannels/AccessibilityChannel';
import { ByteBuffer } from '../util/ByteBuffer';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterCallbackInformation.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterCallbackInformation.ets
index 7f9111e95f95d9784422a7695dd0db712690763e..e71c3308774fdb3daa75dab3a73a7e2a850a03dc 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterCallbackInformation.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterCallbackInformation.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterCallbackInformation.java originally written by
+* Copyright (C) 2018 Ben Konyi
+*
*/
import FlutterNapi from '../embedding/engine/FlutterNapi';
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterRunArguments.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterRunArguments.ets
index c81e33f381f06662a8b881df3452d76038837361..9f915afdea763bb39ecb5e7d38aa4726bdf57f87 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterRunArguments.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterRunArguments.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on FlutterRunArguments.java originally written by
+* Copyright (C) 2018 Ben Konyi
+*
*/
export default class FlutterRunArguments {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets
index f402b642b7c1b0865a801b17821a236a3b2a6312..d835d9cb13df24b3ffd29602dea495215238ddb6 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/FlutterView.ets
@@ -30,6 +30,7 @@ import { accessibility } from '@kit.AccessibilityKit';
import TextInputPlugin from '../plugin/editing/TextInputPlugin';
const TAG = "FlutterViewTag";
+const EVENT_BACK_PRESS = 'EVENT_BACK_PRESS';
export class ViewportMetrics {
devicePixelRatio: number = 1.0;
@@ -184,6 +185,7 @@ export class FlutterView {
private mouseCursorPlugin?: MouseCursorPlugin;
private textInputPlugin?: TextInputPlugin;
private uiContext?: UIContext | undefined;
+ private context: Context;
private settings?: Settings;
private mFirstFrameListeners: ArrayList;
private isFlutterUiDisplayed: boolean = false;
@@ -199,7 +201,8 @@ export class FlutterView {
private keyboardAvoidArea: window.AvoidArea;
constructor(viewId: string, context: Context) {
- this.id = viewId
+ this.id = viewId;
+ this.context = context;
this.displayInfo = display.getDefaultDisplaySync();
this.viewportMetrics.devicePixelRatio = this.displayInfo?.densityPixels;
@@ -433,6 +436,15 @@ export class FlutterView {
}
this.onAreaChange(newArea, true);
+ this.context.eventHub.on(EVENT_BACK_PRESS, () => {
+ if (this?.getKeyboardHeight() == 0) {
+ this.flutterEngine?.getNavigationChannel()?.popRoute();
+ this.flutterEngine?.getPlatformViewsController()?.setBackNodeControllers();
+ } else {
+ this.flutterEngine?.getTextInputChannel()?.textInputMethodHandler?.hide();
+ }
+ });
+
let windowId = this.mainWindow?.getWindowProperties()?.id ?? 0
this.mouseCursorPlugin = new MouseCursorPlugin(windowId, this.flutterEngine?.getMouseCursorChannel()!);
this.textInputPlugin = new TextInputPlugin(this.flutterEngine?.getTextInputChannel()!);
@@ -459,6 +471,7 @@ export class FlutterView {
this.flutterEngine = null;
this.keyboardManager = null;
this.textInputPlugin?.destroy();
+ this.context.eventHub.off(EVENT_BACK_PRESS);
}
onWindowCreated() {
diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/TextureRegistry.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/TextureRegistry.ets
index 760eb28b98ccc3e9ffcfbca843b0da5ec7ea8d37..6fcea4744542da4a36b2f4343ec7e0784cfbf7c0 100644
--- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/TextureRegistry.ets
+++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/view/TextureRegistry.ets
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+*
+* Based on TextureRegistry.java originally written by
+* Copyright (C) 2017 Chinmay Garde
+*
*/
import image from '@ohos.multimedia.image';
diff --git a/shell/platform/ohos/ohos_asset_provider.cpp b/shell/platform/ohos/ohos_asset_provider.cpp
index c7b60e2b15ed437b80beacd2bf842ebf6723b4df..063df47e51b5f19d5cbe68fc312eb0dc3f3fc2b6 100755
--- a/shell/platform/ohos/ohos_asset_provider.cpp
+++ b/shell/platform/ohos/ohos_asset_provider.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on apk_asset_provider.cc originally written by
+ * Copyright (C) 2018 Sarah Zakarias
+ *
*/
#include "ohos_asset_provider.h"
diff --git a/shell/platform/ohos/ohos_asset_provider.h b/shell/platform/ohos/ohos_asset_provider.h
index 666aeb69b66cedb6e7859821efeb6c9fec59965a..0c12af661cd1f9efd6090994b78df9a7eaf92432 100755
--- a/shell/platform/ohos/ohos_asset_provider.h
+++ b/shell/platform/ohos/ohos_asset_provider.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on apk_asset_provider.h originally written by
+ * Copyright (C) 2018 Sarah Zakarias
+ *
*/
#ifndef OHOS_ASSET_PROVIDER_H
diff --git a/shell/platform/ohos/ohos_context_gl_impeller.cpp b/shell/platform/ohos/ohos_context_gl_impeller.cpp
index 1610073bb8364a0d9f55134dd5be5de8a85770d7..1c7cf7d9bf0b575778a44f9239e053dc92032eac 100755
--- a/shell/platform/ohos/ohos_context_gl_impeller.cpp
+++ b/shell/platform/ohos/ohos_context_gl_impeller.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "ohos_context_gl_impeller.h"
diff --git a/shell/platform/ohos/ohos_context_gl_impeller.h b/shell/platform/ohos/ohos_context_gl_impeller.h
index 9be28a018c788ccd7f27c9a811bd16169257c5e4..bd6f48628f69868df93e530e8ee1fbfe227337f2 100755
--- a/shell/platform/ohos/ohos_context_gl_impeller.h
+++ b/shell/platform/ohos/ohos_context_gl_impeller.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_CONTEXT_GL_IMPELLER_H
diff --git a/shell/platform/ohos/ohos_context_gl_skia.cpp b/shell/platform/ohos/ohos_context_gl_skia.cpp
index 2dbd1a971833dc6f5d6d5bbd3ab90b921c1dfe96..43ecdd16126b560d261e974e41786dade6d1d12c 100755
--- a/shell/platform/ohos/ohos_context_gl_skia.cpp
+++ b/shell/platform/ohos/ohos_context_gl_skia.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/ohos_context_gl_skia.h"
diff --git a/shell/platform/ohos/ohos_context_gl_skia.h b/shell/platform/ohos/ohos_context_gl_skia.h
index c30a24da87310f8b2e02f62c53de08875e1152d6..cb80b6604513e842fb3c132462f3c208cff49ca3 100755
--- a/shell/platform/ohos/ohos_context_gl_skia.h
+++ b/shell/platform/ohos/ohos_context_gl_skia.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_CONTEXT_GL_SKIA_H_
diff --git a/shell/platform/ohos/ohos_display.cpp b/shell/platform/ohos/ohos_display.cpp
index 2b9b823df5c6a4d7b654d6122ab528c8495336b3..fa9afd45504f9c49881d3b1bd0b6a6b83ff2de7a 100644
--- a/shell/platform/ohos/ohos_display.cpp
+++ b/shell/platform/ohos/ohos_display.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/ohos_display.h"
diff --git a/shell/platform/ohos/ohos_display.h b/shell/platform/ohos/ohos_display.h
index 4bf5600e13afb5b138f5e321347599282f5c92cf..098be0f1df5f01f5cd3fb0e75a28cb99986a6d2d 100644
--- a/shell/platform/ohos/ohos_display.h
+++ b/shell/platform/ohos/ohos_display.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_DISPLAY_H
diff --git a/shell/platform/ohos/ohos_egl_surface.cpp b/shell/platform/ohos/ohos_egl_surface.cpp
index a9e5ece5cb4a2f49c44c203b31e09adf7f5e21b8..caab7cd7b2eeae643af117b1145a0dff3c8f0f14 100755
--- a/shell/platform/ohos/ohos_egl_surface.cpp
+++ b/shell/platform/ohos/ohos_egl_surface.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/ohos_egl_surface.h"
diff --git a/shell/platform/ohos/ohos_egl_surface.h b/shell/platform/ohos/ohos_egl_surface.h
index a2f98f90a40b295fe836e065c890a491e4b1df6f..dd1cb98e25ba0c767b89605a3ccff51aafe197ff 100755
--- a/shell/platform/ohos/ohos_egl_surface.h
+++ b/shell/platform/ohos/ohos_egl_surface.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef FLUTTER_SHELL_PLATFORM_OHOS_EGL_SURFACE_H_
diff --git a/shell/platform/ohos/ohos_environment_gl.cpp b/shell/platform/ohos/ohos_environment_gl.cpp
index b179e6a05aa5c15d4585c610c4db40cb1ae9f819..545b7037b2c9fcd2ed25f6948ff2a0b1be082974 100755
--- a/shell/platform/ohos/ohos_environment_gl.cpp
+++ b/shell/platform/ohos/ohos_environment_gl.cpp
@@ -1,18 +1,11 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
+
#include "flutter/shell/platform/ohos/ohos_environment_gl.h"
namespace flutter {
diff --git a/shell/platform/ohos/ohos_environment_gl.h b/shell/platform/ohos/ohos_environment_gl.h
index a2e925f61284b27471b703a6c903558758ac4c30..591a8bb57c37be1a329a7e6bc609834700aef218 100755
--- a/shell/platform/ohos/ohos_environment_gl.h
+++ b/shell/platform/ohos/ohos_environment_gl.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef FLUTTER_SHELL_PLATFORM_OHOS_ENVIRONMENT_GL_H_
diff --git a/shell/platform/ohos/ohos_external_texture_gl.cpp b/shell/platform/ohos/ohos_external_texture_gl.cpp
index b3c52bdceaa4ecc16b7cc3904f326e1c8a479a3b..df1112cfe6c230830b7175da79d7e759efbee038 100755
--- a/shell/platform/ohos/ohos_external_texture_gl.cpp
+++ b/shell/platform/ohos/ohos_external_texture_gl.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_external_texture_gl.cc originally written by
+ * Copyright (C) 2017 Chinmay Garde
+ *
*/
#include "ohos_external_texture_gl.h"
diff --git a/shell/platform/ohos/ohos_external_texture_gl.h b/shell/platform/ohos/ohos_external_texture_gl.h
index 8027094688493811e346847db0419f7331103c5f..eb95cfef14aafe468e3afaa84a76be77b4c7e699 100755
--- a/shell/platform/ohos/ohos_external_texture_gl.h
+++ b/shell/platform/ohos/ohos_external_texture_gl.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_external_texture_gl.h originally written by
+ * Copyright (C) 2017 Chinmay Garde
+ *
*/
#ifndef OHOS_EXTERNAL_TEXTURE_GL_H
diff --git a/shell/platform/ohos/ohos_image_generator.cpp b/shell/platform/ohos/ohos_image_generator.cpp
index 2256ca2a237876f7312f5557eb6bd13843533b10..cd3ad9f6710b8c1a89885a52170fb0876170f6b7 100755
--- a/shell/platform/ohos/ohos_image_generator.cpp
+++ b/shell/platform/ohos/ohos_image_generator.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_image_generator.cc originally written by
+ * Copyright (C) 2021 Brandon DeRosier
+ *
*/
#include "ohos_image_generator.h"
diff --git a/shell/platform/ohos/ohos_image_generator.h b/shell/platform/ohos/ohos_image_generator.h
index 74b38a70806437a81b6a34d0f435f27aed76b97b..00188e249e46618eafa4df2d0c4c24f4593cf333 100755
--- a/shell/platform/ohos/ohos_image_generator.h
+++ b/shell/platform/ohos/ohos_image_generator.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_image_generator.h originally written by
+ * Copyright (C) 2021 Brandon DeRosier
+ *
*/
#ifndef FLUTTER_IMAGE_GENERATOR_H
diff --git a/shell/platform/ohos/ohos_main.cpp b/shell/platform/ohos/ohos_main.cpp
index 6e5553f5cf1570f14a7d103da5bddbee7bc90c5a..3e13c39e09e0b3d067df79ed8d7d3ec4092247ac 100644
--- a/shell/platform/ohos/ohos_main.cpp
+++ b/shell/platform/ohos/ohos_main.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on flutter_main.cc originally written by
+ * Copyright (C) 2015 Adam Barth
+ *
*/
#include "flutter/shell/platform/ohos/ohos_main.h"
diff --git a/shell/platform/ohos/ohos_main.h b/shell/platform/ohos/ohos_main.h
index 3e8f7355977a4a51e4894bd076741a9dd8fa877b..48a572d1d190f325a8199b0da3bbc48bb542cedc 100644
--- a/shell/platform/ohos/ohos_main.h
+++ b/shell/platform/ohos/ohos_main.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on flutter_main.h originally written by
+ * Copyright (C) 2015 Adam Barth
+ *
*/
#ifndef __OHOS__MAIN__H
diff --git a/shell/platform/ohos/ohos_shell_holder.cpp b/shell/platform/ohos/ohos_shell_holder.cpp
index 980840cee1f963c3384a9d7c1f58f9767ba14f12..35970f42a18b4dd27d227f3c636abe8d378b8a63 100644
--- a/shell/platform/ohos/ohos_shell_holder.cpp
+++ b/shell/platform/ohos/ohos_shell_holder.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/ohos_shell_holder.h"
diff --git a/shell/platform/ohos/ohos_shell_holder.h b/shell/platform/ohos/ohos_shell_holder.h
index e18c7e88de7e21f9604ba51c5d8c80545ec42bd7..1fadd18a3d7d7ea05b7eb09c5412b7a1022a8d3c 100644
--- a/shell/platform/ohos/ohos_shell_holder.h
+++ b/shell/platform/ohos/ohos_shell_holder.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_SHELL_HOLDER_H
diff --git a/shell/platform/ohos/ohos_surface_gl_impeller.cpp b/shell/platform/ohos/ohos_surface_gl_impeller.cpp
index b50e8c8d7b6e812216114ea2e2af98041967a319..1363ef19c1f20fc89b988d99a4c9713230cc7870 100755
--- a/shell/platform/ohos/ohos_surface_gl_impeller.cpp
+++ b/shell/platform/ohos/ohos_surface_gl_impeller.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "ohos_surface_gl_impeller.h"
diff --git a/shell/platform/ohos/ohos_surface_gl_impeller.h b/shell/platform/ohos/ohos_surface_gl_impeller.h
index 87b2fa4bf601f51700c3c24c6829518f035cbec4..0fee28fc818ac41792125aedae88f799ee69f119 100755
--- a/shell/platform/ohos/ohos_surface_gl_impeller.h
+++ b/shell/platform/ohos/ohos_surface_gl_impeller.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_SURFACE_GL_IMPELLER_H
diff --git a/shell/platform/ohos/ohos_surface_gl_skia.cpp b/shell/platform/ohos/ohos_surface_gl_skia.cpp
index 87538db6e81c4e1427081a6ce8cbbc62ad8c730b..729817992539dc4ecc6c57fd0746d2c74aa69fd6 100755
--- a/shell/platform/ohos/ohos_surface_gl_skia.cpp
+++ b/shell/platform/ohos/ohos_surface_gl_skia.cpp
@@ -1,18 +1,11 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
+
#include "flutter/shell/platform/ohos/ohos_surface_gl_skia.h"
#include
diff --git a/shell/platform/ohos/ohos_surface_gl_skia.h b/shell/platform/ohos/ohos_surface_gl_skia.h
index 4a99529433248f7f0a6677120d5e5b61cb896c66..50a90c713df8e98a9ddcf27544980c27788a92ba 100755
--- a/shell/platform/ohos/ohos_surface_gl_skia.h
+++ b/shell/platform/ohos/ohos_surface_gl_skia.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_SURFACE_GL_SKIA_H
diff --git a/shell/platform/ohos/ohos_surface_software.cpp b/shell/platform/ohos/ohos_surface_software.cpp
index 5a3fb5ca3e1f367a0e87294015e09a0854e88ce5..8e3107b0093ea5ee8f5dff418f8e9ac37fa72666 100644
--- a/shell/platform/ohos/ohos_surface_software.cpp
+++ b/shell/platform/ohos/ohos_surface_software.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_surface_software.cc originally written by
+ * Copyright (C) 2017 Gary Qian
+ *
*/
#include "flutter/shell/platform/ohos/ohos_surface_software.h"
diff --git a/shell/platform/ohos/ohos_surface_software.h b/shell/platform/ohos/ohos_surface_software.h
index a0dfd8ae0044bac6d03d3b523453a3c91beae9aa..1aafcbc98c668809bfa12ce9a9638a775d551443 100644
--- a/shell/platform/ohos/ohos_surface_software.h
+++ b/shell/platform/ohos/ohos_surface_software.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef OHOS_SURFACE_SOFTWARE_H
diff --git a/shell/platform/ohos/ohos_surface_vulkan_impeller.cpp b/shell/platform/ohos/ohos_surface_vulkan_impeller.cpp
index 3e6a3937fc39c33d7ec8526253fb0b7dc7883f1e..e3cca9670fca0ba097f64ec3d3368f81b8ef8a31 100755
--- a/shell/platform/ohos/ohos_surface_vulkan_impeller.cpp
+++ b/shell/platform/ohos/ohos_surface_vulkan_impeller.cpp
@@ -1,18 +1,11 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
+
#include "ohos_surface_vulkan_impeller.h"
#include
diff --git a/shell/platform/ohos/ohos_surface_vulkan_impeller.h b/shell/platform/ohos/ohos_surface_vulkan_impeller.h
index b5bbb42e7a123c0804503a450906210f26edfdee..f7df35895658b60230bbe80e5ee4746cd83569a8 100755
--- a/shell/platform/ohos/ohos_surface_vulkan_impeller.h
+++ b/shell/platform/ohos/ohos_surface_vulkan_impeller.h
@@ -1,18 +1,11 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
+
#ifndef OHOS_SURFACE_VULKAN_IMPELLER_H
#define OHOS_SURFACE_VULKAN_IMPELLER_H
diff --git a/shell/platform/ohos/platform_message_handler_ohos.cpp b/shell/platform/ohos/platform_message_handler_ohos.cpp
index 111334f721368bebc5bea4aed8d4b0f4392790f6..8ff1eaa2fd8428374083fdae65135a05a9e65e1b 100644
--- a/shell/platform/ohos/platform_message_handler_ohos.cpp
+++ b/shell/platform/ohos/platform_message_handler_ohos.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on platform_message_handler_android.cc originally written by
+ * Copyright (C) 2021 gaaclarke <30870216+gaaclarke@users.noreply.github.com>
+ *
*/
#include "flutter/shell/platform/ohos/platform_message_handler_ohos.h"
diff --git a/shell/platform/ohos/platform_message_handler_ohos.h b/shell/platform/ohos/platform_message_handler_ohos.h
index 5536f269015b8f3dfe29b88ccc1c09d628a96f67..6670793b52dd9ca3f3edbc882927ae741aad8880 100644
--- a/shell/platform/ohos/platform_message_handler_ohos.h
+++ b/shell/platform/ohos/platform_message_handler_ohos.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef PLATFORM_MESSAGE_HANDLER_OHOS_H
diff --git a/shell/platform/ohos/platform_message_response_ohos.cpp b/shell/platform/ohos/platform_message_response_ohos.cpp
index 75954cd0aceffc90a03028c4963b67f23e4d33bd..f663f53b6d2e1b867f6d9d8f58e9513a7a53c160 100644
--- a/shell/platform/ohos/platform_message_response_ohos.cpp
+++ b/shell/platform/ohos/platform_message_response_ohos.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/platform_message_response_ohos.h"
diff --git a/shell/platform/ohos/platform_message_response_ohos.h b/shell/platform/ohos/platform_message_response_ohos.h
index eaf144f10cb5080f3eddc73b74dea47f1c542567..ad38f75f0b4e81aa0903bd365bd062fa40344cb8 100644
--- a/shell/platform/ohos/platform_message_response_ohos.h
+++ b/shell/platform/ohos/platform_message_response_ohos.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef PLATFORM_MESSAGE_REPONSE_OHOS_H
diff --git a/shell/platform/ohos/platform_view_ohos.cpp b/shell/platform/ohos/platform_view_ohos.cpp
index 5aa79c30c77dc0b5ab971a4351ca5ff00ccb5519..bb48197452f0e66512baac3436248166f26001e8 100644
--- a/shell/platform/ohos/platform_view_ohos.cpp
+++ b/shell/platform/ohos/platform_view_ohos.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on platform_view_android.cc originally written by
+ * Copyright (C) 2015 Adam Barth
+ *
*/
#include "flutter/shell/platform/ohos/platform_view_ohos.h"
diff --git a/shell/platform/ohos/platform_view_ohos.h b/shell/platform/ohos/platform_view_ohos.h
index 031bed75227569cf4aef35605e82f559ea5b4d3c..8082227baf764b7521e0b94cc60b3025bc869bf6 100644
--- a/shell/platform/ohos/platform_view_ohos.h
+++ b/shell/platform/ohos/platform_view_ohos.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on platform_view_android.h originally written by
+ * Copyright (C) 2015 Chinmay Garde
+ *
*/
#ifndef OHOS_PLATFORM_VIEW_H
diff --git a/shell/platform/ohos/platform_view_ohos_delegate.cpp b/shell/platform/ohos/platform_view_ohos_delegate.cpp
index ab423233dc76315ff4bae7de22f59d09053f1250..07746a4c7d1aba0112210ff3706b8d17dbcebf40 100644
--- a/shell/platform/ohos/platform_view_ohos_delegate.cpp
+++ b/shell/platform/ohos/platform_view_ohos_delegate.cpp
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#include "flutter/shell/platform/ohos/platform_view_ohos_delegate.h"
diff --git a/shell/platform/ohos/platform_view_ohos_delegate.h b/shell/platform/ohos/platform_view_ohos_delegate.h
index 5b5fa634f01a7a025b2e85c5b32e27dbc19d0583..cc586263dcbd8d86c7e4ee908c94adec3969b8b2 100644
--- a/shell/platform/ohos/platform_view_ohos_delegate.h
+++ b/shell/platform/ohos/platform_view_ohos_delegate.h
@@ -1,16 +1,8 @@
/*
- * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Copyright 2013 The Flutter Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
*/
#ifndef SHELL_PLATFORM_OHOS_PLATFORM_VIEW_OHOS_DELEGATE
diff --git a/shell/platform/ohos/surface/ohos_native_window.cpp b/shell/platform/ohos/surface/ohos_native_window.cpp
index 4e256eb7d67ecfaec08daad9bef4e5929c9767bc..1440b710be4a5f6c1fa578a9d8d0d6e50888da35 100644
--- a/shell/platform/ohos/surface/ohos_native_window.cpp
+++ b/shell/platform/ohos/surface/ohos_native_window.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_native_window.cc originally written by
+ * Copyright (C) 2016 Chinmay Garde
+ *
*/
#include "flutter/shell/platform/ohos/surface/ohos_native_window.h"
diff --git a/shell/platform/ohos/surface/ohos_native_window.h b/shell/platform/ohos/surface/ohos_native_window.h
index 29ecfee97a64e0e23663778039505be0fd342cb7..157b735c7100cf9d3cb2d3d4526b4bcbbdffd6eb 100644
--- a/shell/platform/ohos/surface/ohos_native_window.h
+++ b/shell/platform/ohos/surface/ohos_native_window.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_native_window.h originally written by
+ * Copyright (C) 2016 Chinmay Garde
+ *
*/
#ifndef OHOS_NATIVE_WINDOW_H
diff --git a/shell/platform/ohos/surface/ohos_snapshot_surface_producer.cpp b/shell/platform/ohos/surface/ohos_snapshot_surface_producer.cpp
index 21d0d333f3063a4761cdf3f9b4ad6a506102788b..a4528f814ff202475c920d7363e1cae0d3421161 100755
--- a/shell/platform/ohos/surface/ohos_snapshot_surface_producer.cpp
+++ b/shell/platform/ohos/surface/ohos_snapshot_surface_producer.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on snapshot_surface_producer.cc originally written by
+ * Copyright (C) 2021 Dan Field
+ *
*/
#include "flutter/shell/platform/ohos/surface/ohos_snapshot_surface_producer.h"
diff --git a/shell/platform/ohos/surface/ohos_snapshot_surface_producer.h b/shell/platform/ohos/surface/ohos_snapshot_surface_producer.h
index ba890b03587156759c0e33dd3436aaf0701e5db9..4cac17d5feff9eb04f9645baf70bf0365d37ab2c 100755
--- a/shell/platform/ohos/surface/ohos_snapshot_surface_producer.h
+++ b/shell/platform/ohos/surface/ohos_snapshot_surface_producer.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on snapshot_surface_producer.h originally written by
+ * Copyright (C) 2021 Dan Field
+ *
*/
#ifndef OHOS_SNAPSHOT_SURFACE_PRODUCER_H
diff --git a/shell/platform/ohos/surface/ohos_surface.cpp b/shell/platform/ohos/surface/ohos_surface.cpp
index 9d887f3d894704583da1b92b9eb5ea2f6f12a8fb..9d3fb32e272a2f88ae48212151c01c9fc9e33eab 100644
--- a/shell/platform/ohos/surface/ohos_surface.cpp
+++ b/shell/platform/ohos/surface/ohos_surface.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_surface.cc originally written by
+ * Copyright (C) 2017 Chinmay Garde
+ *
*/
#include "flutter/shell/platform/ohos/surface/ohos_surface.h"
diff --git a/shell/platform/ohos/surface/ohos_surface.h b/shell/platform/ohos/surface/ohos_surface.h
index b87757d5f5d7d6b2d55118ee93ff445b1cd7d346..b76b928bf471e56d321d1ea583b16c8cd9ca55e8 100644
--- a/shell/platform/ohos/surface/ohos_surface.h
+++ b/shell/platform/ohos/surface/ohos_surface.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on android_surface.h originally written by
+ * Copyright (C) 2017 Chinmay Garde
+ *
*/
#ifndef OHOS_SURFACE_H
diff --git a/shell/platform/ohos/testing/ohos_assert_provider_unittests.cpp b/shell/platform/ohos/testing/ohos_assert_provider_unittests.cpp
index c9a810e5daa0a3a8f43c6007e51e80020f07d87d..db85a67555eb2dc4ff9a95e1a8ac684d20381336 100644
--- a/shell/platform/ohos/testing/ohos_assert_provider_unittests.cpp
+++ b/shell/platform/ohos/testing/ohos_assert_provider_unittests.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on apk_asset_provider_unittests.cc originally written by
+ * Copyright (C) 2022 ColdPaleLight
+ *
*/
#include
#include
diff --git a/shell/platform/ohos/vsync_waiter_ohos.cpp b/shell/platform/ohos/vsync_waiter_ohos.cpp
index b1a201941332123f4b6a3459be914a8edba59acc..acdbb3855b3eb77f7d4ad9f0cce1901c7111e826 100644
--- a/shell/platform/ohos/vsync_waiter_ohos.cpp
+++ b/shell/platform/ohos/vsync_waiter_ohos.cpp
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on vsync_waiter_android.cc originally written by
+ * Copyright (C) 2016 Adam Barth
+ *
*/
#include "flutter/shell/platform/ohos/vsync_waiter_ohos.h"
diff --git a/shell/platform/ohos/vsync_waiter_ohos.h b/shell/platform/ohos/vsync_waiter_ohos.h
index 51f0ab05bddcc5523ce791c04606227cbde09b4a..97eba567798de71019c9c5b33c895f676d9faaf7 100644
--- a/shell/platform/ohos/vsync_waiter_ohos.h
+++ b/shell/platform/ohos/vsync_waiter_ohos.h
@@ -11,6 +11,10 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * Based on vsync_waiter_android.h originally written by
+ * Copyright (C) 2016 Adam Barth
+ *
*/
#ifndef VSYNC_WAITER_OHOS_H