package com.doctoror.particlesdrawable;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Custom Keep annotation that is controlled by this project proguard config.
 * Some flavors can be built with exposing properties hidden by ConfigurableKeep.
 */
@Retention(RetentionPolicy.SOURCE)
public @interface ConfigurableKeep {
}

package com.doctoror.particlesdrawable;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.ElementType.TYPE;

/**
 * Custom Keep annotation that is controlled by this project proguard config.
 * Some flavors can be built with exposing properties hidden by ConfigurableKeep.
 */
@Retention(RetentionPolicy.CLASS)
@Target({PACKAGE, TYPE, ANNOTATION_TYPE, CONSTRUCTOR, METHOD, FIELD})
public @interface ConfigurableKeep {
}

Change ConfigurableKeep retention and target