hylid-bridge 4.0.11 → 4.0.18

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/lib/bridges.js CHANGED
@@ -330,6 +330,7 @@ import mpWebTmnGetAppId from './clients/mp_web/tmn/getAppId';
330
330
  import mpWebTmnGetCurrentPages from './clients/mp_web/tmn/getCurrentPages';
331
331
  import mpWebTmnGetSDKVersion from './clients/mp_web/tmn/getSDKVersion';
332
332
  import mpWebMpayGetAppToken from './clients/mp_web/mpay/getAppToken';
333
+ import mpWebMpayGetLocation from './clients/mp_web/mpay/getLocation';
333
334
  import mpWebMpayGetAppId from './clients/mp_web/mpay/getAppId';
334
335
  import mpWebMpayGetCurrentPages from './clients/mp_web/mpay/getCurrentPages';
335
336
  import mpWebMpayGetSDKVersion from './clients/mp_web/mpay/getSDKVersion';
@@ -1931,7 +1932,7 @@ export var getLocation = function getLocation() {
1931
1932
  if (appEnv.isMpWebGcash) return mpWebGetLocation.apply(void 0, rest);
1932
1933
  if (appEnv.isMpWebTngd) return mpWebGetLocation.apply(void 0, rest);
1933
1934
  if (appEnv.isMpWebTmn) return mpWebGetLocation.apply(void 0, rest);
1934
- if (appEnv.isMpWebMpay) return mpWebGetLocation.apply(void 0, rest);
1935
+ if (appEnv.isMpWebMpay) return mpWebMpayGetLocation.apply(void 0, rest);
1935
1936
  if (appEnv.isMpWebToss) return mpWebGetLocation.apply(void 0, rest);
1936
1937
  if (appEnv.isWebAlipay) return webAlipayGetLocation.apply(void 0, rest);
1937
1938
  if (appEnv.isWebDemo) return webDemoGetLocation.apply(void 0, rest);
@@ -1,2 +1,2 @@
1
- import fill from '../../../common/apis/generated/mp_web/getLocation';
1
+ import fill from '../../../common/apis/custom/mp_web/mpay/getLocation';
2
2
  export default fill;
@@ -1,3 +1,3 @@
1
1
  // auto-generated
2
- import fill from '../../../common/apis/generated/mp_web/getLocation';
2
+ import fill from '../../../common/apis/custom/mp_web/mpay/getLocation';
3
3
  export default fill;
@@ -21,7 +21,6 @@ import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/
21
21
  import { getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync } from '../../../common/apis/generated/mp_web/getConnectedBluetoothDevices';
22
22
  import { getFileInfo, getFileInfoAsync } from '../../../common/apis/generated/mp_web/getFileInfo';
23
23
  import { getImageInfo, getImageInfoAsync } from '../../../common/apis/generated/mp_web/getImageInfo';
24
- import { getLocation, getLocationAsync } from '../../../common/apis/generated/mp_web/getLocation';
25
24
  import { getNetworkType, getNetworkTypeAsync } from '../../../common/apis/generated/mp_web/getNetworkType';
26
25
  import { getOpenUserInfo, getOpenUserInfoAsync } from '../../../common/apis/generated/mp_web/getOpenUserInfo';
27
26
  import { getSavedFileInfo, getSavedFileInfoAsync } from '../../../common/apis/generated/mp_web/getSavedFileInfo';
@@ -119,6 +118,7 @@ import { compressImage, compressImageAsync } from '../../../common/apis/generate
119
118
  import { setTabBarItem, setTabBarItemAsync } from '../../../common/apis/generated/mp_web/setTabBarItem';
120
119
  import { showTabBar, showTabBarAsync } from '../../../common/apis/generated/mp_web/showTabBar';
121
120
  import getAppToken from './getAppToken';
121
+ import getLocation from './getLocation';
122
122
  import getAppId from './getAppId';
123
123
  import getCurrentPages from './getCurrentPages';
124
124
  import getSDKVersion from './getSDKVersion';
@@ -185,12 +185,6 @@ declare const _default: {
185
185
  } & AsyncCallback<any>) => void;
186
186
  getFileInfo: (args: GetFileArgs) => void;
187
187
  getImageInfo: (args: GetImageInfo) => void;
188
- getLocation: (args: {
189
- bizType?: string | undefined;
190
- requestType?: number | undefined;
191
- timeout?: number | undefined;
192
- horizontalAccuracy?: number | undefined;
193
- } & GetLocationArgs) => void;
194
188
  getNetworkType: (args: GetNetworkTypeArgs) => void;
195
189
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
196
190
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -408,6 +402,12 @@ declare const _default: {
408
402
  animation?: boolean | undefined;
409
403
  } & import("@hylid/types").AsyncCallback<void>) => void;
410
404
  getAppToken: (args?: any) => void;
405
+ getLocation: (args: {
406
+ bizType?: string | undefined;
407
+ requestType?: number | undefined;
408
+ timeout?: number | undefined;
409
+ horizontalAccuracy?: number | undefined;
410
+ } & GetLocationArgs) => void;
411
411
  getAppId: (args: import("@hylid/types").AsyncCallback<{
412
412
  appId: string;
413
413
  }>) => void;
@@ -415,5 +415,5 @@ declare const _default: {
415
415
  getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
416
416
  };
417
417
  export default _default;
418
- export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, setTabBarItem, showTabBar, getAppToken, getAppId, getCurrentPages, getSDKVersion, };
419
- export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToBizSceneAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, setTabBarItemAsync, showTabBarAsync, };
418
+ export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, setTabBarItem, showTabBar, getAppToken, getLocation, getAppId, getCurrentPages, getSDKVersion, };
419
+ export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToBizSceneAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, setTabBarItemAsync, showTabBarAsync, };
@@ -22,7 +22,6 @@ import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/
22
22
  import { getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync } from '../../../common/apis/generated/mp_web/getConnectedBluetoothDevices';
23
23
  import { getFileInfo, getFileInfoAsync } from '../../../common/apis/generated/mp_web/getFileInfo';
24
24
  import { getImageInfo, getImageInfoAsync } from '../../../common/apis/generated/mp_web/getImageInfo';
25
- import { getLocation, getLocationAsync } from '../../../common/apis/generated/mp_web/getLocation';
26
25
  import { getNetworkType, getNetworkTypeAsync } from '../../../common/apis/generated/mp_web/getNetworkType';
27
26
  import { getOpenUserInfo, getOpenUserInfoAsync } from '../../../common/apis/generated/mp_web/getOpenUserInfo';
28
27
  import { getSavedFileInfo, getSavedFileInfoAsync } from '../../../common/apis/generated/mp_web/getSavedFileInfo';
@@ -120,6 +119,7 @@ import { compressImage, compressImageAsync } from '../../../common/apis/generate
120
119
  import { setTabBarItem, setTabBarItemAsync } from '../../../common/apis/generated/mp_web/setTabBarItem';
121
120
  import { showTabBar, showTabBarAsync } from '../../../common/apis/generated/mp_web/showTabBar';
122
121
  import getAppToken from './getAppToken';
122
+ import getLocation from './getLocation';
123
123
  import getAppId from './getAppId';
124
124
  import getCurrentPages from './getCurrentPages';
125
125
  import getSDKVersion from './getSDKVersion';
@@ -147,7 +147,6 @@ export default {
147
147
  getConnectedBluetoothDevices: getConnectedBluetoothDevices,
148
148
  getFileInfo: getFileInfo,
149
149
  getImageInfo: getImageInfo,
150
- getLocation: getLocation,
151
150
  getNetworkType: getNetworkType,
152
151
  getOpenUserInfo: getOpenUserInfo,
153
152
  getSavedFileInfo: getSavedFileInfo,
@@ -245,9 +244,10 @@ export default {
245
244
  setTabBarItem: setTabBarItem,
246
245
  showTabBar: showTabBar,
247
246
  getAppToken: getAppToken,
247
+ getLocation: getLocation,
248
248
  getAppId: getAppId,
249
249
  getCurrentPages: getCurrentPages,
250
250
  getSDKVersion: getSDKVersion
251
251
  };
252
- export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, setTabBarItem, showTabBar, getAppToken, getAppId, getCurrentPages, getSDKVersion };
253
- export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToBizSceneAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, setTabBarItemAsync, showTabBarAsync };
252
+ export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, setTransparentTitle, getRunScene, chooseFileFromDisk, chooseVideo, compressImage, setTabBarItem, showTabBar, getAppToken, getLocation, getAppId, getCurrentPages, getSDKVersion };
253
+ export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToBizSceneAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, setTransparentTitleAsync, getRunSceneAsync, chooseFileFromDiskAsync, chooseVideoAsync, compressImageAsync, setTabBarItemAsync, showTabBarAsync };
@@ -0,0 +1,7 @@
1
+ declare const _default: (args: {
2
+ bizType?: string | undefined;
3
+ requestType?: number | undefined;
4
+ timeout?: number | undefined;
5
+ horizontalAccuracy?: number | undefined;
6
+ } & GetLocationArgs) => void;
7
+ export default _default;
@@ -0,0 +1,32 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6
+ }
7
+ return t;
8
+ };
9
+ return __assign.apply(this, arguments);
10
+ };
11
+ var __rest = this && this.__rest || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
14
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
15
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
18
+ };
19
+ import { call } from '@hylid/call';
20
+ export default (function (opt) {
21
+ var _a = opt || {},
22
+ _fail = _a.fail,
23
+ rest = __rest(_a, ["fail"]);
24
+ call('getLocation', __assign(__assign({}, rest), {
25
+ fail: function fail(e) {
26
+ if ((e === null || e === void 0 ? void 0 : e.error) === 5) {
27
+ e.error = 11; // MPAY 在安卓上无权限返回的错误码是5, iOS及标准文档都是11(没有5这个错误码,在这里做一次错误码转换兼容,参考 https://smallfish.antfin-inc.com/myapi/my.getLocation
28
+ }
29
+ _fail === null || _fail === void 0 ? void 0 : _fail(e);
30
+ }
31
+ }));
32
+ });