java - Factories generated with auto-factory cant import glide generated api -
i'm using auto-factory , glide generated api. classes generated auto-factory use gliderequests
class generated glidemodule when build finished, gliderequests not imported in generated factory class.
it's if glide generating it's classes after auto-factory thing.
any ideas how can solved? maybe changing build/generating order?
thank you.
a fix use qualified class name in constructor of someclass. instead of
@autofactory public class someclass { someclass(@provided anotherclassfactory anotherclassfactory, @provided somedependency somedependency, int somevalue) { ... } }
use
@autofactory public class someclass { someclass(@provided com.fully.qualifiedpath.anotherclassfactory anotherclassfactory, @provided somedependency somedependency, int somevalue) { ... } }
more details here : https://github.com/google/auto/issues/124
Comments
Post a Comment