@ccos/ccsdk-lite 1.0.2 → 1.0.3
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/bundle.js +12 -2
- package/dist/index.d.ts +2 -0
- package/dist/system/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -481,6 +481,14 @@ function getProperty(key) {
|
|
|
481
481
|
function getLocation() {
|
|
482
482
|
return callNative(getFuncName$4('getLocation'), null);
|
|
483
483
|
}
|
|
484
|
+
// 检查 JS-API 是否已经实现
|
|
485
|
+
function checkApi(apiName) {
|
|
486
|
+
return callNative(getFuncName$4('checkApi'), { apiName });
|
|
487
|
+
}
|
|
488
|
+
// 获取显示屏幕信息
|
|
489
|
+
function getDisplayInfo() {
|
|
490
|
+
return callNative(getFuncName$4('getDisplayInfo'), null);
|
|
491
|
+
}
|
|
484
492
|
var system = {
|
|
485
493
|
getSdkVersion,
|
|
486
494
|
addLifeCycleHook,
|
|
@@ -488,7 +496,9 @@ var system = {
|
|
|
488
496
|
enableSystemKey,
|
|
489
497
|
getDeviceInfo,
|
|
490
498
|
getProperty,
|
|
491
|
-
getLocation
|
|
499
|
+
getLocation,
|
|
500
|
+
checkApi,
|
|
501
|
+
getDisplayInfo,
|
|
492
502
|
};
|
|
493
503
|
|
|
494
504
|
const moduleName$3 = 'storage';
|
|
@@ -961,7 +971,7 @@ var file = {
|
|
|
961
971
|
list
|
|
962
972
|
};
|
|
963
973
|
|
|
964
|
-
window['
|
|
974
|
+
window['appNativeCall'] = function apkNativeCall(str) {
|
|
965
975
|
let res = null;
|
|
966
976
|
//console.log('str1=' + str);
|
|
967
977
|
try {
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ declare const _default: {
|
|
|
39
39
|
getDeviceInfo: typeof import("./system").getDeviceInfo;
|
|
40
40
|
getProperty: typeof import("./system").getProperty;
|
|
41
41
|
getLocation: typeof import("./system").getLocation;
|
|
42
|
+
checkApi: typeof import("./system").checkApi;
|
|
43
|
+
getDisplayInfo: typeof import("./system").getDisplayInfo;
|
|
42
44
|
};
|
|
43
45
|
storage: {
|
|
44
46
|
setKey: typeof import("./storage").setKey;
|
package/dist/system/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare function enableSystemKey(params: SystemKeyParam | null): Promise<
|
|
|
8
8
|
export declare function getDeviceInfo(): Promise<any>;
|
|
9
9
|
export declare function getProperty(key: string): Promise<any>;
|
|
10
10
|
export declare function getLocation(): Promise<any>;
|
|
11
|
+
export declare function checkApi(apiName: string): Promise<any>;
|
|
12
|
+
export declare function getDisplayInfo(): Promise<any>;
|
|
11
13
|
declare const _default: {
|
|
12
14
|
getSdkVersion: typeof getSdkVersion;
|
|
13
15
|
addLifeCycleHook: typeof addLifeCycleHook;
|
|
@@ -16,5 +18,7 @@ declare const _default: {
|
|
|
16
18
|
getDeviceInfo: typeof getDeviceInfo;
|
|
17
19
|
getProperty: typeof getProperty;
|
|
18
20
|
getLocation: typeof getLocation;
|
|
21
|
+
checkApi: typeof checkApi;
|
|
22
|
+
getDisplayInfo: typeof getDisplayInfo;
|
|
19
23
|
};
|
|
20
24
|
export default _default;
|