Skip to content

Commit

Permalink
chore: move more files into src/ for types
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Mar 10, 2024
1 parent 37567ef commit 07d9b26
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/cli/lib/cache/price_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:cli/cli.dart';
import 'package:cli/config.dart';
import 'package:collection/collection.dart';
import 'package:types/price.dart';
import 'package:types/types.dart';

/// A collection of price records.
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/lib/nav/route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ class RoutePlanner {
final JumpCache _jumpCache;
final bool Function(WaypointSymbol) _sellsFuel;

// TODO(eseidel): This shouldn't be public.
/// The connectivity used for this RoutePlanner.
SystemConnectivity get systemConnectivity => _systemConnectivity;

/// Clear any cached routing data. Called when jump gate availability changes
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/test/behavior/advance_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class _MockShipNav extends Mock implements ShipNav {}

class _MockShipNavRoute extends Mock implements ShipNavRoute {}

class _MockSystemConnectivity extends Mock implements SystemConnectivity {}

void main() {
test('advanceShipBehavior idle does not spin hot', () async {
final api = _MockApi();
Expand Down
2 changes: 1 addition & 1 deletion packages/db/test/transaction_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:db/src/transaction.dart';
import 'package:test/test.dart';
import 'package:types/transaction.dart';
import 'package:types/types.dart';

void main() {
test('Transaction round trip', () {
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion packages/types/lib/src/market_price.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:meta/meta.dart';
import 'package:types/price.dart';
import 'package:types/types.dart';

// {"waypointSymbol": "X1-ZS60-53675E", "symbol": "IRON_ORE", "supply":
Expand Down
4 changes: 1 addition & 3 deletions packages/types/lib/src/mount.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'package:meta/meta.dart';
import 'package:more/collection.dart';
import 'package:types/api.dart';
import 'package:types/behavior.dart';
import 'package:types/src/symbol.dart';
import 'package:types/types.dart';

/// Symbols of all cargo modules.
final kCargoModules = {
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion packages/types/lib/src/shipyard_price.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:meta/meta.dart';
import 'package:types/price.dart';
import 'package:types/types.dart';

/// Price data for a single ship type in a shipyard.
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions packages/types/lib/types.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export 'api.dart';
export 'behavior.dart';
export 'enum.dart';
export 'route.dart';
export 'src/agent.dart';
export 'src/behavior.dart';
export 'src/charting_record.dart';
export 'src/construction.dart';
export 'src/contract.dart';
Expand All @@ -16,10 +15,12 @@ export 'src/market_listing.dart';
export 'src/market_price.dart';
export 'src/mount.dart';
export 'src/position.dart';
export 'src/price.dart';
export 'src/route.dart';
export 'src/shipyard_listing.dart';
export 'src/shipyard_price.dart';
export 'src/survey.dart';
export 'src/symbol.dart';
export 'src/system.dart';
export 'src/trading.dart';
export 'system.dart';
export 'transaction.dart';
export 'src/transaction.dart';
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 07d9b26

Please sign in to comment.