Open WebMajstr- opened 7 years ago
Thinking about this I do not believe there is an easy way around this without introducing additional greenDAO config options. The plugin does not know wich flavors use greenDAO and which not. It just looks for classes annotated with @Entity
.
-ut
Voting to have some solution here.
There is a new solution: https://stackoverflow.com/a/77126766/20329042
When I build application with flavor, objects for all classes marked with
@Entity
tag get build, not just the ones in current flavor or in main folder.This is causing build issues in cases where greenDAO dependency exists just for a specific flavor.
For example, if I have classes with
@Entity
in pro flavor, they get generated even if i build lite version, and the app.gradle looks like following