Skip to content

Commit

Permalink
fix: Use barrel file
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 28, 2023
1 parent f928bdf commit 315ce21
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/app_center/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:io';

import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:github/github.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/lib/src/ratings/ratings_l10n.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter/material.dart';

import '../../l10n.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/lib/src/ratings/ratings_model.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:clock/clock.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/lib/src/ratings/ratings_service.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:io';

import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:crypto/crypto.dart';
import 'package:flutter/material.dart';
import 'package:glib/glib.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/app_card_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:app_center/ratings.dart';
import 'package:app_center/widgets.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:snapd/snapd.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/ratings_model_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:app_center/ratings.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:clock/clock.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/ratings_service_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:app_center/src/ratings/exports.dart';
import 'package:app_center/src/ratings/ratings_service.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';

Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/search_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:app_center/ratings.dart';
import 'package:app_center/search.dart';
import 'package:app_center/snapd.dart';
import 'package:app_center/widgets.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:snapd/snapd.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/snap_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:app_center/l10n.dart';
import 'package:app_center/ratings.dart';
import 'package:app_center/snapd.dart';
import 'package:app_center/widgets.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:app_center/ratings.dart';
import 'package:app_center/snapd.dart';
import 'package:app_center/src/deb/deb_model.dart';
import 'package:app_center/src/manage/manage_model.dart';
import 'package:app_center_ratings_client/ratings_client.dart';
import 'package:app_center_ratings_client/app_center_ratings_client.dart';
import 'package:appstream/appstream.dart';
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
Expand Down
3 changes: 2 additions & 1 deletion packages/app_center/test/test_utils.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import 'package:app_center/src/manage/manage_model.dart' as _i17;
import 'package:app_center/src/ratings/exports.dart' as _i21;
import 'package:app_center/src/ratings/ratings_model.dart' as _i12;
import 'package:app_center/src/ratings/ratings_service.dart' as _i4;
import 'package:app_center_ratings_client/ratings_client.dart' as _i11;
import 'package:app_center_ratings_client/app_center_ratings_client.dart'
as _i11;
import 'package:app_center_ratings_client/src/chart.dart' as _i22;
import 'package:appstream/appstream.dart' as _i9;
import 'package:dbus/dbus.dart' as _i20;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export 'src/ratings.dart';
export 'src/ratings_client.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import 'dart:async';
import 'package:grpc/grpc.dart';
import 'package:meta/meta.dart';

import 'src/chart.dart';
import 'src/generated/google/protobuf/empty.pb.dart';
import 'src/generated/ratings_features_app.pbgrpc.dart' as appPb;
import 'src/generated/ratings_features_chart.pbgrpc.dart' as chartPb;
import 'src/generated/ratings_features_user.pbgrpc.dart' as userPb;
import 'src/ratings.dart';
import 'src/user.dart';

export 'src/ratings.dart';
import 'chart.dart';
import 'generated/google/protobuf/empty.pb.dart';
import 'generated/ratings_features_app.pbgrpc.dart' as appPb;
import 'generated/ratings_features_chart.pbgrpc.dart' as chartPb;
import 'generated/ratings_features_user.pbgrpc.dart' as userPb;
import 'ratings.dart';
import 'user.dart';

class RatingsClient {
late appPb.AppClient _appClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:app_center_ratings_client/ratings_client.dart'
import 'package:app_center_ratings_client/app_center_ratings_client.dart'
hide Rating, RatingsBand;
import 'package:app_center_ratings_client/src/chart.dart' as chart;
import 'package:app_center_ratings_client/src/generated/google/protobuf/empty.pb.dart';
Expand Down

0 comments on commit 315ce21

Please sign in to comment.