Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Support Gradle incremental annotation processing #2193

Activity

  1. smaugho commented on Feb 20, 2019

    @smaugho
    Contributor

    @WonderCsabo just checking the code in the PrefHandler I found this:

    Set<? extends Element> sharedPrefElements = getEnvironment().getValidatedElements().getRootAnnotatedElements(SharedPref.class.getName());
    for (Element sharedPrefElement : sharedPrefElements) {
    	GeneratedClassHolder sharedPrefHolder = getEnvironment().getGeneratedClassHolder(sharedPrefElement);
    	String sharedPrefName = sharedPrefHolder.getGeneratedClass().name();
    
    	if (elementTypeName.equals(sharedPrefName)) {
    		prefClass = sharedPrefHolder.getGeneratedClass();
    		break;
    	}
    }

    This code assumes that all the @SharedPref annotated classes are being processed in the environment. This would be no that different that what we were talking on #1520. This should break with incremental compilations, since there is no guarantee that the @SharedPref annotated classes would be processed when using incremental compilation.

  2. WonderCsabo commented on Feb 20, 2019

    @WonderCsabo
    MemberAuthor

    We have to check it. The docs says we can access the elements in the annotated elements AST, but i am not sure we will reach it trought the validated elements, maybe we have to do otherwise.

  3. ihorb10 commented on Oct 19, 2019

    @ihorb10

    Hi! Was wondering if you're planning to add support this?

  4. WonderCsabo commented on Oct 21, 2019

    @WonderCsabo
    MemberAuthor

    We are planning, yes. ;) Contributions are very much welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions