pgreze
07/27/2019, 2:52 PMvariant.registerJavaGeneratingTask
would be a good way to register output directory + dependsOn the good task like this example:
https://github.com/novoda/sqlite-analyzer/blob/master/analyzer/src/main/groovy/com/novoda/sqlite/generator/SqliteAnalyzerPlugin.groovy#L20
Sadly I’m facing errors:
> Task :app:compileDebugKotlin FAILED
e:.../app/src/main/java/com/github/pgreze/feature/navigation/MainActivity.kt: (6, 8): Unresolved reference: generated
e: .../app/src/main/java/com/github/pgreze/feature/navigation/MainActivity.kt: (17, 44): Unresolved reference: FeatureNavigator
I tried different strategies including variant.addJavaSourceFoldersToModel / variant.registerExternalAptJavaOutput / and depending on compileDebugKotlin but still the same issue:
I can jump to the generated class FeatureNavigator definition but code is not compiling 😢
Thx in advance for your help!