From 7813a6d6aaa719cd2dd84e201ffc894e8b98e30a Mon Sep 17 00:00:00 2001 From: 0000248716-lijiaxiao Date: Thu, 8 Jul 2021 11:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yuyh/bankcardformat/MainAbility.java | 20 +++++++++++++++++++ .../yuyh/bankcardformat/MyApplication.java | 20 +++++++++++++++++++ .../slice/MainAbilitySlice.java | 20 +++++++++++++++++++ .../yuyh/bankcardformat/ExampleOhosTest.java | 1 - 4 files changed, 60 insertions(+), 1 deletion(-) diff --git a/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java b/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java index ef2c6a0..33176d2 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device 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 an 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. + */ package com.yuyh.bankcardformat; @@ -5,6 +19,12 @@ import com.yuyh.bankcardformat.slice.MainAbilitySlice; import ohos.aafwk.ability.Ability; import ohos.aafwk.content.Intent; +/** + * MainAbility + * + * @author ljx + * @since 2021-05-08 + */ public class MainAbility extends Ability { @Override diff --git a/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java b/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java index a16dd39..a6a02e8 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java @@ -1,8 +1,28 @@ +/* + * Copyright (C) 2021 Huawei Device 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 an 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. + */ package com.yuyh.bankcardformat; import ohos.aafwk.ability.AbilityPackage; +/** + * MyApplication + * + * @author ljx + * @since 2021-05-08 + */ public class MyApplication extends AbilityPackage { @Override public void onInitialize() { diff --git a/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java b/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java index 8ddc24c..cfbac57 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device 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 an 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. + */ package com.yuyh.bankcardformat.slice; @@ -8,6 +22,12 @@ import ohos.aafwk.ability.AbilitySlice; import ohos.aafwk.content.Intent; import ohos.agp.components.Text; +/** + * MainAbilitySlice + * + * @author ljx + * @since 2021-05-08 + */ public class MainAbilitySlice extends AbilitySlice { private BandCardEditText editText; diff --git a/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java b/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java index 21c0b90..8ce576d 100644 --- a/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java +++ b/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java @@ -18,7 +18,6 @@ package com.yuyh.bankcardformat; import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; import org.junit.Test; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import static org.junit.Assert.assertEquals; -- Gitee