From 47952a45fc7e20ddfe41da52e9f7b832052f667d Mon Sep 17 00:00:00 2001 From: shao_junye Date: Fri, 20 May 2022 14:34:02 +0800 Subject: [PATCH] fix CI bug Signed-off-by: shao_junye --- OAT.xml | 21 ++++++++++++++++++ README.md | 2 +- entry/src/main/ets/MainAbility/app.ets | 20 +++++++++++++++++ entry/src/ohosTest/ets/TestAbility/app.ets | 20 +++++++++++++++++ .../ohosTest/ets/TestAbility/pages/index.ets | 20 +++++++++++++++++ entry/src/ohosTest/ets/test/Ability.test.ets | 20 +++++++++++++++++ entry/src/ohosTest/ets/test/List.test.ets | 20 +++++++++++++++++ art/demo.gif => screenshot/screenshot.gif | Bin 8 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 OAT.xml rename art/demo.gif => screenshot/screenshot.gif (100%) diff --git a/OAT.xml b/OAT.xml new file mode 100644 index 0000000..0608c55 --- /dev/null +++ b/OAT.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index f0c8269..98d66fb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > 支持按照二维码Model 2标准对所有40个版本(尺寸)和所有4个纠错级别进行编码。 > 输出格式:QR符号的原始模块/像素。 -![](art/demo.gif) +![](screenshot/screenshot.gif) ## 下载安装 ```shell diff --git a/entry/src/main/ets/MainAbility/app.ets b/entry/src/main/ets/MainAbility/app.ets index b7a0995..3d1b7d7 100644 --- a/entry/src/main/ets/MainAbility/app.ets +++ b/entry/src/main/ets/MainAbility/app.ets @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * + * 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. + */ + export default { onCreate() { console.info('Application onCreate') diff --git a/entry/src/ohosTest/ets/TestAbility/app.ets b/entry/src/ohosTest/ets/TestAbility/app.ets index 4db82cf..c070baf 100644 --- a/entry/src/ohosTest/ets/TestAbility/app.ets +++ b/entry/src/ohosTest/ets/TestAbility/app.ets @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * + * 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 AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import { Hypium } from 'hypium/index' import testsuite from '../test/List.test' diff --git a/entry/src/ohosTest/ets/TestAbility/pages/index.ets b/entry/src/ohosTest/ets/TestAbility/pages/index.ets index 539eb9a..eab20d2 100644 --- a/entry/src/ohosTest/ets/TestAbility/pages/index.ets +++ b/entry/src/ohosTest/ets/TestAbility/pages/index.ets @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * + * 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 router from '@system.router'; @Entry diff --git a/entry/src/ohosTest/ets/test/Ability.test.ets b/entry/src/ohosTest/ets/test/Ability.test.ets index 1236e0c..3282aba 100644 --- a/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * + * 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' export default function abilityTest() { diff --git a/entry/src/ohosTest/ets/test/List.test.ets b/entry/src/ohosTest/ets/test/List.test.ets index d766fe2..719616f 100644 --- a/entry/src/ohosTest/ets/test/List.test.ets +++ b/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * + * 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 abilityTest from './Ability.test' export default function testsuite() { diff --git a/art/demo.gif b/screenshot/screenshot.gif similarity index 100% rename from art/demo.gif rename to screenshot/screenshot.gif -- Gitee