Skip to content

Commit 7153f76

Browse files
committed
Additional clean-up
1 parent cc9ed22 commit 7153f76

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

lib/commands/test.dart

+2-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ import 'package:test_core/src/platform.dart' as hack
2424
import '../tizen_cache.dart';
2525
import '../tizen_plugins.dart';
2626

27-
class TizenTestCommand extends TestCommand
28-
with DartPluginRegistry, TizenRequiredArtifacts {
27+
class TizenTestCommand extends TestCommand with TizenRequiredArtifacts {
2928
TizenTestCommand({
3029
bool verboseHelp = false,
3130
TestWrapper testWrapper = const TestWrapper(),
@@ -68,11 +67,8 @@ class TizenTestWrapper implements TestWrapper {
6867

6968
// Keep this logic in sync with _generateEntrypointWithPluginRegistrant
7069
// in tizen_plugins.dart.
71-
final File packagesFile = project.directory
72-
.childDirectory('.dart_tool')
73-
.childFile('package_config.json');
7470
final PackageConfig packageConfig = await loadPackageConfigWithLogging(
75-
packagesFile,
71+
project.packageConfigFile,
7672
logger: globals.logger,
7773
);
7874
final Directory runnerDir = globals.fs.systemTempDirectory.createTempSync();

lib/tizen_plugins.dart

+1-4
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,8 @@ Future<void> _generateEntrypointWithPluginRegistrant(
161161
File mainFile,
162162
File newMainFile,
163163
) async {
164-
final File packagesFile = project.directory
165-
.childDirectory('.dart_tool')
166-
.childFile('package_config.json');
167164
final PackageConfig packageConfig = await loadPackageConfigWithLogging(
168-
packagesFile,
165+
project.packageConfigFile,
169166
logger: globals.logger,
170167
);
171168
final Uri mainFileUri = mainFile.absolute.uri;

0 commit comments

Comments
 (0)