@atomicservice/ascf-base 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +76 -76
- package/dist/index.mjs +76 -76
- package/dist/templates/ascfDemos/page/API/pages/appEvent/appEvent.js +4 -3
- package/dist/templates/ascfDemos/page/API/pages/camera/camera.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/choose-location/choose-location.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/compass/compass.js +2 -2
- package/dist/templates/ascfDemos/page/API/pages/contact/contact.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/deviceMotionListening/deviceMotionListening.js +3 -3
- package/dist/templates/ascfDemos/page/API/pages/download-file/download-file.js +0 -1
- package/dist/templates/ascfDemos/page/API/pages/file/file.js +3 -0
- package/dist/templates/ascfDemos/page/API/pages/get-hxml-info/get-hxml-info.js +6 -6
- package/dist/templates/ascfDemos/page/API/pages/get-system-info/get-system-info.js +10 -10
- package/dist/templates/ascfDemos/page/API/pages/getNetworkType/getNetworkType.js +1 -6
- package/dist/templates/ascfDemos/page/API/pages/gyroscope/gyroscope.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/image/image.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/make-phone-call/make-phone-call.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/scan-code/scan-code.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/set-tab-bar/set-tab-bar.js +22 -2
- package/dist/templates/ascfDemos/page/API/pages/video/video.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/webSocket/webSocket.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/wifi/wifi.js +1 -0
- package/dist/templates/ascfDemos/page/component/pages/icon/icon.js +1 -1
- package/dist/templates/ascfDemos/page/component/pages/picker/picker.js +0 -1
- package/dist/templates/ascfDemos/page/component/pages/radio/radio.js +2 -2
- package/dist/templates/ascfDemos/page/component/pages/swiper/swiper.js +2 -1
- package/dist/templates/ascfDemos/page/open/pages/choose-address/choose-address.js +1 -0
- package/dist/templates/ascfDemos/page/open/pages/choose-invoice-title/choose-invoice-title.js +1 -1
- package/dist/templates/ascfDemos/page/open/pages/message/message.js +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -142,6 +142,11 @@ declare function isMpProject(path: any): boolean;
|
|
|
142
142
|
|
|
143
143
|
declare const IS_WIN32: boolean;
|
|
144
144
|
declare const IS_MACOS: boolean;
|
|
145
|
+
declare const IS_OPENHARMONY: boolean;
|
|
146
|
+
declare const TOOLS_DIR_OSX = "/Applications/DevEco-Studio.app/Contents/tools";
|
|
147
|
+
declare const TOOLS_DIR_WIN = "C:\\Program Files\\Huawei\\DevEco Studio\\tools";
|
|
148
|
+
declare const TOOLS_DIR_OPENHARMONY = "/data/app";
|
|
149
|
+
declare const DEFAULT_TOOLS_DIR: string;
|
|
145
150
|
declare function getDevEcoToolsDir(): string;
|
|
146
151
|
declare function getPath(...args: any[]): string;
|
|
147
152
|
declare function getNodePath(): string;
|
|
@@ -151,6 +156,7 @@ declare function getHvigorwPath(): string;
|
|
|
151
156
|
declare function getDevEcoSdkHome(): string;
|
|
152
157
|
declare function getHdcPath(): string;
|
|
153
158
|
declare function getNodeBinPath(): string;
|
|
159
|
+
declare function getNodeDirPath(): string;
|
|
154
160
|
declare function getJavaBinPath(): string;
|
|
155
161
|
|
|
156
162
|
declare class AsyncResult<T> {
|
|
@@ -425,4 +431,4 @@ declare class DebugPort {
|
|
|
425
431
|
}
|
|
426
432
|
declare const debugPort: DebugPort;
|
|
427
433
|
|
|
428
|
-
export { $async, ADB_CONNECTOR, ASCF_LOG_FILE, AscfBuilder, AscfDebugger, AsyncResult, AtomicServiceAppIconChecker, BUILD_MODE_DEBUG, BUILD_MODE_RELEASE, BuildProcessFactory, DEBUG_TYPE_SERVICE, DEBUG_TYPE_VIEW, DebuggerProcessFactory, ERROR_MSG, FAIL, FASTAPP_LOADER_PKG_NAME, HARMONY_OS, HDC_CONNECTOR, HOS_DEVICE, IS_MACOS, IS_WIN32, LEGACY_DEVICE, type TemplateContext, TemplateEngine, type TemplateEngineOptions, type TemplateFile, type TemplateInfo, V8_PORT, ascfCompile, ascfConvert, ascfGenCert, ascfGenP12, ascfRun, clearAscfDepDirCache, configureLogger, copyDirectory, createAscfComponent, createAscfPage, createAscfProject, createServiceWidget, debugPort, type deviceType, devicesLegacyShared, downloadApk, execSafe, fetchHttpsJson, fetchJson, findAvailablePort, fixHvigorPath, fportCmd, fportListCmd, fportRmCmd, getAdbPath, getAscfDebuggerPidFile, getAscfDepDir, getBuildProfile, getBundleInfo, getCmdAndArgs, getDebugServerInfo, getDebugees, getDevEcoSdkHome, getDevEcoToolsDir, getDeviceName, getDevicesCmd, getHdcPath, getHvigorwPath, getJavaBinPath, getLegacyDeviceName, getLegacyHosVersion, getLegacyPackInfo, getLegacyProcess, getLogLevelGetter, getLogger, getNodeBinPath, getNodePath, getNpmPath, getOhpmPath, getPath, getPid, getProjectConfig, getSpkInfo, hasHvigor, hdcDeviceShared, hdcShared, installAscfTools, installSpkShared, isAscfProject, isDirectoryExists, isMpProject, isPortReachable, listTargets, maskLast4, mergeJson, normalizeBuildMode, openInBrowser, optArgIf, parseJsonFile, parseJsonSafe, portManagerShared, rportCmd, rportRmCmd, runAdbCmdAsync, setLogLevelGetter, setLoggerConfig, startDebugServerCmd, startHostPkg, startServer, stopDebugServer, tryAdbPortReversing, tryHdcPortReversing };
|
|
434
|
+
export { $async, ADB_CONNECTOR, ASCF_LOG_FILE, AscfBuilder, AscfDebugger, AsyncResult, AtomicServiceAppIconChecker, BUILD_MODE_DEBUG, BUILD_MODE_RELEASE, BuildProcessFactory, DEBUG_TYPE_SERVICE, DEBUG_TYPE_VIEW, DEFAULT_TOOLS_DIR, DebuggerProcessFactory, ERROR_MSG, FAIL, FASTAPP_LOADER_PKG_NAME, HARMONY_OS, HDC_CONNECTOR, HOS_DEVICE, IS_MACOS, IS_OPENHARMONY, IS_WIN32, LEGACY_DEVICE, TOOLS_DIR_OPENHARMONY, TOOLS_DIR_OSX, TOOLS_DIR_WIN, type TemplateContext, TemplateEngine, type TemplateEngineOptions, type TemplateFile, type TemplateInfo, V8_PORT, ascfCompile, ascfConvert, ascfGenCert, ascfGenP12, ascfRun, clearAscfDepDirCache, configureLogger, copyDirectory, createAscfComponent, createAscfPage, createAscfProject, createServiceWidget, debugPort, type deviceType, devicesLegacyShared, downloadApk, execSafe, fetchHttpsJson, fetchJson, findAvailablePort, fixHvigorPath, fportCmd, fportListCmd, fportRmCmd, getAdbPath, getAscfDebuggerPidFile, getAscfDepDir, getBuildProfile, getBundleInfo, getCmdAndArgs, getDebugServerInfo, getDebugees, getDevEcoSdkHome, getDevEcoToolsDir, getDeviceName, getDevicesCmd, getHdcPath, getHvigorwPath, getJavaBinPath, getLegacyDeviceName, getLegacyHosVersion, getLegacyPackInfo, getLegacyProcess, getLogLevelGetter, getLogger, getNodeBinPath, getNodeDirPath, getNodePath, getNpmPath, getOhpmPath, getPath, getPid, getProjectConfig, getSpkInfo, hasHvigor, hdcDeviceShared, hdcShared, installAscfTools, installSpkShared, isAscfProject, isDirectoryExists, isMpProject, isPortReachable, listTargets, maskLast4, mergeJson, normalizeBuildMode, openInBrowser, optArgIf, parseJsonFile, parseJsonSafe, portManagerShared, rportCmd, rportRmCmd, runAdbCmdAsync, setLogLevelGetter, setLoggerConfig, startDebugServerCmd, startHostPkg, startServer, stopDebugServer, tryAdbPortReversing, tryHdcPortReversing };
|
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,11 @@ declare function isMpProject(path: any): boolean;
|
|
|
142
142
|
|
|
143
143
|
declare const IS_WIN32: boolean;
|
|
144
144
|
declare const IS_MACOS: boolean;
|
|
145
|
+
declare const IS_OPENHARMONY: boolean;
|
|
146
|
+
declare const TOOLS_DIR_OSX = "/Applications/DevEco-Studio.app/Contents/tools";
|
|
147
|
+
declare const TOOLS_DIR_WIN = "C:\\Program Files\\Huawei\\DevEco Studio\\tools";
|
|
148
|
+
declare const TOOLS_DIR_OPENHARMONY = "/data/app";
|
|
149
|
+
declare const DEFAULT_TOOLS_DIR: string;
|
|
145
150
|
declare function getDevEcoToolsDir(): string;
|
|
146
151
|
declare function getPath(...args: any[]): string;
|
|
147
152
|
declare function getNodePath(): string;
|
|
@@ -151,6 +156,7 @@ declare function getHvigorwPath(): string;
|
|
|
151
156
|
declare function getDevEcoSdkHome(): string;
|
|
152
157
|
declare function getHdcPath(): string;
|
|
153
158
|
declare function getNodeBinPath(): string;
|
|
159
|
+
declare function getNodeDirPath(): string;
|
|
154
160
|
declare function getJavaBinPath(): string;
|
|
155
161
|
|
|
156
162
|
declare class AsyncResult<T> {
|
|
@@ -425,4 +431,4 @@ declare class DebugPort {
|
|
|
425
431
|
}
|
|
426
432
|
declare const debugPort: DebugPort;
|
|
427
433
|
|
|
428
|
-
export { $async, ADB_CONNECTOR, ASCF_LOG_FILE, AscfBuilder, AscfDebugger, AsyncResult, AtomicServiceAppIconChecker, BUILD_MODE_DEBUG, BUILD_MODE_RELEASE, BuildProcessFactory, DEBUG_TYPE_SERVICE, DEBUG_TYPE_VIEW, DebuggerProcessFactory, ERROR_MSG, FAIL, FASTAPP_LOADER_PKG_NAME, HARMONY_OS, HDC_CONNECTOR, HOS_DEVICE, IS_MACOS, IS_WIN32, LEGACY_DEVICE, type TemplateContext, TemplateEngine, type TemplateEngineOptions, type TemplateFile, type TemplateInfo, V8_PORT, ascfCompile, ascfConvert, ascfGenCert, ascfGenP12, ascfRun, clearAscfDepDirCache, configureLogger, copyDirectory, createAscfComponent, createAscfPage, createAscfProject, createServiceWidget, debugPort, type deviceType, devicesLegacyShared, downloadApk, execSafe, fetchHttpsJson, fetchJson, findAvailablePort, fixHvigorPath, fportCmd, fportListCmd, fportRmCmd, getAdbPath, getAscfDebuggerPidFile, getAscfDepDir, getBuildProfile, getBundleInfo, getCmdAndArgs, getDebugServerInfo, getDebugees, getDevEcoSdkHome, getDevEcoToolsDir, getDeviceName, getDevicesCmd, getHdcPath, getHvigorwPath, getJavaBinPath, getLegacyDeviceName, getLegacyHosVersion, getLegacyPackInfo, getLegacyProcess, getLogLevelGetter, getLogger, getNodeBinPath, getNodePath, getNpmPath, getOhpmPath, getPath, getPid, getProjectConfig, getSpkInfo, hasHvigor, hdcDeviceShared, hdcShared, installAscfTools, installSpkShared, isAscfProject, isDirectoryExists, isMpProject, isPortReachable, listTargets, maskLast4, mergeJson, normalizeBuildMode, openInBrowser, optArgIf, parseJsonFile, parseJsonSafe, portManagerShared, rportCmd, rportRmCmd, runAdbCmdAsync, setLogLevelGetter, setLoggerConfig, startDebugServerCmd, startHostPkg, startServer, stopDebugServer, tryAdbPortReversing, tryHdcPortReversing };
|
|
434
|
+
export { $async, ADB_CONNECTOR, ASCF_LOG_FILE, AscfBuilder, AscfDebugger, AsyncResult, AtomicServiceAppIconChecker, BUILD_MODE_DEBUG, BUILD_MODE_RELEASE, BuildProcessFactory, DEBUG_TYPE_SERVICE, DEBUG_TYPE_VIEW, DEFAULT_TOOLS_DIR, DebuggerProcessFactory, ERROR_MSG, FAIL, FASTAPP_LOADER_PKG_NAME, HARMONY_OS, HDC_CONNECTOR, HOS_DEVICE, IS_MACOS, IS_OPENHARMONY, IS_WIN32, LEGACY_DEVICE, TOOLS_DIR_OPENHARMONY, TOOLS_DIR_OSX, TOOLS_DIR_WIN, type TemplateContext, TemplateEngine, type TemplateEngineOptions, type TemplateFile, type TemplateInfo, V8_PORT, ascfCompile, ascfConvert, ascfGenCert, ascfGenP12, ascfRun, clearAscfDepDirCache, configureLogger, copyDirectory, createAscfComponent, createAscfPage, createAscfProject, createServiceWidget, debugPort, type deviceType, devicesLegacyShared, downloadApk, execSafe, fetchHttpsJson, fetchJson, findAvailablePort, fixHvigorPath, fportCmd, fportListCmd, fportRmCmd, getAdbPath, getAscfDebuggerPidFile, getAscfDepDir, getBuildProfile, getBundleInfo, getCmdAndArgs, getDebugServerInfo, getDebugees, getDevEcoSdkHome, getDevEcoToolsDir, getDeviceName, getDevicesCmd, getHdcPath, getHvigorwPath, getJavaBinPath, getLegacyDeviceName, getLegacyHosVersion, getLegacyPackInfo, getLegacyProcess, getLogLevelGetter, getLogger, getNodeBinPath, getNodeDirPath, getNodePath, getNpmPath, getOhpmPath, getPath, getPid, getProjectConfig, getSpkInfo, hasHvigor, hdcDeviceShared, hdcShared, installAscfTools, installSpkShared, isAscfProject, isDirectoryExists, isMpProject, isPortReachable, listTargets, maskLast4, mergeJson, normalizeBuildMode, openInBrowser, optArgIf, parseJsonFile, parseJsonSafe, portManagerShared, rportCmd, rportRmCmd, runAdbCmdAsync, setLogLevelGetter, setLoggerConfig, startDebugServerCmd, startHostPkg, startServer, stopDebugServer, tryAdbPortReversing, tryHdcPortReversing };
|