Skip to content

Commit

Permalink
Stop using singleton instance on Dart bindings
Browse files Browse the repository at this point in the history
Apply changes on Flutter plugin
  • Loading branch information
erdemyerebasmaz committed May 27, 2024
1 parent 797375d commit ff1697e
Show file tree
Hide file tree
Showing 12 changed files with 5,081 additions and 16,200 deletions.
835 changes: 423 additions & 412 deletions libs/sdk-core/src/binding.rs

Large diffs are not rendered by default.

524 changes: 364 additions & 160 deletions libs/sdk-core/src/frb_generated.io.rs

Large diffs are not rendered by default.

1,948 changes: 1,274 additions & 674 deletions libs/sdk-core/src/frb_generated.rs

Large diffs are not rendered by default.

469 changes: 273 additions & 196 deletions libs/sdk-flutter/ios/Classes/frb_generated.h

Large diffs are not rendered by default.

328 changes: 12 additions & 316 deletions libs/sdk-flutter/lib/breez_sdk.dart

Large diffs are not rendered by default.

6,902 changes: 0 additions & 6,902 deletions libs/sdk-flutter/lib/bridge_generated.dart

This file was deleted.

6,121 changes: 0 additions & 6,121 deletions libs/sdk-flutter/lib/bridge_generated.freezed.dart

This file was deleted.

458 changes: 250 additions & 208 deletions libs/sdk-flutter/lib/generated/binding.dart

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions libs/sdk-flutter/lib/generated/error.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

import 'frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
part 'error.freezed.dart';

@freezed
sealed class ConnectError with _$ConnectError implements FrbException {
const ConnectError._();

/// This error is raised when a general error occurs not specific to other error variants
/// in this enum.
const factory ConnectError.generic({
required String err,
}) = ConnectError_Generic;

/// This error is raised when [crate::models::ConnectRequest::restore_only] is set to true
/// and no node exists for [crate::models::ConnectRequest::seed].
const factory ConnectError.restoreOnly({
required String err,
}) = ConnectError_RestoreOnly;

/// This error is raised when a connection to an external service fails.
const factory ConnectError.serviceConnectivity({
required String err,
}) = ConnectError_ServiceConnectivity;
}
Loading

0 comments on commit ff1697e

Please sign in to comment.