discover method
Implementation
@override
Future<List<CleanupTarget>> discover() async {
final targets = <CleanupTarget>[];
final gradle = platform.androidGradleCache;
final buildCache = platform.androidBuildCache;
if (config.clean.gradle && gradle != null) {
targets.add(
CleanupTarget(
id: 'android:gradle-cache',
label: 'Gradle cache',
path: gradle,
category: CleanupCategory.android,
),
);
}
if (buildCache != null) {
targets.add(
CleanupTarget(
id: 'android:build-cache',
label: 'Android build cache',
path: buildCache,
category: CleanupCategory.android,
),
);
}
return targets;
}