diff --git a/OAT.xml b/OAT.xml
index 73e89e016ad10a69a0e5224960aab8240010f695..fdee38d4116bae91eeb46e3ad1c93f593b081a0d 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -25,13 +25,21 @@
desc=""
name="projectPolicy">
+
@@ -39,67 +47,57 @@
+
-
-
+
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
diff --git a/README.OpenSource b/README.OpenSource
index a6e9e12cb2b0da1612667319cdb53d7ef178e47b..833bbd617fb0ada8fb1e32379eb767f1bbf0510a 100644
--- a/README.OpenSource
+++ b/README.OpenSource
@@ -3,7 +3,7 @@
"Name": "pdf_viewer_plugin",
"License": "MIT License",
"License File": "LICENSE",
- "Version Number": "25f3971391be1800b444ae3ba6e595513354c7b3",
+ "Version Number": "2.0.1",
"Owner": "george.lihui@huawei.com",
"Upstream URL": "https://github.com/lubritto/pdf_viewer_plugin",
"Description": "A Flutter plugin for IOS and Android providing a simple way to display local file PDFs (enter to see some gifs)."
diff --git a/example/ohos/entry/build-profile.json5 b/example/ohos/entry/build-profile.json5
index 633d360fbc91a3186a23b66ab71b27e5618944cb..13c5eda6e6a3dae913ec5c5c4d60ea3ac954f205 100644
--- a/example/ohos/entry/build-profile.json5
+++ b/example/ohos/entry/build-profile.json5
@@ -1,18 +1,3 @@
-/*
-* 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
-*
-* 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.
-*/
-
{
"apiType": 'stageMode',
"buildOption": {
@@ -21,9 +6,6 @@
{
"name": "default",
"runtimeOS": "HarmonyOS"
- },
- {
- "name": "ohosTest",
}
]
}
\ No newline at end of file
diff --git a/example/ohos/entry/hvigorfile.ts b/example/ohos/entry/hvigorfile.ts
index 5bda56eeac3f79703639db986e2faaa433b0e48c..80e4ec5b81689f238c34614b167a0b9e9c83e8d9 100644
--- a/example/ohos/entry/hvigorfile.ts
+++ b/example/ohos/entry/hvigorfile.ts
@@ -1,17 +1,2 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
export { hapTasks } from '@ohos/hvigor-ohos-plugin';
diff --git a/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets
index b5888ed9002dd328f9abd3141ee3e63e88b40d0f..ed133c65aa63bcf9ddb9cbe05bc1ee4aabb29adc 100644
--- a/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets
+++ b/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos';
diff --git a/example/ohos/entry/src/main/ets/pages/Index.ets b/example/ohos/entry/src/main/ets/pages/Index.ets
index 5d9647743f4651f3dab7aa3076ed0707b207b436..a114246ac37aec210a97c22e2cf903e286acdac8 100644
--- a/example/ohos/entry/src/main/ets/pages/Index.ets
+++ b/example/ohos/entry/src/main/ets/pages/Index.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import common from '@ohos.app.ability.common';
diff --git a/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets
deleted file mode 100644
index bdb2d4b3479e7c4b3d4ffb539abc734470c57f32..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
-import hilog from '@ohos.hilog';
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
-
-export default function abilityTest() {
- describe('ActsAbilityTest', function () {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(function () {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- })
- beforeEach(function () {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- })
- afterEach(function () {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- })
- afterAll(function () {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- })
- it('assertContain',0, function () {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
- let a = 'abc'
- let b = 'b'
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b)
- expect(a).assertEqual(a)
- })
- })
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/ets/test/List.test.ets b/example/ohos/entry/src/ohosTest/ets/test/List.test.ets
deleted file mode 100644
index 5ed99383f79bb67de7472f356de5b0421fa26e71..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/ets/test/List.test.ets
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
-import abilityTest from './Ability.test'
-
-export default function testsuite() {
- abilityTest()
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets
deleted file mode 100644
index 465211ee2e66f8b16d8c28881acc0f534df700e5..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
-import UIAbility from '@ohos.app.ability.UIAbility';
-import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
-import hilog from '@ohos.hilog';
-import { Hypium } from '@ohos/hypium';
-import testsuite from '../test/List.test';
-import window from '@ohos.window';
-
-export default class TestAbility extends UIAbility {
- onCreate(want, launchParam) {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onCreate');
- hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? '');
- hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:'+ JSON.stringify(launchParam) ?? '');
- var abilityDelegator: any
- abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
- var abilityDelegatorArguments: any
- abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
- hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!');
- Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
- }
-
- onDestroy() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onDestroy');
- }
-
- onWindowStageCreate(windowStage: window.WindowStage) {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate');
- windowStage.loadContent('testability/pages/Index', (err, data) => {
- if (err.code) {
- hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
- return;
- }
- hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s',
- JSON.stringify(data) ?? '');
- });
- }
-
- onWindowStageDestroy() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageDestroy');
- }
-
- onForeground() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onForeground');
- }
-
- onBackground() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onBackground');
- }
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets
deleted file mode 100644
index bdf1e5f905bcacd6a73af7709c41d4a79d41b170..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
-import hilog from '@ohos.hilog';
-
-@Entry
-@Component
-struct Index {
- aboutToAppear() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility index aboutToAppear');
- }
- @State message: string = 'Hello World'
- build() {
- Row() {
- Column() {
- Text(this.message)
- .fontSize(50)
- .fontWeight(FontWeight.Bold)
- Button() {
- Text('next page')
- .fontSize(20)
- .fontWeight(FontWeight.Bold)
- }.type(ButtonType.Capsule)
- .margin({
- top: 20
- })
- .backgroundColor('#0D9FFB')
- .width('35%')
- .height('5%')
- .onClick(()=>{
- })
- }
- .width('100%')
- }
- .height('100%')
- }
- }
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
deleted file mode 100644
index 58d9c312f08e7c9ac01e4d6f2d0a33ddc6188ed9..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
-import hilog from '@ohos.hilog';
-import TestRunner from '@ohos.application.testRunner';
-import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
-
-var abilityDelegator = undefined
-var abilityDelegatorArguments = undefined
-
-async function onAbilityCreateCallback() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback');
-}
-
-async function addAbilityMonitorCallback(err: any) {
- hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? '');
-}
-
-export default class OpenHarmonyTestRunner implements TestRunner {
- constructor() {
- }
-
- onPrepare() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare ');
- }
-
- async onRun() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run');
- abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
- abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
- var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility'
- let lMonitor = {
- abilityName: testAbilityName,
- onAbilityCreate: onAbilityCreateCallback,
- };
- abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
- var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName
- var debug = abilityDelegatorArguments.parameters['-D']
- if (debug == 'true')
- {
- cmd += ' -D'
- }
- hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd);
- abilityDelegator.executeShellCommand(cmd,
- (err: any, d: any) => {
- hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? '');
- hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? '');
- hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? '');
- })
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end');
- }
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/module.json5 b/example/ohos/entry/src/ohosTest/module.json5
deleted file mode 100644
index fab77ce2e0c61e3ad010bab5b27ccbd15f9a8c96..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/module.json5
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-* 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
-*
-* 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.
-*/
-
-{
- "module": {
- "name": "entry_test",
- "type": "feature",
- "description": "$string:module_test_desc",
- "mainElement": "TestAbility",
- "deviceTypes": [
- "phone"
- ],
- "deliveryWithInstall": true,
- "installationFree": false,
- "pages": "$profile:test_pages",
- "abilities": [
- {
- "name": "TestAbility",
- "srcEntry": "./ets/testability/TestAbility.ets",
- "description": "$string:TestAbility_desc",
- "icon": "$media:icon",
- "label": "$string:TestAbility_label",
- "exported": true,
- "startWindowIcon": "$media:icon",
- "startWindowBackground": "$color:start_window_background",
- "skills": [
- {
- "actions": [
- "action.system.home"
- ],
- "entities": [
- "entity.system.home"
- ]
- }
- ]
- }
- ]
- }
-}
diff --git a/example/ohos/entry/src/ohosTest/resources/base/element/color.json b/example/ohos/entry/src/ohosTest/resources/base/element/color.json
deleted file mode 100644
index 3c712962da3c2751c2b9ddb53559afcbd2b54a02..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/resources/base/element/color.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "color": [
- {
- "name": "start_window_background",
- "value": "#FFFFFF"
- }
- ]
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/resources/base/element/string.json b/example/ohos/entry/src/ohosTest/resources/base/element/string.json
deleted file mode 100644
index 65d8fa5a7cf54aa3943dcd0214f58d1771bc1f6c..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/resources/base/element/string.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "string": [
- {
- "name": "module_test_desc",
- "value": "test ability description"
- },
- {
- "name": "TestAbility_desc",
- "value": "the test ability"
- },
- {
- "name": "TestAbility_label",
- "value": "test label"
- }
- ]
-}
\ No newline at end of file
diff --git a/example/ohos/entry/src/ohosTest/resources/base/media/icon.png b/example/ohos/entry/src/ohosTest/resources/base/media/icon.png
deleted file mode 100644
index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000
Binary files a/example/ohos/entry/src/ohosTest/resources/base/media/icon.png and /dev/null differ
diff --git a/example/ohos/entry/src/ohosTest/resources/base/profile/test_pages.json b/example/ohos/entry/src/ohosTest/resources/base/profile/test_pages.json
deleted file mode 100644
index b7e7343cacb32ce982a45e76daad86e435e054fe..0000000000000000000000000000000000000000
--- a/example/ohos/entry/src/ohosTest/resources/base/profile/test_pages.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "src": [
- "testability/pages/Index"
- ]
-}
diff --git a/example/ohos/hvigor/hvigor-config.json5 b/example/ohos/hvigor/hvigor-config.json5
index 541ba35711b75986f9295410ee38fdb8f2572878..5ed0b910cce4b7e776973a892bf714f89085978e 100644
--- a/example/ohos/hvigor/hvigor-config.json5
+++ b/example/ohos/hvigor/hvigor-config.json5
@@ -1,18 +1,3 @@
-/*
-* 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
-*
-* 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.
-*/
-
{
"modelVersion": "5.0.0",
"dependencies": {
diff --git a/example/ohos/hvigorfile.ts b/example/ohos/hvigorfile.ts
index 38626e385a5b47dd3cba0e1e83c614f091b7cc9e..0a7e3d8d74177458336fa2f524032b873cbe9552 100644
--- a/example/ohos/hvigorfile.ts
+++ b/example/ohos/hvigorfile.ts
@@ -1,18 +1,3 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
import { appTasks } from '@ohos/hvigor-ohos-plugin';
export default {
diff --git a/lib/src/ohos_viewers/ohos_pdf_viewer.dart b/lib/src/ohos_viewers/ohos_pdf_viewer.dart
index 45ae8020eb1ede0917d22cd2a04376577f9bd249..bcdebb5f59d27e668dc9671407f6bcac797e7b5f 100644
--- a/lib/src/ohos_viewers/ohos_pdf_viewer.dart
+++ b/lib/src/ohos_viewers/ohos_pdf_viewer.dart
@@ -1,18 +1,3 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
diff --git a/ohos/Index.ets b/ohos/Index.ets
index 3bd75c59be4454331c8933a2b165400b3aa3577b..07a0360959b02c645d66795f7c7165166eea322f 100644
--- a/ohos/Index.ets
+++ b/ohos/Index.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import PdfViewerPlugin from './src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerPlugin'
diff --git a/ohos/hvigorfile.ts b/ohos/hvigorfile.ts
index 12a327db0aeeb9462eb1dc098f5e808df40e3dce..21dcd3577a644ce8e5b26b08e40a27965a0d1503 100644
--- a/ohos/hvigorfile.ts
+++ b/ohos/hvigorfile.ts
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import { harTasks } from '@ohos/hvigor-ohos-plugin';
diff --git a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewer.ets b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewer.ets
index c6c92487309157e45eff311dc3be1a0a891f9991..1f4414036b2d5a346e67b2e9b51815864a80d3ca 100644
--- a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewer.ets
+++ b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewer.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import { MethodCall, MethodCallHandler, MethodChannel, MethodResult } from '@ohos/flutter_ohos';
diff --git a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerFactory.ets b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerFactory.ets
index 362d8733f49ac10f54750f54f079f6f7c253595a..7b802505f9182b5a1994ac91a347547727475b92 100644
--- a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerFactory.ets
+++ b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerFactory.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import {
diff --git a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerPlugin.ets b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerPlugin.ets
index 531ff46f6c13d7831d62b8e33dcf11e818db9815..84cb01a121ee45ecf5cce9cd29c1c37d662f4a88 100644
--- a/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerPlugin.ets
+++ b/ohos/src/main/ets/dev/britto/pdf_viewer_plugin/PdfViewerPlugin.ets
@@ -1,16 +1,24 @@
-/*
+/* MIT License
+*
* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
+* All rights reserved.
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
*/
import { BinaryMessenger, FlutterPlugin, FlutterPluginBinding, StandardMessageCodec } from '@ohos/flutter_ohos';
diff --git a/ohos/src/test/List.test.ets b/ohos/src/test/List.test.ets
index e3f1904373eb8182a07290c5b9a1287d1a9dd219..bb5b5c3731e283dd507c847560ee59bde477bbc7 100644
--- a/ohos/src/test/List.test.ets
+++ b/ohos/src/test/List.test.ets
@@ -1,18 +1,3 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
import localUnitTest from './LocalUnit.test';
export default function testsuite() {
diff --git a/ohos/src/test/LocalUnit.test.ets b/ohos/src/test/LocalUnit.test.ets
index f78ec2b91c9681787536ecb2d141657d6d063381..ed22d4dca5aebd6d638755a5ec15df57dc3c1ac0 100644
--- a/ohos/src/test/LocalUnit.test.ets
+++ b/ohos/src/test/LocalUnit.test.ets
@@ -1,18 +1,3 @@
-/*
-* Copyright (c) 2024 SwanLink (Jiangsu) Technology 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
-*
-* 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.
-*/
-
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
export default function localUnitTest() {