@@ -72,7 +72,6 @@ public class R8 extends AbstractBaseTask {
7272 private static final String CONVENTION_MAPPING_FILE = "mappingFile" ;
7373 private static final String CONVENTION_MINIFY_ENABLED = "minifyEnabled" ;
7474 private static final String CONVENTION_OBFUSCATION_ENABLED = "obfuscationEnabled" ;
75- private static final String CONVENTION_COLLECTOR_ENABLED = "collectorEnabled" ;
7675 private static final String CONVENTION_DEBUG_ENABLED = "debugEnabled" ;
7776 private static final String CONVENTION_DESUGAR_CONFIG = "desugarConfig" ;
7877
@@ -230,19 +229,6 @@ public boolean isObfuscationEnabled() {
230229 return getOrConvention (obfuscationEnabled , CONVENTION_OBFUSCATION_ENABLED );
231230 }
232231
233- @ Nullable
234- private Boolean collectorEnabled ;
235-
236- @ IgnoreUnused
237- public void setCollectorEnabled (Boolean collectorEnabled ) {
238- this .collectorEnabled = collectorEnabled ;
239- }
240-
241- @ Input
242- public boolean isCollectorEnabled () {
243- return getOrConvention (collectorEnabled , CONVENTION_COLLECTOR_ENABLED );
244- }
245-
246232 @ Nullable
247233 private Boolean debugEnabled ;
248234
@@ -370,12 +356,6 @@ private void composeConfigurationFile() {
370356 startSection (conf , "Appending from " + baseCfgFile );
371357 conf .append (FileUtils .read (baseCfgFile ));
372358
373- if (isCollectorEnabled ()) {
374- final File collectedConfig = getProguardCollectTaskDep ().getOutCfgFile ();
375- startSection (conf , "Appending from " + collectedConfig );
376- conf .append (FileUtils .read (collectedConfig ));
377- }
378-
379359 startSection (conf , "Shrinking & obfuscation flags" );
380360 if (!isCustomisedBaseConfig ()) {
381361 if (isMinifyEnabled ()) {
@@ -459,15 +439,6 @@ public ClassValidate getClassValidateTaskDep() {
459439 return classValidateTaskDep ;
460440 }
461441
462- private ProguardCollect proguardCollectTaskDep ;
463-
464- @ Nullable
465- @ IgnoreUnused
466- @ Internal
467- public ProguardCollect getProguardCollectTaskDep () {
468- return proguardCollectTaskDep ;
469- }
470-
471442 protected final void setupMoeTask (final @ NotNull SourceSet sourceSet , final @ NotNull Mode mode ) {
472443 Require .nonNull (sourceSet );
473444
@@ -487,10 +458,6 @@ protected final void setupMoeTask(final @NotNull SourceSet sourceSet, final @Not
487458 classValidateTaskDep = classValidateTask ;
488459 dependsOn (classValidateTask );
489460
490- final ProguardCollect proguardCollectTask = getMoePlugin ().getTaskBy (ProguardCollect .class , sourceSet , mode );
491- proguardCollectTaskDep = proguardCollectTask ;
492- dependsOn (proguardCollectTask );
493-
494461 addConvention (CONVENTION_R8_JAR , sdk ::getR8Jar );
495462 addConvention (CONVENTION_BASE_CFG_FILE , () -> {
496463 if (ext .proguard .getBaseCfgFile () != null ) {
@@ -570,7 +537,6 @@ protected final void setupMoeTask(final @NotNull SourceSet sourceSet, final @Not
570537 addConvention (CONVENTION_LOG_FILE , () -> resolvePathInBuildDir (out , "R8.log" ));
571538 addConvention (CONVENTION_MINIFY_ENABLED , ext .proguard ::isMinifyEnabled );
572539 addConvention (CONVENTION_OBFUSCATION_ENABLED , ext .proguard ::isObfuscationEnabled );
573- addConvention (CONVENTION_COLLECTOR_ENABLED , ext .proguard ::isProguardCollectorEnabled );
574540 addConvention (CONVENTION_DEBUG_ENABLED , () -> mode .equals (Mode .DEBUG ));
575541 addConvention (CONVENTION_DESUGAR_CONFIG , () -> {
576542 if (ext .proguard .getLevelRaw () == ProGuardOptions .LEVEL_ALL ) {
0 commit comments