diff --git a/byte-buddy/src/main/resources/ByteBuddyAndroidPlugin.java b/byte-buddy/src/main/resources/ByteBuddyAndroidPlugin.java index 64bec71dae..6c8d746acd 100644 --- a/byte-buddy/src/main/resources/ByteBuddyAndroidPlugin.java +++ b/byte-buddy/src/main/resources/ByteBuddyAndroidPlugin.java @@ -667,9 +667,28 @@ public RegularFileProperty invoke(ByteBuddyLocalClassesEnhancerTask task) { protected enum ByteBuddyViewConfiguration implements Action { /** - * The singleton instance. + * A view configuration for classes. */ - INSTANCE; + FOR_CLASSES(BYTE_BUDDY_CLASSES_TYPE), + + /** + * A view configuration for resources. + */ + FOR_RESOURCES(BYTE_BUDDY_RESOURCES_TYPE); + + /** + * The type of the configuration attribute. + */ + private final String type; + + /** + * Creates a new view configuration. + * + * @param type The type of the configuration attribute. + */ + ByteBuddyViewConfiguration(String type) { + this.type = type; + } /** * For external dependencies, it provides their JAR files. For local project's dependencies, it provides their local @@ -678,8 +697,8 @@ protected enum ByteBuddyViewConfiguration implements Action