vm75 / sweph.dart

GNU Affero General Public License v3.0
16 stars 6 forks source link

Can it support web? #5

Closed softwareone2020 closed 1 year ago

softwareone2020 commented 1 year ago

The error is as follows,

../lib/src/sweph_wrapper.dart:3:8: Error: Not found: 'dart:ffi' import 'dart:ffi'; ^ ../lib/src/sweph_bindings_generated.dart:9:8: Error: Not found: 'dart:ffi' import 'dart:ffi' as ffi; ^ ../lib/src/native_utils.dart:2:8: Error: Not found: 'dart:ffi' import 'dart:ffi'; ^ /C:/Users/One/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/ffi-2.0.1/lib/src/allocation.dart:5:8: Error: Not found: 'dart:ffi' import 'dart:ffi'; ^ /C:/Users/One/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/ffi-2.0.1/lib/src/arena.dart:8:8: Error: Not found: 'dart:ffi' import 'dart:ffi'; ^ ...

Failed to compile application.

vm75 commented 1 year ago

Hi, Thanks for the ticket. Let me try to do something for web

vm75 commented 1 year ago

unfortunately, the sweph library is very tightly coupled with file-io and porting to web is a challenge. I could think of using URL instead of path, open online file instead of local, etc., or ignore files altogether. But needs some deep factoring and presently, I am not up-to it.

vm75 commented 1 year ago

Enabled Web :)

softwareone2020 commented 1 year ago

Thank you so much :)