add build kits config

Signed-off-by: wangcaoyu1 <wangcaoyu@huawei.com>
This commit is contained in:
wangcaoyu1 2023-12-23 16:16:51 +08:00
parent a5b6f50121
commit d650ccfcca
50 changed files with 489 additions and 476 deletions

View File

@ -39,6 +39,17 @@ template("ohos_copy_internal") {
}
}
ohos_copy("bundle_kits") {
if (sdk_build_public || product_name == "ohos-sdk") {
sources = [ "//out/sdk-public/public_interface/sdk-js/kits" ]
} else {
sources = [ "//interface/sdk-js/kits" ]
}
outputs = [ target_out_dir + "/$target_name" ]
module_source_dir = target_out_dir + "/$target_name"
module_install_name = ""
}
ohos_copy_internal("ets_internal_api") {
iv_input = "//interface/sdk-js/api/@internal/ets"
}

View File

@ -1,102 +0,0 @@
/*
* Copyright (c) 2022-2023 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 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 ability from '../@ohos.ability.ability';
import { ErrorCode } from '../@ohos.ability.errorCode';
import featureAbility from '../@ohos.ability.featureAbility';
import particleAbility from '../@ohos.ability.particleAbility';
import abilityAccessCtrl, {
Context, PermissionRequestResult, Permissions
} from '../@ohos.abilityAccessCtrl';
import Ability from '../@ohos.app.ability.Ability';
import AbilityConstant from '../@ohos.app.ability.AbilityConstant';
import AbilityLifecycleCallback from '../@ohos.app.ability.AbilityLifecycleCallback';
import abilityManager from '../@ohos.app.ability.abilityManager';
import AbilityStage from '../@ohos.app.ability.AbilityStage';
import ActionExtensionAbility from '../@ohos.app.ability.ActionExtensionAbility';
import ApplicationStateChangeCallback from '../@ohos.app.ability.ApplicationStateChangeCallback';
import appManager from '../@ohos.app.ability.appManager';
import appRecovery from '../@ohos.app.ability.appRecovery';
import AutoFillExtensionAbility from '../@ohos.app.ability.AutoFillExtensionAbility';
import autoFillManager from '../@ohos.app.ability.autoFillManager';
import autoStartupManager from '../@ohos.app.ability.autoStartupManager';
import ChildProcess from '../@ohos.app.ability.ChildProcess';
import childProcessManager from '../@ohos.app.ability.childProcessManager';
import common from '../@ohos.app.ability.common';
import { Configuration } from '../@ohos.app.ability.Configuration';
import ConfigurationConstant from '../@ohos.app.ability.ConfigurationConstant';
import contextConstant from '../@ohos.app.ability.contextConstant';
import dataUriUtils from '../@ohos.app.ability.dataUriUtils';
import dialogRequest from '../@ohos.app.ability.dialogRequest';
import dialogSession from '../@ohos.app.ability.dialogSession';
import EnvironmentCallback from '../@ohos.app.ability.EnvironmentCallback';
import errorManager from '../@ohos.app.ability.errorManager';
import ExtensionAbility from '../@ohos.app.ability.ExtensionAbility';
import insightIntent from '../@ohos.app.ability.insightIntent';
import InsightIntentContext from '../@ohos.app.ability.InsightIntentContext';
import insightIntentDriver from '../@ohos.app.ability.insightIntentDriver';
import InsightIntentExecutor from '../@ohos.app.ability.InsightIntentExecutor';
import MediaControlExtensionAbility from '../@ohos.app.ability.MediaControlExtensionAbility';
import missionManager from '../@ohos.app.ability.missionManager';
import quickFixManager from '../@ohos.app.ability.quickFixManager';
import ServiceExtensionAbility from '../@ohos.app.ability.ServiceExtensionAbility';
import ShareExtensionAbility from '../@ohos.app.ability.ShareExtensionAbility';
import StartOptions from '../@ohos.app.ability.StartOptions';
import UIAbility, {
Callee, CalleeCallback, Caller, OnReleaseCallback, OnRemoteStateChangeCallback
} from '../@ohos.app.ability.UIAbility';
import UIExtensionAbility from '../@ohos.app.ability.UIExtensionAbility';
import UIExtensionContentSession from '../@ohos.app.ability.UIExtensionContentSession';
import UserAuthExtensionAbility from '../@ohos.app.ability.UserAuthExtensionAbility';
import Want from '../@ohos.app.ability.Want';
import wantConstant from '../@ohos.app.ability.wantConstant';
import wantAgent, { WantAgent } from '../@ohos.app.ability.wantAgent';
import businessAbilityRouter from '../@ohos.app.businessAbilityRouter';
import uriPermissionManager from '../@ohos.application.uriPermissionManager';
import appControl from '../@ohos.bundle.appControl';
import bundleManager from '../@ohos.bundle.bundleManager';
import bundleMonitor from '../@ohos.bundle.bundleMonitor';
import bundleResourceManager from '../@ohos.bundle.bundleResourceManager';
import bundle from '../@ohos.bundle';
import defaultAppManager from '../@ohos.bundle.defaultAppManager';
import distributedBundleManager from '../@ohos.bundle.distributedBundleManager';
import freeInstall from '../@ohos.bundle.freeInstall';
import innerBundleManager, { BundleStatusCallback } from '../@ohos.bundle.innerBundleManager';
import installer from '../@ohos.bundle.installer';
import launcherBundleManager from '../@ohos.bundle.launcherBundleManager';
import overlay from '../@ohos.bundle.overlay';
import continuationManager from '../@ohos.continuation.continuationManager';
import distributedBundle from '../@ohos.distributedBundle';
import distributedMissionManager from '../@ohos.distributedMissionManager';
import Package, {
CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse
} from '../@system.package';
export {
Ability, AbilityConstant, AbilityLifecycleCallback, AbilityStage, ActionExtensionAbility,
ApplicationStateChangeCallback, AutoFillExtensionAbility, BundleStatusCallback, Callee,
CalleeCallback, Caller, CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse,
ChildProcess, Configuration, ConfigurationConstant, Context, EnvironmentCallback, ErrorCode,
ExtensionAbility, InsightIntentContext, InsightIntentExecutor, MediaControlExtensionAbility,
OnReleaseCallback, OnRemoteStateChangeCallback, Package, PermissionRequestResult, Permissions,
ServiceExtensionAbility, ShareExtensionAbility, StartOptions, UIAbility, UIExtensionAbility,
UIExtensionContentSession, UserAuthExtensionAbility, Want, WantAgent, ability, abilityAccessCtrl,
abilityManager, appControl, appManager, appRecovery, autoFillManager, autoStartupManager, bundle, bundleManager,
bundleMonitor, bundleResourceManager, businessAbilityRouter, childProcessManager, common, contextConstant,
continuationManager, dataUriUtils, defaultAppManager, dialogRequest, dialogSession, distributedBundle,
distributedBundleManager, distributedMissionManager, errorManager, featureAbility, freeInstall,
innerBundleManager, insightIntent, insightIntentDriver, installer, launcherBundleManager, missionManager,
overlay, particleAbility, quickFixManager, uriPermissionManager, wantAgent, wantConstant
};

View File

@ -1,49 +0,0 @@
/*
* Copyright (c) 2022-2023 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 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 a2dp from '../@ohos.bluetooth.a2dp';
import access from '../@ohos.bluetooth.access';
import baseProfile from '../@ohos.bluetooth.baseProfile';
import ble from '../@ohos.bluetooth.ble';
import connection from '../@ohos.bluetooth.connection';
import constant from '../@ohos.bluetooth.constant';
import bluetooth from '../@ohos.bluetooth';
import hfp from '../@ohos.bluetooth.hfp';
import hid from '../@ohos.bluetooth.hid';
import pan from '../@ohos.bluetooth.pan';
import pbap from '../@ohos.bluetooth.pbap';
import socket from '../@ohos.bluetooth.socket';
import wearDetection from '../@ohos.bluetooth.wearDetection';
import bluetoothManager from '../@ohos.bluetoothManager';
import connectedTag from '../@ohos.connectedTag';
import cardEmulation from '../@ohos.nfc.cardEmulation';
import nfcController from '../@ohos.nfc.controller';
import tag from '../@ohos.nfc.tag';
import omapi from '../@ohos.secureElement';
import wifi from '../@ohos.wifi';
import wifiext from '../@ohos.wifiext';
import wifiManager from '../@ohos.wifiManager';
import wifiManagerExt from '../@ohos.wifiManagerExt';
import Bluetooth, {
BLEFoundResponse, BluetoothDevice, StartBLEScanOptions, StopBLEScanOptions,
SubscribeBLEFoundOptions
} from '../@system.bluetooth';
export {
BLEFoundResponse, Bluetooth, BluetoothDevice, StartBLEScanOptions, StopBLEScanOptions,
SubscribeBLEFoundOptions, a2dp, access, baseProfile, ble, bluetooth, bluetoothManager, cardEmulation,
connectedTag, connection, constant, hfp, hid, nfcController, omapi, pan, pbap, socket, tag, wearDetection, wifi,
wifiManager, wifiManagerExt, wifiext
};

View File

@ -1,40 +0,0 @@
/*
* Copyright (c) 2022-2023 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 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 configPolicy from '../@ohos.configPolicy';
import accountManager from '../@ohos.enterprise.accountManager';
import adminManager from '../@ohos.enterprise.adminManager';
import applicationManager from '../@ohos.enterprise.applicationManager';
import bluetoothManager from '../@ohos.enterprise.bluetoothManager';
import browser from '../@ohos.enterprise.browser';
import bundleManager from '../@ohos.enterprise.bundleManager';
import dateTimeManager from '../@ohos.enterprise.dateTimeManager';
import deviceControl from '../@ohos.enterprise.deviceControl';
import deviceInfo from '../@ohos.enterprise.deviceInfo';
import deviceSettings from '../@ohos.enterprise.deviceSettings';
import EnterpriseAdminExtensionAbility from '../@ohos.enterprise.EnterpriseAdminExtensionAbility';
import locationManager from '../@ohos.enterprise.locationManager';
import networkManager from '../@ohos.enterprise.networkManager';
import restrictions from '../@ohos.enterprise.restrictions';
import securityManager from '../@ohos.enterprise.securityManager';
import systemManager from '../@ohos.enterprise.systemManager';
import usbManager from '../@ohos.enterprise.usbManager';
import wifiManager from '../@ohos.enterprise.wifiManager';
export {
EnterpriseAdminExtensionAbility, accountManager, adminManager, applicationManager, bluetoothManager, browser,
bundleManager, configPolicy, dateTimeManager, deviceControl, deviceInfo, deviceSettings, locationManager,
networkManager, restrictions, securityManager, systemManager, usbManager, wifiManager
};

View File

@ -3,3 +3,4 @@
**/.editorconfig
**/.prettierrc
api/
kits/

View File

@ -59,15 +59,16 @@ function tsTransformKitFile(url) {
if (kitFileNeedDeleteMap.length === 0) {
return;
}
const kitPath = path.resolve(url, './kits');
const kitPath = path.resolve(url, '../kits');
const kitFiles = [];
readFile(kitPath, kitFiles); // 读取文件
kitFiles.forEach((kitFile) => {
const kitName = processFileNameWithoutExt(kitFile);
const kitName = processFileNameWithoutExt(kitFile).replace('@kit.', '');
const content = fs.readFileSync(kitFile, 'utf-8');
if (!kitFileNeedDeleteMap.has(kitName)) {
writeFile(kitFile, content);
return;
}
const content = fs.readFileSync(kitFile, 'utf-8');
const fileName = processFileName(kitFile);
let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.ES2017, true);
const sourceInfo = getKitNewSourceFile(sourceFile, kitName);

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import AVCastPicker, { AVCastPickerState } from '../@ohos.multimedia.avCastPicker';
import avSession from '../@ohos.multimedia.avsession';
import AVCastPicker, { AVCastPickerState } from '@ohos.multimedia.avCastPicker';
import avSession from '@ohos.multimedia.avsession';
export { AVCastPicker, AVCastPickerState, avSession };

102
kits/@kit.AbilityKit.d.ts vendored Normal file
View File

@ -0,0 +1,102 @@
/*
* Copyright (c) 2022-2023 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 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 ability from '@ohos.ability.ability';
import { ErrorCode } from '@ohos.ability.errorCode';
import featureAbility from '@ohos.ability.featureAbility';
import particleAbility from '@ohos.ability.particleAbility';
import abilityAccessCtrl, {
Context, PermissionRequestResult, Permissions
} from '@ohos.abilityAccessCtrl';
import Ability from '@ohos.app.ability.Ability';
import AbilityConstant from '@ohos.app.ability.AbilityConstant';
import AbilityLifecycleCallback from '@ohos.app.ability.AbilityLifecycleCallback';
import abilityManager from '@ohos.app.ability.abilityManager';
import AbilityStage from '@ohos.app.ability.AbilityStage';
import ActionExtensionAbility from '@ohos.app.ability.ActionExtensionAbility';
import ApplicationStateChangeCallback from '@ohos.app.ability.ApplicationStateChangeCallback';
import appManager from '@ohos.app.ability.appManager';
import appRecovery from '@ohos.app.ability.appRecovery';
import AutoFillExtensionAbility from '@ohos.app.ability.AutoFillExtensionAbility';
import autoFillManager from '@ohos.app.ability.autoFillManager';
import autoStartupManager from '@ohos.app.ability.autoStartupManager';
import ChildProcess from '@ohos.app.ability.ChildProcess';
import childProcessManager from '@ohos.app.ability.childProcessManager';
import common from '@ohos.app.ability.common';
import { Configuration } from '@ohos.app.ability.Configuration';
import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant';
import contextConstant from '@ohos.app.ability.contextConstant';
import dataUriUtils from '@ohos.app.ability.dataUriUtils';
import dialogRequest from '@ohos.app.ability.dialogRequest';
import dialogSession from '@ohos.app.ability.dialogSession';
import EnvironmentCallback from '@ohos.app.ability.EnvironmentCallback';
import errorManager from '@ohos.app.ability.errorManager';
import ExtensionAbility from '@ohos.app.ability.ExtensionAbility';
import insightIntent from '@ohos.app.ability.insightIntent';
import InsightIntentContext from '@ohos.app.ability.InsightIntentContext';
import insightIntentDriver from '@ohos.app.ability.insightIntentDriver';
import InsightIntentExecutor from '@ohos.app.ability.InsightIntentExecutor';
import MediaControlExtensionAbility from '@ohos.app.ability.MediaControlExtensionAbility';
import missionManager from '@ohos.app.ability.missionManager';
import quickFixManager from '@ohos.app.ability.quickFixManager';
import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility';
import ShareExtensionAbility from '@ohos.app.ability.ShareExtensionAbility';
import StartOptions from '@ohos.app.ability.StartOptions';
import UIAbility, {
Callee, CalleeCallback, Caller, OnReleaseCallback, OnRemoteStateChangeCallback
} from '@ohos.app.ability.UIAbility';
import UIExtensionAbility from '@ohos.app.ability.UIExtensionAbility';
import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession';
import UserAuthExtensionAbility from '@ohos.app.ability.UserAuthExtensionAbility';
import Want from '@ohos.app.ability.Want';
import wantConstant from '@ohos.app.ability.wantConstant';
import wantAgent, { WantAgent } from '@ohos.app.ability.wantAgent';
import businessAbilityRouter from '@ohos.app.businessAbilityRouter';
import uriPermissionManager from '@ohos.application.uriPermissionManager';
import appControl from '@ohos.bundle.appControl';
import bundleManager from '@ohos.bundle.bundleManager';
import bundleMonitor from '@ohos.bundle.bundleMonitor';
import bundleResourceManager from '@ohos.bundle.bundleResourceManager';
import bundle from '@ohos.bundle';
import defaultAppManager from '@ohos.bundle.defaultAppManager';
import distributedBundleManager from '@ohos.bundle.distributedBundleManager';
import freeInstall from '@ohos.bundle.freeInstall';
import innerBundleManager, { BundleStatusCallback } from '@ohos.bundle.innerBundleManager';
import installer from '@ohos.bundle.installer';
import launcherBundleManager from '@ohos.bundle.launcherBundleManager';
import overlay from '@ohos.bundle.overlay';
import continuationManager from '@ohos.continuation.continuationManager';
import distributedBundle from '@ohos.distributedBundle';
import distributedMissionManager from '@ohos.distributedMissionManager';
import Package, {
CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse
} from '@system.package';
export {
Ability, AbilityConstant, AbilityLifecycleCallback, AbilityStage, ActionExtensionAbility,
ApplicationStateChangeCallback, AutoFillExtensionAbility, BundleStatusCallback, Callee,
CalleeCallback, Caller, CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse,
ChildProcess, Configuration, ConfigurationConstant, Context, EnvironmentCallback, ErrorCode,
ExtensionAbility, InsightIntentContext, InsightIntentExecutor, MediaControlExtensionAbility,
OnReleaseCallback, OnRemoteStateChangeCallback, Package, PermissionRequestResult, Permissions,
ServiceExtensionAbility, ShareExtensionAbility, StartOptions, UIAbility, UIExtensionAbility,
UIExtensionContentSession, UserAuthExtensionAbility, Want, WantAgent, ability, abilityAccessCtrl,
abilityManager, appControl, appManager, appRecovery, autoFillManager, autoStartupManager, bundle, bundleManager,
bundleMonitor, bundleResourceManager, businessAbilityRouter, childProcessManager, common, contextConstant,
continuationManager, dataUriUtils, defaultAppManager, dialogRequest, dialogSession, distributedBundle,
distributedBundleManager, distributedMissionManager, errorManager, featureAbility, freeInstall,
innerBundleManager, insightIntent, insightIntentDriver, installer, launcherBundleManager, missionManager,
overlay, particleAbility, quickFixManager, uriPermissionManager, wantAgent, wantConstant
};

View File

@ -13,14 +13,14 @@
* limitations under the License.
*/
import config from '../@ohos.accessibility.config';
import accessibility from '../@ohos.accessibility';
import { GesturePath } from '../@ohos.accessibility.GesturePath';
import { GesturePoint } from '../@ohos.accessibility.GesturePoint';
import config from '@ohos.accessibility.config';
import accessibility from '@ohos.accessibility';
import { GesturePath } from '@ohos.accessibility.GesturePath';
import { GesturePoint } from '@ohos.accessibility.GesturePoint';
import AccessibilityExtensionAbility, {
AccessibilityElement, AccessibilityExtensionContext, ElementAttributeKeys,
ElementAttributeValues, FocusDirection, FocusType, Rect, WindowType
} from '../@ohos.application.AccessibilityExtensionAbility';
} from '@ohos.application.AccessibilityExtensionAbility';
export {
AccessibilityElement, AccessibilityExtensionAbility, AccessibilityExtensionContext,

View File

@ -13,10 +13,10 @@
* limitations under the License.
*/
import { AdComponent } from '../@ohos.advertising.AdComponent';
import AdsServiceExtensionAbility, { RespCallback } from '../@ohos.advertising.AdsServiceExtensionAbility';
import { AutoAdComponent } from '../@ohos.advertising.AutoAdComponent';
import advertising from '../@ohos.advertising';
import identifier from '../@ohos.identifier.oaid';
import { AdComponent } from '@ohos.advertising.AdComponent';
import AdsServiceExtensionAbility, { RespCallback } from '@ohos.advertising.AdsServiceExtensionAbility';
import { AutoAdComponent } from '@ohos.advertising.AutoAdComponent';
import advertising from '@ohos.advertising';
import identifier from '@ohos.identifier.oaid';
export { AdComponent, AdsServiceExtensionAbility, AutoAdComponent, RespCallback, advertising, identifier };

View File

@ -13,26 +13,26 @@
* limitations under the License.
*/
import DataShareExtensionAbility from '../@ohos.application.DataShareExtensionAbility';
import cloudData from '../@ohos.data.cloudData';
import commonType from '../@ohos.data.commonType';
import dataAbility from '../@ohos.data.dataAbility';
import dataShare from '../@ohos.data.dataShare';
import dataSharePredicates from '../@ohos.data.dataSharePredicates';
import DataShareResultSet, { DataType } from '../@ohos.data.DataShareResultSet';
import distributedData from '../@ohos.data.distributedData';
import distributedDataObject from '../@ohos.data.distributedDataObject';
import distributedKVStore from '../@ohos.data.distributedKVStore';
import preferences from '../@ohos.data.preferences';
import rdb from '../@ohos.data.rdb';
import relationalStore from '../@ohos.data.relationalStore';
import storage from '../@ohos.data.storage';
import unifiedDataChannel from '../@ohos.data.unifiedDataChannel';
import uniformTypeDescriptor from '../@ohos.data.uniformTypeDescriptor';
import { ValueType, ValuesBucket } from '../@ohos.data.ValuesBucket';
import DataShareExtensionAbility from '@ohos.application.DataShareExtensionAbility';
import cloudData from '@ohos.data.cloudData';
import commonType from '@ohos.data.commonType';
import dataAbility from '@ohos.data.dataAbility';
import dataShare from '@ohos.data.dataShare';
import dataSharePredicates from '@ohos.data.dataSharePredicates';
import DataShareResultSet, { DataType } from '@ohos.data.DataShareResultSet';
import distributedData from '@ohos.data.distributedData';
import distributedDataObject from '@ohos.data.distributedDataObject';
import distributedKVStore from '@ohos.data.distributedKVStore';
import preferences from '@ohos.data.preferences';
import rdb from '@ohos.data.rdb';
import relationalStore from '@ohos.data.relationalStore';
import storage from '@ohos.data.storage';
import unifiedDataChannel from '@ohos.data.unifiedDataChannel';
import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor';
import { ValueType, ValuesBucket } from '@ohos.data.ValuesBucket';
import Storage, {
ClearStorageOptions, DeleteStorageOptions, GetStorageOptions, SetStorageOptions
} from '../@system.storage';
} from '@system.storage';
export {
ClearStorageOptions, DataShareExtensionAbility, DataShareResultSet, DataType, DeleteStorageOptions,

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import effectKit from '../@ohos.effectKit';
import colorSpaceManager from '../@ohos.graphics.colorSpaceManager';
import effectKit from '@ohos.effectKit';
import colorSpaceManager from '@ohos.graphics.colorSpaceManager';
export { colorSpaceManager, effectKit };

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import effectKit from '../@ohos.effectKit';
import colorSpaceManager from '../@ohos.graphics.colorSpaceManager';
import effectKit from '@ohos.effectKit';
import colorSpaceManager from '@ohos.graphics.colorSpaceManager';
export { colorSpaceManager, effectKit };

View File

@ -13,33 +13,33 @@
* limitations under the License.
*/
import buffer from '../@ohos.buffer';
import convertxml from '../@ohos.convertxml';
import process from '../@ohos.process';
import taskpool from '../@ohos.taskpool';
import uri from '../@ohos.uri';
import url from '../@ohos.url';
import ArrayList from '../@ohos.util.ArrayList';
import util from '../@ohos.util';
import Deque from '../@ohos.util.Deque';
import HashMap from '../@ohos.util.HashMap';
import HashSet from '../@ohos.util.HashSet';
import LightWeightMap from '../@ohos.util.LightWeightMap';
import LightWeightSet from '../@ohos.util.LightWeightSet';
import LinkedList from '../@ohos.util.LinkedList';
import List from '../@ohos.util.List';
import PlainArray from '../@ohos.util.PlainArray';
import Queue from '../@ohos.util.Queue';
import Stack from '../@ohos.util.Stack';
import TreeMap from '../@ohos.util.TreeMap';
import TreeSet from '../@ohos.util.TreeSet';
import Vector from '../@ohos.util.Vector';
import buffer from '@ohos.buffer';
import convertxml from '@ohos.convertxml';
import process from '@ohos.process';
import taskpool from '@ohos.taskpool';
import uri from '@ohos.uri';
import url from '@ohos.url';
import ArrayList from '@ohos.util.ArrayList';
import util from '@ohos.util';
import Deque from '@ohos.util.Deque';
import HashMap from '@ohos.util.HashMap';
import HashSet from '@ohos.util.HashSet';
import LightWeightMap from '@ohos.util.LightWeightMap';
import LightWeightSet from '@ohos.util.LightWeightSet';
import LinkedList from '@ohos.util.LinkedList';
import List from '@ohos.util.List';
import PlainArray from '@ohos.util.PlainArray';
import Queue from '@ohos.util.Queue';
import Stack from '@ohos.util.Stack';
import TreeMap from '@ohos.util.TreeMap';
import TreeSet from '@ohos.util.TreeSet';
import Vector from '@ohos.util.Vector';
import worker, {
DedicatedWorkerGlobalScope, ErrorEvent, Event, EventListener, EventTarget,
MessageEvent, MessageEvents, PostMessageOptions, ThreadWorkerGlobalScope,
WorkerEventListener, WorkerEventTarget, WorkerOptions
} from '../@ohos.worker';
import xml from '../@ohos.xml';
} from '@ohos.worker';
import xml from '@ohos.xml';
export {
ArrayList, convertxml, DedicatedWorkerGlobalScope, Deque, ErrorEvent, Event, EventListener,

View File

@ -13,84 +13,84 @@
* limitations under the License.
*/
import windowAnimationManager from '../@ohos.animation.windowAnimationManager';
import Animator, { AnimatorOptions, AnimatorResult } from '../@ohos.animator';
import WindowExtensionAbility, { WindowExtensionContext } from '../@ohos.application.WindowExtensionAbility';
import { Breadcrumb, LabelInfo } from '../@ohos.arkui.advanced.Breadcrumb';
import windowAnimationManager from '@ohos.animation.windowAnimationManager';
import Animator, { AnimatorOptions, AnimatorResult } from '@ohos.animator';
import WindowExtensionAbility, { WindowExtensionContext } from '@ohos.application.WindowExtensionAbility';
import { Breadcrumb, LabelInfo } from '@ohos.arkui.advanced.Breadcrumb';
import {
Chip, ChipOptions, ChipSize, IconCommonOptions, LabelMarginOptions, LabelOptions, PrefixIconOptions,
SuffixIconOptions
} from '../@ohos.arkui.advanced.Chip';
} from '@ohos.arkui.advanced.Chip';
import {
ComposeListItem, ContentItem, IconType, OperateButton, OperateCheck, OperateIcon, OperateItem
} from '../@ohos.arkui.advanced.ComposeListItem';
import { ComposeTitleBar, ComposeTitleBarMenuItem } from '../@ohos.arkui.advanced.ComposeTitleBar';
import { CounterComponent, CounterOptions, CounterType, DateData } from '../@ohos.arkui.advanced.Counter';
} from '@ohos.arkui.advanced.ComposeListItem';
import { ComposeTitleBar, ComposeTitleBarMenuItem } from '@ohos.arkui.advanced.ComposeTitleBar';
import { CounterComponent, CounterOptions, CounterType, DateData } from '@ohos.arkui.advanced.Counter';
import {
AlertDialog, ButtonOptions, ConfirmDialog, LoadingDialog, SelectDialog, TipsDialog
} from '../@ohos.arkui.advanced.Dialog';
} from '@ohos.arkui.advanced.Dialog';
import {
EditableLeftIconType, EditableTitleBar, EditableTitleBarMenuItem
} from '../@ohos.arkui.advanced.EditableTitleBar';
import { Filter, FilterParams, FilterResult, FilterType } from '../@ohos.arkui.advanced.Filter';
} from '@ohos.arkui.advanced.EditableTitleBar';
import { Filter, FilterParams, FilterResult, FilterType } from '@ohos.arkui.advanced.Filter';
import {
Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, PopupTextOptions
} from '../@ohos.arkui.advanced.Popup';
import { ProgressButton } from '../@ohos.arkui.advanced.ProgressButton';
} from '@ohos.arkui.advanced.Popup';
import { ProgressButton } from '@ohos.arkui.advanced.ProgressButton';
import {
CapsuleSegmentButtonConstructionOptions, CapsuleSegmentButtonOptions, SegmentButton,
SegmentButtonItemOptionsArray, SegmentButtonOptions, TabSegmentButtonConstructionOptions, TabSegmentButtonOptions
} from '../@ohos.arkui.advanced.SegmentButton';
} from '@ohos.arkui.advanced.SegmentButton';
import {
EditorEventInfo, EditorMenuOptions, ExpandedMenuOptions, SelectionMenu, SelectionMenuOptions
} from '../@ohos.arkui.advanced.SelectionMenu';
import { SelectTitleBar, SelectTitleBarMenuItem } from '../@ohos.arkui.advanced.SelectTitleBar';
import { SplitLayout } from '../@ohos.arkui.advanced.SplitLayout';
import { OperationOption, OperationType, SelectOptions, SubHeader } from '../@ohos.arkui.advanced.SubHeader';
import { SwipeRefresher } from '../@ohos.arkui.advanced.SwipeRefresher';
import { TabTitleBar, TabTitleBarMenuItem, TabTitleBarTabItem } from '../@ohos.arkui.advanced.TabTitleBar';
import { ItemState, ToolBar, ToolBarOption, ToolBarOptions } from '../@ohos.arkui.advanced.ToolBar';
} from '@ohos.arkui.advanced.SelectionMenu';
import { SelectTitleBar, SelectTitleBarMenuItem } from '@ohos.arkui.advanced.SelectTitleBar';
import { SplitLayout } from '@ohos.arkui.advanced.SplitLayout';
import { OperationOption, OperationType, SelectOptions, SubHeader } from '@ohos.arkui.advanced.SubHeader';
import { SwipeRefresher } from '@ohos.arkui.advanced.SwipeRefresher';
import { TabTitleBar, TabTitleBarMenuItem, TabTitleBarTabItem } from '@ohos.arkui.advanced.TabTitleBar';
import { ItemState, ToolBar, ToolBarOption, ToolBarOptions } from '@ohos.arkui.advanced.ToolBar';
import {
CallbackParam, NodeParam, TreeController, TreeListenType, TreeListener, TreeListenerManager, TreeView
} from '../@ohos.arkui.advanced.TreeView';
import componentSnapshot from '../@ohos.arkui.componentSnapshot';
import componentUtils from '../@ohos.arkui.componentUtils';
import dragController from '../@ohos.arkui.dragController';
import { DrawableDescriptor, LayeredDrawableDescriptor } from '../@ohos.arkui.drawableDescriptor';
import inspector from '../@ohos.arkui.inspector';
import uiObserver from '../@ohos.arkui.observer';
import performanceMonitor from '../@ohos.arkui.performanceMonitor';
} from '@ohos.arkui.advanced.TreeView';
import componentSnapshot from '@ohos.arkui.componentSnapshot';
import componentUtils from '@ohos.arkui.componentUtils';
import dragController from '@ohos.arkui.dragController';
import { DrawableDescriptor, LayeredDrawableDescriptor } from '@ohos.arkui.drawableDescriptor';
import inspector from '@ohos.arkui.inspector';
import uiObserver from '@ohos.arkui.observer';
import performanceMonitor from '@ohos.arkui.performanceMonitor';
import {
AtomicServiceBar, ComponentUtils, DragController, Font, KeyboardAvoidMode, MediaQuery, PromptAction, Router,
UIContext, UIInspector, UIObserver
} from '../@ohos.arkui.UIContext';
import curves from '../@ohos.curves';
import dragInteraction from '../@ohos.deviceStatus.dragInteraction';
import display from '../@ohos.display';
import font from '../@ohos.font';
import matrix4 from '../@ohos.matrix4';
import MeasureText, { MeasureOptions } from '../@ohos.measure';
import mediaquery from '../@ohos.mediaquery';
import PiPWindow from '../@ohos.PiPWindow';
import pluginComponentManager from '../@ohos.pluginComponent';
import prompt from '../@ohos.prompt';
import promptAction from '../@ohos.promptAction';
import router from '../@ohos.router';
import screen from '../@ohos.screen';
import screenshot from '../@ohos.screenshot';
import uiAppearance from '../@ohos.uiAppearance';
import window from '../@ohos.window';
import App, { AppResponse, RequestFullWindowOptions, ScreenOnVisibleOptions } from '../@system.app';
import Configuration, { LocaleResponse } from '../@system.configuration';
import SystemMediaQuery, { MediaQueryEvent, MediaQueryList } from '../@system.mediaquery';
} from '@ohos.arkui.UIContext';
import curves from '@ohos.curves';
import dragInteraction from '@ohos.deviceStatus.dragInteraction';
import display from '@ohos.display';
import font from '@ohos.font';
import matrix4 from '@ohos.matrix4';
import MeasureText, { MeasureOptions } from '@ohos.measure';
import mediaquery from '@ohos.mediaquery';
import PiPWindow from '@ohos.PiPWindow';
import pluginComponentManager from '@ohos.pluginComponent';
import prompt from '@ohos.prompt';
import promptAction from '@ohos.promptAction';
import router from '@ohos.router';
import screen from '@ohos.screen';
import screenshot from '@ohos.screenshot';
import uiAppearance from '@ohos.uiAppearance';
import window from '@ohos.window';
import App, { AppResponse, RequestFullWindowOptions, ScreenOnVisibleOptions } from '@system.app';
import Configuration, { LocaleResponse } from '@system.configuration';
import SystemMediaQuery, { MediaQueryEvent, MediaQueryList } from '@system.mediaquery';
import Prompt, {
Button, ShowActionMenuOptions, ShowDialogOptions, ShowDialogSuccessResponse,
ShowToastOptions
} from '../@system.prompt';
} from '@system.prompt';
import SystemRouter, {
BackRouterOptions, DisableAlertBeforeBackPageOptions, EnableAlertBeforeBackPageOptions,
RouterOptions, RouterState
} from '../@system.router';
} from '@system.router';
export {
AlertDialog, Animator, AnimatorOptions, AnimatorResult, App, AppResponse, AtomicServiceBar,

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import webview from '../@ohos.web.webview';
import webview from '@ohos.web.webview';
export { webview };

View File

@ -13,8 +13,8 @@
* limitations under the License.
*/
import audio from '../@ohos.multimedia.audio';
import audioHaptic from '../@ohos.multimedia.audioHaptic';
import systemSoundManager from '../@ohos.multimedia.systemSoundManager';
import audio from '@ohos.multimedia.audio';
import audioHaptic from '@ohos.multimedia.audioHaptic';
import systemSoundManager from '@ohos.multimedia.systemSoundManager';
export { audio, audioHaptic, systemSoundManager };

View File

@ -13,16 +13,16 @@
* limitations under the License.
*/
import backgroundTaskManager from '../@ohos.resourceschedule.backgroundTaskManager';
import bundleState from '../@ohos.bundleState';
import reminderAgent from '../@ohos.reminderAgent';
import reminderAgentManager from '../@ohos.reminderAgentManager';
import deviceStandby from '../@ohos.resourceschedule.deviceStandby';
import usageStatistics from '../@ohos.resourceschedule.usageStatistics';
import workScheduler from '../@ohos.resourceschedule.workScheduler';
import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager';
import bundleState from '@ohos.bundleState';
import reminderAgent from '@ohos.reminderAgent';
import reminderAgentManager from '@ohos.reminderAgentManager';
import deviceStandby from '@ohos.resourceschedule.deviceStandby';
import usageStatistics from '@ohos.resourceschedule.usageStatistics';
import workScheduler from '@ohos.resourceschedule.workScheduler';
import WorkSchedulerExtensionAbility, {
WorkSchedulerExtensionContext
} from '../@ohos.WorkSchedulerExtensionAbility';
} from '@ohos.WorkSchedulerExtensionAbility';
export {
WorkSchedulerExtensionAbility, WorkSchedulerExtensionContext, backgroundTaskManager, bundleState,

View File

@ -13,51 +13,51 @@
* limitations under the License.
*/
import appAccount from '../@ohos.account.appAccount';
import distributedAccount from '../@ohos.account.distributedAccount';
import osAccount from '../@ohos.account.osAccount';
import PrintExtensionAbility from '../@ohos.app.ability.PrintExtensionAbility';
import { AsyncCallback, BusinessError, Callback, ErrorCallback } from '../@ohos.base';
import batteryInfo from '../@ohos.batteryInfo';
import batteryStats from '../@ohos.batteryStatistics';
import brightness from '../@ohos.brightness';
import charger from '../@ohos.charger';
import deviceAttest from '../@ohos.deviceAttest';
import deviceInfo from '../@ohos.deviceInfo';
import pasteboard from '../@ohos.pasteboard';
import power from '../@ohos.power';
import print from '../@ohos.print';
import request from '../@ohos.request';
import runningLock from '../@ohos.runningLock';
import screenLock from '../@ohos.screenLock';
import settings from '../@ohos.settings';
import systemCapability from '../@ohos.systemCapability';
import systemDateTime from '../@ohos.systemDateTime';
import systemParameter from '../@ohos.systemparameter';
import systemParameterEnhance from '../@ohos.systemParameterEnhance';
import systemTime from '../@ohos.systemTime';
import systemTimer from '../@ohos.systemTimer';
import thermal from '../@ohos.thermal';
import update from '../@ohos.update';
import usb from '../@ohos.usb';
import usbManager from '../@ohos.usbManager';
import wallpaper from '../@ohos.wallpaper';
import WallpaperExtensionAbility from '../@ohos.WallpaperExtensionAbility';
import zlib from '../@ohos.zlib';
import commonEventManager from '../@ohos.commonEventManager';
import emitter from '../@ohos.events.emitter';
import StaticSubscriberExtensionAbility from '../@ohos.application.StaticSubscriberExtensionAbility';
import StaticSubscriberExtensionContext from '../@ohos.application.StaticSubscriberExtensionContext';
import Battery, { BatteryResponse, GetStatusOptions } from '../@system.battery';
import appAccount from '@ohos.account.appAccount';
import distributedAccount from '@ohos.account.distributedAccount';
import osAccount from '@ohos.account.osAccount';
import PrintExtensionAbility from '@ohos.app.ability.PrintExtensionAbility';
import { AsyncCallback, BusinessError, Callback, ErrorCallback } from '@ohos.base';
import batteryInfo from '@ohos.batteryInfo';
import batteryStats from '@ohos.batteryStatistics';
import brightness from '@ohos.brightness';
import charger from '@ohos.charger';
import deviceAttest from '@ohos.deviceAttest';
import deviceInfo from '@ohos.deviceInfo';
import pasteboard from '@ohos.pasteboard';
import power from '@ohos.power';
import print from '@ohos.print';
import request from '@ohos.request';
import runningLock from '@ohos.runningLock';
import screenLock from '@ohos.screenLock';
import settings from '@ohos.settings';
import systemCapability from '@ohos.systemCapability';
import systemDateTime from '@ohos.systemDateTime';
import systemParameter from '@ohos.systemparameter';
import systemParameterEnhance from '@ohos.systemParameterEnhance';
import systemTime from '@ohos.systemTime';
import systemTimer from '@ohos.systemTimer';
import thermal from '@ohos.thermal';
import update from '@ohos.update';
import usb from '@ohos.usb';
import usbManager from '@ohos.usbManager';
import wallpaper from '@ohos.wallpaper';
import WallpaperExtensionAbility from '@ohos.WallpaperExtensionAbility';
import zlib from '@ohos.zlib';
import commonEventManager from '@ohos.commonEventManager';
import emitter from '@ohos.events.emitter';
import StaticSubscriberExtensionAbility from '@ohos.application.StaticSubscriberExtensionAbility';
import StaticSubscriberExtensionContext from '@ohos.application.StaticSubscriberExtensionContext';
import Battery, { BatteryResponse, GetStatusOptions } from '@system.battery';
import Brightness, {
BrightnessModeResponse, BrightnessResponse, GetBrightnessModeOptions, GetBrightnessOptions,
SetBrightnessModeOptions, SetBrightnessOptions, SetKeepScreenOnOptions
} from '../@system.brightness';
import Device, { DeviceResponse, GetDeviceOptions } from '../@system.device';
} from '@system.brightness';
import Device, { DeviceResponse, GetDeviceOptions } from '@system.device';
import Request, {
DownloadRequestOptions, DownloadResponse, OnDownloadCompleteOptions,
OnDownloadCompleteResponse, RequestData, RequestFile, UploadRequestOptions, UploadResponse
} from '../@system.request';
} from '@system.request';
export {
AsyncCallback, Battery, BatteryResponse, Brightness, BrightnessModeResponse,

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import calendarManager from '../@ohos.calendarManager';
import calendarManager from '@ohos.calendarManager';
export { calendarManager };

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import camera from '../@ohos.multimedia.camera';
import camera from '@ohos.multimedia.camera';
export { camera };

49
kits/@kit.ConnectivityKit.d.ts vendored Normal file
View File

@ -0,0 +1,49 @@
/*
* Copyright (c) 2022-2023 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 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 a2dp from '@ohos.bluetooth.a2dp';
import access from '@ohos.bluetooth.access';
import baseProfile from '@ohos.bluetooth.baseProfile';
import ble from '@ohos.bluetooth.ble';
import connection from '@ohos.bluetooth.connection';
import constant from '@ohos.bluetooth.constant';
import bluetooth from '@ohos.bluetooth';
import hfp from '@ohos.bluetooth.hfp';
import hid from '@ohos.bluetooth.hid';
import pan from '@ohos.bluetooth.pan';
import pbap from '@ohos.bluetooth.pbap';
import socket from '@ohos.bluetooth.socket';
import wearDetection from '@ohos.bluetooth.wearDetection';
import bluetoothManager from '@ohos.bluetoothManager';
import connectedTag from '@ohos.connectedTag';
import cardEmulation from '@ohos.nfc.cardEmulation';
import nfcController from '@ohos.nfc.controller';
import tag from '@ohos.nfc.tag';
import omapi from '@ohos.secureElement';
import wifi from '@ohos.wifi';
import wifiext from '@ohos.wifiext';
import wifiManager from '@ohos.wifiManager';
import wifiManagerExt from '@ohos.wifiManagerExt';
import Bluetooth, {
BLEFoundResponse, BluetoothDevice, StartBLEScanOptions, StopBLEScanOptions,
SubscribeBLEFoundOptions
} from '@system.bluetooth';
export {
BLEFoundResponse, Bluetooth, BluetoothDevice, StartBLEScanOptions, StopBLEScanOptions,
SubscribeBLEFoundOptions, a2dp, access, baseProfile, ble, bluetooth, bluetoothManager, cardEmulation,
connectedTag, connection, constant, hfp, hid, nfcController, omapi, pan, pbap, socket, tag, wearDetection, wifi,
wifiManager, wifiManagerExt, wifiext
};

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import contact from '../@ohos.contact';
import contact from '@ohos.contact';
export { contact };

View File

@ -13,37 +13,37 @@
* limitations under the License.
*/
import BackupExtensionAbility, { BundleVersion } from '../@ohos.application.BackupExtensionAbility';
import document from '../@ohos.document';
import backup from '../@ohos.file.backup';
import cloudSync from '../@ohos.file.cloudSync';
import cloudSyncManager from '../@ohos.file.cloudSyncManager';
import Environment from '../@ohos.file.environment';
import fileAccess from '../@ohos.file.fileAccess';
import fileExtensionInfo from '../@ohos.file.fileExtensionInfo';
import fileUri from '../@ohos.file.fileuri';
import BackupExtensionAbility, { BundleVersion } from '@ohos.application.BackupExtensionAbility';
import document from '@ohos.document';
import backup from '@ohos.file.backup';
import cloudSync from '@ohos.file.cloudSync';
import cloudSyncManager from '@ohos.file.cloudSyncManager';
import Environment from '@ohos.file.environment';
import fileAccess from '@ohos.file.fileAccess';
import fileExtensionInfo from '@ohos.file.fileExtensionInfo';
import fileUri from '@ohos.file.fileuri';
import fileIo, {
ConflictFiles, Filter, Options, ReaderIteratorResult, WatchEvent, WatchEventListener,
Watcher
} from '../@ohos.file.fs';
import hash from '../@ohos.file.hash';
import picker from '../@ohos.file.picker';
import recent from '../@ohos.file.recent';
import securityLabel from '../@ohos.file.securityLabel';
import statfs from '../@ohos.file.statvfs';
import storageStatistics from '../@ohos.file.storageStatistics';
import trash from '../@ohos.file.trash';
import volumeManager from '../@ohos.file.volumeManager';
import fileIO from '../@ohos.fileio';
import userFileManager from '../@ohos.filemanagement.userFileManager';
import fileShare from '../@ohos.fileshare';
import Statfs from '../@ohos.statfs';
} from '@ohos.file.fs';
import hash from '@ohos.file.hash';
import picker from '@ohos.file.picker';
import recent from '@ohos.file.recent';
import securityLabel from '@ohos.file.securityLabel';
import statfs from '@ohos.file.statvfs';
import storageStatistics from '@ohos.file.storageStatistics';
import trash from '@ohos.file.trash';
import volumeManager from '@ohos.file.volumeManager';
import fileIO from '@ohos.fileio';
import userFileManager from '@ohos.filemanagement.userFileManager';
import fileShare from '@ohos.fileshare';
import Statfs from '@ohos.statfs';
import File, {
FileAccessOption, FileCopyOption, FileDeleteOption, FileGetOption, FileListOption,
FileListResponse, FileMkdirOption, FileMoveOption, FileReadArrayBufferOption,
FileReadArrayBufferResponse, FileReadTextOption, FileReadTextResponse, FileResponse,
FileRmdirOption, FileWriteArrayBufferOption, FileWriteTextOption
} from '../@system.file';
} from '@system.file';
export {
BackupExtensionAbility, BundleVersion, ConflictFiles, Environment, File, FileAccessOption,

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import cryptoFramework from '../@ohos.security.cryptoFramework';
import Cipher, { CipherAesOptions, CipherResponse, CipherRsaOptions } from '../@system.cipher';
import cryptoFramework from '@ohos.security.cryptoFramework';
import Cipher, { CipherAesOptions, CipherResponse, CipherRsaOptions } from '@system.cipher';
export { Cipher, CipherAesOptions, CipherResponse, CipherRsaOptions, cryptoFramework };

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import dlpPermission from '../@ohos.dlpPermission';
import dlpPermission from '@ohos.dlpPermission';
export { dlpPermission };

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import cert from '../@ohos.security.cert';
import certificateManager from '../@ohos.security.certManager';
import cert from '@ohos.security.cert';
import certificateManager from '@ohos.security.certManager';
export { cert, certificateManager };

View File

@ -13,9 +13,9 @@
* limitations under the License.
*/
import cooperate from '../@ohos.cooperate';
import distributedDeviceManager from '../@ohos.distributedDeviceManager';
import deviceManager from '../@ohos.distributedHardware.deviceManager';
import hardwareManager from '../@ohos.distributedHardware.hardwareManager';
import cooperate from '@ohos.cooperate';
import distributedDeviceManager from '@ohos.distributedDeviceManager';
import deviceManager from '@ohos.distributedHardware.deviceManager';
import hardwareManager from '@ohos.distributedHardware.hardwareManager';
export { cooperate, deviceManager, distributedDeviceManager, hardwareManager };

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import DriverExtensionAbility, { DriverExtensionContext } from '../@ohos.app.ability.DriverExtensionAbility';
import deviceManager from '../@ohos.driver.deviceManager';
import DriverExtensionAbility, { DriverExtensionContext } from '@ohos.app.ability.DriverExtensionAbility';
import deviceManager from '@ohos.driver.deviceManager';
export { DriverExtensionAbility, DriverExtensionContext, deviceManager };

View File

@ -13,13 +13,13 @@
* limitations under the License.
*/
import formAgent from '../@ohos.app.form.formAgent';
import formBindingData from '../@ohos.app.form.formBindingData';
import FormExtensionAbility from '../@ohos.app.form.FormExtensionAbility';
import formHost from '../@ohos.app.form.formHost';
import formInfo from '../@ohos.app.form.formInfo';
import formObserver from '../@ohos.app.form.formObserver';
import formProvider from '../@ohos.app.form.formProvider';
import formError from '../@ohos.application.formError';
import formAgent from '@ohos.app.form.formAgent';
import formBindingData from '@ohos.app.form.formBindingData';
import FormExtensionAbility from '@ohos.app.form.FormExtensionAbility';
import formHost from '@ohos.app.form.formHost';
import formInfo from '@ohos.app.form.formInfo';
import formObserver from '@ohos.app.form.formObserver';
import formProvider from '@ohos.app.form.formProvider';
import formError from '@ohos.application.formError';
export { FormExtensionAbility, formAgent, formBindingData, formError, formHost, formInfo, formObserver, formProvider };

View File

@ -13,11 +13,11 @@
* limitations under the License.
*/
import inputMethod from '../@ohos.inputMethod';
import inputMethodEngine from '../@ohos.inputMethodEngine';
import InputMethodExtensionAbility from '../@ohos.InputMethodExtensionAbility';
import InputMethodExtensionContext from '../@ohos.InputMethodExtensionContext';
import InputMethodSubtype from '../@ohos.InputMethodSubtype';
import inputMethod from '@ohos.inputMethod';
import inputMethodEngine from '@ohos.inputMethodEngine';
import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility';
import InputMethodExtensionContext from '@ohos.InputMethodExtensionContext';
import InputMethodSubtype from '@ohos.InputMethodSubtype';
export {
InputMethodExtensionAbility, InputMethodExtensionContext, InputMethodSubtype, inputMethod, inputMethodEngine

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import rpc from '../@ohos.rpc';
import rpc from '@ohos.rpc';
export { rpc };

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import image from '../@ohos.multimedia.image';
import image from '@ohos.multimedia.image';
export { image };

View File

@ -13,28 +13,28 @@
* limitations under the License.
*/
import { PanelFlag, PanelInfo, PanelType } from '../@ohos.inputMethod.Panel';
import { InputMethodListDialog, Pattern, PatternOptions } from '../@ohos.inputMethodList';
import { PanelFlag, PanelInfo, PanelType } from '@ohos.inputMethod.Panel';
import { InputMethodListDialog, Pattern, PatternOptions } from '@ohos.inputMethodList';
import {
ActionType, FourFingersSwipe, Pinch, Rotate, ThreeFingersSwipe, ThreeFingersTap
} from '../@ohos.multimodalInput.gestureEvent';
import inputConsumer from '../@ohos.multimodalInput.inputConsumer';
import inputDevice from '../@ohos.multimodalInput.inputDevice';
import inputDeviceCooperate from '../@ohos.multimodalInput.inputDeviceCooperate';
import { InputEvent } from '../@ohos.multimodalInput.inputEvent';
import inputEventClient from '../@ohos.multimodalInput.inputEventClient';
import inputMonitor from '../@ohos.multimodalInput.inputMonitor';
import { IntentionCode } from '../@ohos.multimodalInput.intentionCode';
import { KeyCode } from '../@ohos.multimodalInput.keyCode';
import { Action, Key, KeyEvent } from '../@ohos.multimodalInput.keyEvent';
} from '@ohos.multimodalInput.gestureEvent';
import inputConsumer from '@ohos.multimodalInput.inputConsumer';
import inputDevice from '@ohos.multimodalInput.inputDevice';
import inputDeviceCooperate from '@ohos.multimodalInput.inputDeviceCooperate';
import { InputEvent } from '@ohos.multimodalInput.inputEvent';
import inputEventClient from '@ohos.multimodalInput.inputEventClient';
import inputMonitor from '@ohos.multimodalInput.inputMonitor';
import { IntentionCode } from '@ohos.multimodalInput.intentionCode';
import { KeyCode } from '@ohos.multimodalInput.keyCode';
import { Action, Key, KeyEvent } from '@ohos.multimodalInput.keyEvent';
import {
Action as MouseAction, Axis, AxisValue, Button, MouseEvent, ToolType as MouseToolType
} from '../@ohos.multimodalInput.mouseEvent';
import pointer from '../@ohos.multimodalInput.pointer';
import shortKey from '../@ohos.multimodalInput.shortKey';
} from '@ohos.multimodalInput.mouseEvent';
import pointer from '@ohos.multimodalInput.pointer';
import shortKey from '@ohos.multimodalInput.shortKey';
import {
Action as KeyAction, SourceType, ToolType, Touch, TouchEvent
} from '../@ohos.multimodalInput.touchEvent';
} from '@ohos.multimodalInput.touchEvent';
export {
Action, ActionType, Axis, AxisValue, Button, FourFingersSwipe, InputEvent, InputMethodListDialog,

View File

@ -13,16 +13,16 @@
* limitations under the License.
*/
import bytrace from '../@ohos.bytrace';
import FaultLogger from '../@ohos.faultLogger';
import hiAppEvent from '../@ohos.hiviewdfx.hiAppEvent';
import hichecker from '../@ohos.hichecker';
import hidebug from '../@ohos.hidebug';
import hilog from '../@ohos.hilog';
import hiSysEvent from '../@ohos.hiSysEvent';
import hiTraceChain from '../@ohos.hiTraceChain';
import hiTraceMeter from '../@ohos.hiTraceMeter';
import logLibrary from '../@ohos.logLibrary';
import bytrace from '@ohos.bytrace';
import FaultLogger from '@ohos.faultLogger';
import hiAppEvent from '@ohos.hiviewdfx.hiAppEvent';
import hichecker from '@ohos.hichecker';
import hidebug from '@ohos.hidebug';
import hilog from '@ohos.hilog';
import hiSysEvent from '@ohos.hiSysEvent';
import hiTraceChain from '@ohos.hiTraceChain';
import hiTraceMeter from '@ohos.hiTraceMeter';
import logLibrary from '@ohos.logLibrary';
export {
FaultLogger, bytrace, hiAppEvent, hiSysEvent, hiTraceChain, hiTraceMeter, hichecker, hidebug, hilog,

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import faceAuth from '../@ohos.userIAM.faceAuth';
import userAuth from '../@ohos.userIAM.userAuth';
import faceAuth from '@ohos.userIAM.faceAuth';
import userAuth from '@ohos.userIAM.userAuth';
export { faceAuth, userAuth };

View File

@ -13,8 +13,8 @@
* limitations under the License.
*/
import i18n from '../@ohos.i18n';
import intl from '../@ohos.intl';
import resourceManager from '../@ohos.resourceManager';
import i18n from '@ohos.i18n';
import intl from '@ohos.intl';
import resourceManager from '@ohos.resourceManager';
export { i18n, intl, resourceManager };

View File

@ -13,12 +13,12 @@
* limitations under the License.
*/
import geolocation from '../@ohos.geolocation';
import geoLocationManager from '../@ohos.geoLocationManager';
import geolocation from '@ohos.geolocation';
import geoLocationManager from '@ohos.geoLocationManager';
import Geolocation, {
GeolocationResponse, GetLocationOption, GetLocationTypeOption, GetLocationTypeResponse,
SubscribeLocationOption
} from '../@system.geolocation';
} from '@system.geolocation';
export {
Geolocation, GeolocationResponse, GetLocationOption, GetLocationTypeOption,

40
kits/@kit.MDMKit.d.ts vendored Normal file
View File

@ -0,0 +1,40 @@
/*
* Copyright (c) 2022-2023 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 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 configPolicy from '@ohos.configPolicy';
import accountManager from '@ohos.enterprise.accountManager';
import adminManager from '@ohos.enterprise.adminManager';
import applicationManager from '@ohos.enterprise.applicationManager';
import bluetoothManager from '@ohos.enterprise.bluetoothManager';
import browser from '@ohos.enterprise.browser';
import bundleManager from '@ohos.enterprise.bundleManager';
import dateTimeManager from '@ohos.enterprise.dateTimeManager';
import deviceControl from '@ohos.enterprise.deviceControl';
import deviceInfo from '@ohos.enterprise.deviceInfo';
import deviceSettings from '@ohos.enterprise.deviceSettings';
import EnterpriseAdminExtensionAbility from '@ohos.enterprise.EnterpriseAdminExtensionAbility';
import locationManager from '@ohos.enterprise.locationManager';
import networkManager from '@ohos.enterprise.networkManager';
import restrictions from '@ohos.enterprise.restrictions';
import securityManager from '@ohos.enterprise.securityManager';
import systemManager from '@ohos.enterprise.systemManager';
import usbManager from '@ohos.enterprise.usbManager';
import wifiManager from '@ohos.enterprise.wifiManager';
export {
EnterpriseAdminExtensionAbility, accountManager, adminManager, applicationManager, bluetoothManager, browser,
bundleManager, configPolicy, dateTimeManager, deviceControl, deviceInfo, deviceSettings, locationManager,
networkManager, restrictions, securityManager, systemManager, usbManager, wifiManager
};

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import media from '../@ohos.multimedia.media';
import media from '@ohos.multimedia.media';
export { media };

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import photoAccessHelper from '../@ohos.file.photoAccessHelper';
import mediaLibrary from '../@ohos.multimedia.mediaLibrary';
import photoAccessHelper from '@ohos.file.photoAccessHelper';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
export { mediaLibrary, photoAccessHelper };

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import intelligentVoice from '../@ohos.ai.intelligentVoice';
import mindSporeLite from '../@ohos.ai.mindSporeLite';
import intelligentVoice from '@ohos.ai.intelligentVoice';
import mindSporeLite from '@ohos.ai.mindSporeLite';
export { intelligentVoice, mindSporeLite };

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import stationary from '../@ohos.stationary';
import stationary from '@ohos.stationary';
export { stationary };

View File

@ -13,18 +13,18 @@
* limitations under the License.
*/
import connection from '../@ohos.net.connection';
import ethernet from '../@ohos.net.ethernet';
import http from '../@ohos.net.http';
import mdns from '../@ohos.net.mdns';
import policy from '../@ohos.net.policy';
import sharing from '../@ohos.net.sharing';
import socket from '../@ohos.net.socket';
import statistics from '../@ohos.net.statistics';
import vpn from '../@ohos.net.vpn';
import webSocket from '../@ohos.net.webSocket';
import Fetch, { FetchResponse } from '../@system.fetch';
import Network, { NetworkResponse } from '../@system.network';
import connection from '@ohos.net.connection';
import ethernet from '@ohos.net.ethernet';
import http from '@ohos.net.http';
import mdns from '@ohos.net.mdns';
import policy from '@ohos.net.policy';
import sharing from '@ohos.net.sharing';
import socket from '@ohos.net.socket';
import statistics from '@ohos.net.statistics';
import vpn from '@ohos.net.vpn';
import webSocket from '@ohos.net.webSocket';
import Fetch, { FetchResponse } from '@system.fetch';
import Network, { NetworkResponse } from '@system.network';
export {
Fetch, FetchResponse, Network, NetworkResponse, connection, ethernet, http, mdns, policy, sharing,

View File

@ -13,9 +13,9 @@
* limitations under the License.
*/
import notificationManager from '../@ohos.notificationManager';
import notificationSubscribe from '../@ohos.notificationSubscribe';
import Notification, { ActionResult, ShowNotificationOptions } from '../@system.notification';
import notificationManager from '@ohos.notificationManager';
import notificationSubscribe from '@ohos.notificationSubscribe';
import Notification, { ActionResult, ShowNotificationOptions } from '@system.notification';
export {
ActionResult, Notification, ShowNotificationOptions, notificationManager, notificationSubscribe

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import privacyManager, { Permissions } from '../@ohos.privacyManager';
import privacyManager, { Permissions } from '@ohos.privacyManager';
export { Permissions, privacyManager };

View File

@ -13,8 +13,8 @@
* limitations under the License.
*/
import sensor from '../@ohos.sensor';
import vibrator from '../@ohos.vibrator';
import sensor from '@ohos.sensor';
import vibrator from '@ohos.vibrator';
import Sensor, {
AccelerometerResponse, BarometerResponse, CompassResponse, DeviceOrientationResponse,
GetOnBodyStateOptions, GyroscopeResponse, HeartRateResponse, LightResponse,
@ -22,8 +22,8 @@ import Sensor, {
SubscribeCompassOptions, SubscribeDeviceOrientationOptions, SubscribeGyroscopeOptions,
SubscribeHeartRateOptions, SubscribeLightOptions, SubscribeOnBodyStateOptions,
SubscribeProximityOptions, SubscribeStepCounterOptions, subscribeAccelerometerOptions
} from '../@system.sensor';
import Vibrator, { VibrateOptions } from '../@system.vibrator';
} from '@system.sensor';
import Vibrator, { VibrateOptions } from '@system.vibrator';
export {
AccelerometerResponse, BarometerResponse, CompassResponse, DeviceOrientationResponse,

View File

@ -13,12 +13,12 @@
* limitations under the License.
*/
import data from '../@ohos.telephony.data';
import observer from '../@ohos.telephony.observer';
import radio from '../@ohos.telephony.radio';
import sim from '../@ohos.telephony.sim';
import sms from '../@ohos.telephony.sms';
import vcard from '../@ohos.telephony.vcard';
import call from '../@ohos.telephony.call';
import data from '@ohos.telephony.data';
import observer from '@ohos.telephony.observer';
import radio from '@ohos.telephony.radio';
import sim from '@ohos.telephony.sim';
import sms from '@ohos.telephony.sms';
import vcard from '@ohos.telephony.vcard';
import call from '@ohos.telephony.call';
export { data, observer, radio, sim, sms, vcard, call };

View File

@ -13,12 +13,12 @@
* limitations under the License.
*/
import abilityDelegatorRegistry from '../@ohos.app.ability.abilityDelegatorRegistry';
import TestRunner from '../@ohos.application.testRunner';
import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
import TestRunner from '@ohos.application.testRunner';
import {
BY, By, Component, DisplayRotation, Driver, MatchPattern, MouseButton, ON, On, PointerMatrix, ResizeDirection,
UIElementInfo, UIEventObserver, UiComponent, UiDirection, UiDriver, UiWindow, WindowMode
} from '../@ohos.UiTest';
} from '@ohos.UiTest';
export {
BY, By, Component, DisplayRotation, Driver, MatchPattern, MouseButton, ON, On, PointerMatrix, ResizeDirection,

View File

@ -13,6 +13,6 @@
* limitations under the License.
*/
import huks from '../@ohos.security.huks';
import huks from '@ohos.security.huks';
export { huks };