Skip to content

Commit

Permalink
Split native convertion functions into separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed May 6, 2024
1 parent 4009903 commit 031cf67
Show file tree
Hide file tree
Showing 23 changed files with 535 additions and 499 deletions.
1 change: 1 addition & 0 deletions packages/realm_dart/lib/src/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:path/path.dart' as _path;
import 'app.dart';
import 'init.dart';
import 'logging.dart';
import 'native/from_native.dart';
import 'native/realm_core.dart';
import 'realm_class.dart';
import 'user.dart';
Expand Down
1 change: 1 addition & 0 deletions packages/realm_dart/lib/src/native/app_handle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import '../logging.dart';
import '../realm_class.dart'; // TODO: Remove this import
import '../scheduler.dart';
import 'convert.dart';
import 'convert_native.dart';
import 'credentials_handle.dart';
import 'error_handling.dart';
import 'handle_base.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import 'dart:ffi';
import 'package:ffi/ffi.dart';

import '../collections.dart'; // TODO: Remove this import
import 'from_native.dart';
import 'handle_base.dart';
import 'realm_bindings.dart';
import 'realm_core.dart'; // TODO: Remove this import
import 'realm_library.dart';

class CollectionChangesHandle extends HandleBase<realm_collection_changes> {
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_dart/lib/src/native/config_handle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import '../migration.dart'; // TODO: Remove this import
import '../realm_class.dart'; // TODO: Remove this import
import '../scheduler.dart'; // TODO: Remove this import
import '../user.dart'; // TODO: Remove this import
import 'convert_native.dart';
import 'handle_base.dart';
import 'realm_bindings.dart';
import 'realm_core.dart';
import 'realm_handle.dart';
import 'realm_library.dart';
import 'schema_handle.dart'; // TODO: Remove this import
Expand Down
2 changes: 2 additions & 0 deletions packages/realm_dart/lib/src/native/convert_native.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export 'to_native.dart';
export 'from_native.dart';
2 changes: 1 addition & 1 deletion packages/realm_dart/lib/src/native/credentials_handle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import 'package:ffi/ffi.dart';
import '../credentials.dart'; // TODO: Remove this import
import 'handle_base.dart';
import 'realm_bindings.dart';
import 'realm_core.dart'; // TODO: Remove this import
import 'realm_library.dart';
import 'to_native.dart';

class CredentialsHandle extends HandleBase<realm_app_credentials> {
CredentialsHandle(Pointer<realm_app_credentials> pointer) : super(pointer, 16);
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_dart/lib/src/native/decimal128.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import 'package:ffi/ffi.dart';
import 'package:realm_common/realm_common.dart' as common;

import 'realm_bindings.dart';
import 'realm_core.dart'; // TODO: Remove this import
import 'realm_library.dart';
import 'to_native.dart';

/// A 128-bit decimal floating point number.
class Decimal128 implements Comparable<Decimal128>, common.Decimal128 {
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_dart/lib/src/native/error_handling.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import 'dart:ffi';
import 'package:ffi/ffi.dart';

import '../realm_object.dart'; // TODO: Remove this import
import 'from_native.dart';
import 'realm_bindings.dart';
import 'realm_core.dart';
import 'realm_library.dart';

extension PointerEx<T extends NativeType> on Pointer<T> {
Expand Down
Loading

0 comments on commit 031cf67

Please sign in to comment.