index.ts 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * App 端编译时模块入口为 uts-proxy,Promise 封装请从 @/utils/permission-manager 引入。
  3. */
  4. // #ifdef APP-ANDROID
  5. export {
  6. checkPermissionSync,
  7. checkPermissionsSync,
  8. checkPermission,
  9. checkPermissions,
  10. requestPermission,
  11. requestPermissions,
  12. openAppSettings,
  13. getSupportedPermissionsSync,
  14. getBluetoothDemoInfoSync,
  15. } from './utssdk/app-android/index.uts'
  16. // #endif
  17. // #ifdef APP-IOS
  18. export {
  19. checkPermissionSync,
  20. checkPermissionsSync,
  21. checkPermission,
  22. checkPermissions,
  23. requestPermission,
  24. requestPermissions,
  25. openAppSettings,
  26. getSupportedPermissionsSync,
  27. getBluetoothDemoInfoSync,
  28. } from './utssdk/app-ios/index.uts'
  29. // #endif
  30. // #ifdef APP-HARMONY
  31. export {
  32. checkPermissionSync,
  33. checkPermissionsSync,
  34. checkPermission,
  35. checkPermissions,
  36. requestPermission,
  37. requestPermissions,
  38. openAppSettings,
  39. getSupportedPermissionsSync,
  40. getBluetoothDemoInfoSync,
  41. } from './utssdk/app-harmony/index.uts'
  42. // #endif