Skip to content

Commit

Permalink
Export realm_dart.dart from realm package (#1475)
Browse files Browse the repository at this point in the history
This maintains the old package structure, but avoids the
lib folder symlink and separately maintained pubspec.yaml from the
realm package.

Tests are still using symlinks. Will be handled separately.
  • Loading branch information
nielsenko authored Jan 17, 2024
1 parent ac909cf commit f7b2a58
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion flutter/realm_flutter/bin/realm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
//
////////////////////////////////////////////////////////////////////////////////
import 'package:realm/src/cli/main.dart' as x;
import 'package:realm_dart/src/cli/main.dart' as x;
void main(List<String> arguments) => x.main(arguments);
1 change: 0 additions & 1 deletion flutter/realm_flutter/lib

This file was deleted.

1 change: 1 addition & 0 deletions flutter/realm_flutter/lib/realm.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'package:realm_dart/realm.dart';
29 changes: 2 additions & 27 deletions flutter/realm_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,8 @@ environment:
dependencies:
flutter:
sdk: flutter
args: ^2.3.0
build_cli_annotations: ^2.0.0
collection: ^1.16.0
crypto: ^3.0.0
ffi: ^2.0.1
json_annotation: ^4.7.0
logging: ^1.2.0
meta: ^1.1.8
package_config: ^2.0.0
path: ^1.0.0
pubspec_parse: ^1.0.0
pub_semver: ^2.1.0
realm_common:
path: ../../common
realm_generator:
path: ../../generator
tar: ^1.0.1
build_runner: ^2.1.0
http: ^1.0.0
cancellation_token: ^2.0.0

dev_dependencies:
flutter_test:
sdk: flutter
build_cli: ^2.2.2
json_serializable: ^6.1.0
lints: ^2.0.0
realm_dart:
path: ../..

flutter:
plugin:
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/tests/lib

0 comments on commit f7b2a58

Please sign in to comment.