TBD54566975 / didpay

Mobile app that provides a way for individuals to interact with PFIs via tbDEX
Apache License 2.0
6 stars 7 forks source link

Fix `isPhysicalDevice` check in web environment #296

Closed ethan-tbd closed 1 month ago

ethan-tbd commented 2 months ago
DartError: Unsupported operation: Platform._operatingSystem
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3       throw_
dart-sdk/lib/_internal/js_dev_runtime/patch/io_patch.dart 244:5                   _operatingSystem
dart-sdk/lib/io/platform_impl.dart 56:40                                          get operatingSystem
dart-sdk/lib/io/platform.dart 83:44                                               get operatingSystem
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 1293:8  get
dart-sdk/lib/io/platform.dart 161:46                                              get isIOS
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 1293:8  get
packages/didpay/features/device/device_info_service.dart 11:53                    isPhysicalDevice
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5                _async
packages/didpay/features/device/device_info_service.dart 11:32                    isPhysicalDevice
packages/didpay/features/dap/dap_qr_tile.dart 28:30                               <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5                _async
packages/didpay/features/dap/dap_qr_tile.dart 27:11                               <fn>
dart-sdk/lib/async/future.dart 422:39                                             <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:11           internalCallback
mohitrajsinha commented 1 month ago

HI @ethan-tbd . Please assign me this issue.

mohitrajsinha commented 1 month ago

Hi @ethan-tbd , I tried running the app but got this issue DartError: Unsupported operation: Int64 accessor not supported by dart2js.. I think there is an issue with web5: ^0.3.0 package. Can we fix this issue and run the app? image

ethan-tbd commented 1 month ago

@mohitrajsinha fix has been made: https://github.com/TBD54566975/didpay/pull/304

mohitrajsinha commented 1 month ago

.take

github-actions[bot] commented 1 month ago

The issue you are trying to assign to yourself is already assigned.