Skip to content

Commit

Permalink
Attempting to fix flutter drive hang
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jun 16, 2023
1 parent 7840843 commit e7ae3a2
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 22 deletions.
25 changes: 18 additions & 7 deletions ejson/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,29 @@ and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

Support for serializing and deserializing Extended JSON ([EJson](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/))
Support for serializing and deserializing Extended JSON ([EJson](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/))

| package | | |
| ---------------- | ----------- | --- |
| ejson | | [![pub package](https://img.shields.io/pub/v/ejson.svg)](https://pub.dartlang.org/packages/ejson) |
| ejson_annotation | | [![pub package](https://img.shields.io/pub/v/ejson_annotation.svg)](https://pub.dartlang.org/packages/ejson_annotation) |
| ejson_core | | [![pub package](https://img.shields.io/pub/v/ejson_core.svg)](https://pub.dartlang.org/packages/ejson_core) |
| ejson_generator | | [![pub package](https://img.shields.io/pub/v/ejson_generator.svg)](https://pub.dartlang.org/packages/ejson_generator) |
| ejson_lint | | [![pub package](https://img.shields.io/pub/v/ejson_lint.svg)](https://pub.dartlang.org/packages/ejson_lint) |
| ejson_analyze | | [![pub package](https://img.shields.io/pub/v/ejson.svg)](https://pub.dartlang.org/packages/ejson) |

## Features

## Features

* Support EJson de-/serialization of:

## Getting started

TODO: List prerequisites and provide or point to information on how to
start using the package.
This package require Dart 3.

For an app the simplest way to support EJson is to take a dependency on ejson. This will include all needed packages by transitive closure.

However, all packages will be included as direct dependencies, wheres as

## Usage

Expand All @@ -33,6 +46,4 @@ const like = 'sample';

## Additional information

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
You can read more about EJson at https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/
5 changes: 0 additions & 5 deletions ejson/packages/ejson_analyzer/lib/ejson_analyzer.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library;

export 'src/ejson_analyzer_base.dart';

// TODO: Export any libraries intended for clients of this package.
2 changes: 1 addition & 1 deletion ejson/packages/ejson_core/test/ejson_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import 'dart:convert';

import 'package:ejson_core/ejson_core.dart';
import 'package:ejson_annotation/ejson_annotation.dart';
import 'package:ejson_core/ejson_core.dart';
import 'package:test/test.dart';

import 'ejson_serialization_setup.g.dart';
Expand Down
5 changes: 3 additions & 2 deletions flutter/realm_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
collection: ^1.16.0
crypto: ^3.0.0
ejson_annotation: ^0.1.0
ejson: ^0.1.0
ejson_core: ^0.1.0
ffi: ^2.0.1
json_annotation: ^4.7.0
logging: ^1.2.0
Expand All @@ -41,7 +41,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
ejson_generator: ^0.1.0
ejson: ^0.1.0
ejson_generator: ^0.1.0
lints: ^2.0.0

flutter:
Expand Down
4 changes: 3 additions & 1 deletion flutter/realm_flutter/tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ environment:
dependencies:
flutter:
sdk: flutter
ejson: ^0.1.0
ejson_annotation: ^0.1.0
ejson_core: ^0.1.0
realm:
# When depending on this package from a real application you should use:
# realm_flutter: ^x.y.z
Expand All @@ -24,6 +25,7 @@ dependencies:
dev_dependencies:
flutter_driver:
sdk: flutter
ejson: ^0.1.0
flutter_lints: ^2.0.1
build_runner: ^2.1.2
test: ^1.20.1
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
collection: ^1.16.0
crypto: ^3.0.0
ejson_annotation: ^0.1.0
ejson: ^0.1.0
ejson_core: ^0.1.0
ffi: ^2.0.1
json_annotation: ^4.7.0
logging: ^1.2.0
Expand All @@ -37,6 +37,7 @@ dependencies:

dev_dependencies:
build_cli: ^2.2.0
ejson: ^0.1.0
ejson_generator: ^0.1.0
json_serializable: ^6.3.1
lints: ^2.0.0
Expand Down
11 changes: 6 additions & 5 deletions test/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,27 @@
//
////////////////////////////////////////////////////////////////////////////////
import 'package:ejson/ejson.dart';

import 'dart:async';
import 'dart:collection';
import 'dart:ffi';
import 'dart:io';
import 'dart:math';

import 'package:args/args.dart';
import 'package:ejson/ejson.dart';
import 'package:logging/logging.dart';
import 'package:meta/meta.dart';
import 'package:path/path.dart' as _path;
import 'package:test/test.dart' hide test;
import 'package:test/test.dart' as testing;
import 'package:args/args.dart';

import '../lib/realm.dart';
import '../lib/src/cli/atlas_apps/baas_client.dart';
import '../lib/src/native/realm_core.dart';
import '../lib/src/configuration.dart';
import '../lib/src/native/realm_core.dart';

part 'test.realm.dart';
part 'test.g.dart';
part 'test.realm.dart';

@RealmModel()
class _Car {
Expand Down

0 comments on commit e7ae3a2

Please sign in to comment.