1799b5ee9Sopenharmony_ci/* 2799b5ee9Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3799b5ee9Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4799b5ee9Sopenharmony_ci * you may not use this file except in compliance with the License. 5799b5ee9Sopenharmony_ci * You may obtain a copy of the License at 6799b5ee9Sopenharmony_ci * 7799b5ee9Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8799b5ee9Sopenharmony_ci * 9799b5ee9Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10799b5ee9Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11799b5ee9Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12799b5ee9Sopenharmony_ci * See the License for the specific language governing permissions and 13799b5ee9Sopenharmony_ci * limitations under the License. 14799b5ee9Sopenharmony_ci */ 15799b5ee9Sopenharmony_ci 16799b5ee9Sopenharmony_ci#if defined(UI_TEST) || defined(ABILITY_TEST) 17799b5ee9Sopenharmony_ci#include "ohos_init.h" 18799b5ee9Sopenharmony_ci#include "ui_adapter.h" 19799b5ee9Sopenharmony_ci#if defined(UI_TEST) 20799b5ee9Sopenharmony_ci#include "ui_test.h" 21799b5ee9Sopenharmony_ci#include "sample_ui.h" 22799b5ee9Sopenharmony_ci#elif defined(ABILITY_TEST) 23799b5ee9Sopenharmony_ci#include "ability_test.h" 24799b5ee9Sopenharmony_ci#endif 25799b5ee9Sopenharmony_ci 26799b5ee9Sopenharmony_ci/* ui app entry */ 27799b5ee9Sopenharmony_civoid RunApp(void) 28799b5ee9Sopenharmony_ci{ 29799b5ee9Sopenharmony_ci#ifdef UI_TEST 30799b5ee9Sopenharmony_ci AnimatorDemoStart(); 31799b5ee9Sopenharmony_ci#elif defined(ABILITY_TEST) 32799b5ee9Sopenharmony_ci StartJSApp(); 33799b5ee9Sopenharmony_ci#endif 34799b5ee9Sopenharmony_ci} 35799b5ee9Sopenharmony_ci 36799b5ee9Sopenharmony_civoid AppEntry(void) 37799b5ee9Sopenharmony_ci{ 38799b5ee9Sopenharmony_ci UiAdapterRun(); 39799b5ee9Sopenharmony_ci} 40799b5ee9Sopenharmony_ci 41799b5ee9Sopenharmony_ciAPP_FEATURE_INIT(AppEntry); 42799b5ee9Sopenharmony_ci#endif