cmelchior / realmfieldnameshelper

Realm extension library used to create more type-safe queries.
Apache License 2.0
173 stars 21 forks source link

can't compile when using dagger 2.14.1 #34

Open aegis123 opened 6 years ago

aegis123 commented 6 years ago

Also made an issue for this in the dagger 2 repo #1001 when I update to dagger 2.14.1 I can't compile my project. I can fix it by switching back to the previous dagger version or by changing the order in the dependency block

Gives compilation errors and doesn't generate the code

annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'
implementation 'com.google.dagger:dagger:2.14.1'
compileOnly 'javax.annotation:jsr250-api:1.0'
annotationProcessor 'dk.ilios:realmfieldnameshelper:1.1.1'

Gives compilation errors but generateds the classes

annotationProcessor 'dk.ilios:realmfieldnameshelper:1.1.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'
implementation 'com.google.dagger:dagger:2.14.1'
compileOnly 'javax.annotation:jsr250-api:1.0'
mgohin commented 5 years ago

Old issue, trying to help anyone coming around, it works for me with

implementation 'com.google.dagger:dagger:2.16'
annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
compileOnly 'javax.annotation:jsr250-api:1.0'
compileOnly 'dk.ilios:realmfieldnameshelper:1.1.1'
annotationProcessor 'dk.ilios:realmfieldnameshelper:1.1.1'