Commit Graph

24 Commits

Author SHA1 Message Date
Roei Erez
8cf6a26dc0 Merge branch 'v0.4.0'
* v0.4.0:
  Fix SDK checkout (#528)
  update version to 0.4.0-rc3
  update version to 0.4.0-rc2
  Fix details fields error
  Add notification plugin CI
  update version to 0.4.0-rc1
2024-10-22 10:36:32 +03:00
Roei Erez
8cce2afe5d Add react native bindings 2024-10-18 11:25:10 +02:00
Roei Erez
31fcfaa3db update version to 0.4.0-rc3 2024-10-14 11:45:16 +03:00
Roei Erez
63d9305acd update version to 0.4.0-rc2 2024-10-14 10:44:14 +03:00
Roei Erez
e2fd502827 update version to 0.4.0-rc1 2024-10-13 15:01:46 +03:00
Roei Erez
4d1690bfc4 update version to 0.3.4 2024-09-25 12:36:13 +03:00
Roei Erez
24d41de656 update versions 2024-09-25 09:31:55 +03:00
Roei Erez
cd9cb9c46c update version to 0.3.2 2024-09-24 16:47:32 +03:00
Ross Savage
bd39b7ab02 RN: Prevent conversion of ReadableMap to HashMap (#482)
* Prevent conversion of ReadableMap to HashMap

* Handle Null ReadableType
2024-09-09 20:04:14 +02:00
Ross Savage
59f5e0636c Handle in RN codegen multiple fields in enum variant (#453)
* Update RN example

* Handle enum variants with multiple fields
2024-08-23 06:12:39 +02:00
Roei Erez
d123a77b12 update version to 0.2.1 2024-08-01 16:27:08 +03:00
Roei Erez
65ce16ea5f update version to 0.2.0 2024-07-25 17:19:47 +03:00
Roei Erez
ad0bad1431 update versions to 0.1.4 2024-07-22 15:18:02 +03:00
Ross Savage
8ac220275e Update version to 0.1.3.rc2 2024-07-17 08:19:54 +02:00
Roei Erez
938f74d7d1 update version to 0.1.3.rc1 2024-07-16 09:14:39 +03:00
Ross Savage
da43f7ff78 Rename namespace (#345)
* Rename namespace

* Fix flutter build

* Fix kotlin-multiplatform CI

* Rename repositories
2024-07-09 17:25:05 +02:00
Ross Savage
15a243251e Fix example network and logger call (#349) 2024-07-01 10:11:02 +02:00
Ross Savage
a4af73352a Fix handling of f32 type (#336) 2024-06-27 13:07:41 +02:00
Ross Savage
5d9a8f18a3 Add Config (#267)
* Add config

* Add rustdocs to Config, send_payment (#271)

---------

Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2024-06-01 06:32:45 +02:00
ok300
f6082f2aa5 Add global SDK logger (#242)
* Add SDK global logger

* Add bindings

* Fix path to internal uniffi log

* Exclude "set_log_stream" from generated RN methods

* Move logger-specific structs to a separate module

* Delegate init_logging to method in logger.rs

* Rename uniffi BindingLogger to UniffiBindingLogger

* Add set_log_stream for dart bindings

* Add SDK logger to Dart bindings

* Rename dart binding logger to DartBindingLogger

* Add rustdocs

* RN bindings: Add manual handling for setLogStream()

* Re-generate dart bindings

* Re-generate RN bindings

* Remove LOG_INIT cell

* Set global maximum log level once on initialization

Return a LiquidSdkError::Generic instead of Anyhow error when initializing log stream on Dart bindings

* Do not panic when initializing binding loggers

* Rename LogStream to Logger

---------

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
2024-05-31 18:01:39 +00:00
ok300
434fb80d49 Add shutdown signal (#238)
* Add shutdown signal handling

Revert periodic sync interval change

Revert keep-alive interval change

CLI: Add disconnect command

SDK: Add scaffolding for is_started, shutdown()

Simplify instance init

* Rebase on savage-async-ws branch

* Avoid waiting when shutdown signal is received in the sync loop

* Directly use shutdown signal in background threads

* Acquire is_started lock at the very beginning of start()

* Fix cargo clippy warnings

* Update RN generator (kt): set bindingLiquidSdk to null on disconnect()

* Update RN generator (swift): set bindingLiquidSdk to nil on disconnect()

* Startup: only run foreground sync() if this could be the first run

* Start a sync() in background, before regular sync() loop

* Remove ensure_started check from start()

* Add bindings for disconnect()

* Remove foreground sync condition from startup

* Simplify background sync loop
2024-05-30 08:04:30 +00:00
Ross Savage
06b848a8f3 SDK events framework (#193)
* Add events framework

* Adapt RN codegen and add synced event

* Only use get_connection internally
2024-05-25 06:20:14 +02:00
Ross Savage
337b52d40e Change script paths to langs directory 2024-05-21 15:38:13 +02:00
Ross Savage
c6c5755973 Move bindings to langs directory 2024-05-21 15:21:28 +02:00