Comments (6)
The only update for me that is currently working is
apt 'com.gabrielittner.auto.value:auto-value-cursor:0.2.0'
provided 'com.gabrielittner.auto.value:auto-value-cursor-annotations:0.2.0'
The 0.4.1-SNAPSHOT however isn't working for me
from auto-value-cursor.
Does 0.4.0 work?
When you use the SNAPSHOT is there nothing generated at all or are just the Cursor/ContentValues methods not generated? Do you see any error message when compiling?
from auto-value-cursor.
Nothing generated .
On 0.3.1 everything is working including the abstract ContentValues toContentValues(); generation.
On 0.2.0 everything is working except the abstract ContentValues toContentValues(); generation.
On 0.4.0, 0.4.1-SNAPSHOT I couldn't get any generation to work.
Below gradle is working
apt 'com.gabrielittner.auto.value:auto-value-cursor:0.3.1'
provided 'com.gabrielittner.auto.value:auto-value-cursor-annotations:0.3.1'
from auto-value-cursor.
There seems to be a dependency conflict with dagger2:
java.lang.NoSuchMethodError: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock;
The method was added in JavaPoet 1.6. dagger-compiler includes 1.5.1 in it's jar and that seems to replace auto-value-cursor's dependency.
+--- com.google.dagger:dagger-compiler:2.2
| +--- com.google.dagger:dagger:2.2
| | \--- javax.inject:javax.inject:1
| +--- com.google.dagger:dagger-producers:2.2
| | +--- com.google.dagger:dagger:2.2 (*)
| | \--- com.google.guava:guava:19.0
| \--- com.google.guava:guava:19.0
+--- com.google.auto.value:auto-value:1.2
+--- com.gabrielittner.auto.value:auto-value-cursor:0.4.0
| +--- com.gabrielittner.auto.value:auto-value-cursor-annotations:0.4.0
| +--- com.google.auto.value:auto-value:1.2
| +--- com.google.auto.service:auto-service:1.0-rc2
| | +--- com.google.auto:auto-common:0.3 -> 0.6
| | | \--- com.google.guava:guava:18.0 -> 19.0
| | \--- com.google.guava:guava:18.0 -> 19.0
| \--- com.squareup:javapoet:1.6.0
I'll see if I can find a workaround, otherwise I'll replace the usage of that one method.
from auto-value-cursor.
Adding apt com.squareup:javapoet:1.6.0
before dagger 2 will fix the problem.
from auto-value-cursor.
Dagger 2.4 also uses JavaPoet 1.6 and it should work without explicitly adding JavaPoet to your dependencies.
from auto-value-cursor.
Related Issues (20)
- auto-value-cursor 2.0.0-rc1 still does not support incremental build.
- auto-value-cursor 2.0.0 does not include shadow HOT 3
- Annotation to avoid a property being filled in ContentValues HOT 4
- Consider putNull support for foreign key ID values HOT 1
- Check for null in createFromCursor HOT 3
- Improvement: reusable CursorAdapter class with different column name HOT 2
- Improvement: fillContentValues HOT 2
- @ColumnAdapter class can't be found at runtime HOT 2
- toContentValues is not generated HOT 3
- Default support for Optional without a custom type adapter HOT 2
- Improvement: Provide dependency in ColumnTypeAdapter
- Annotation @Nullable not handled correctly
- Special handling for autogenerated _id columns? HOT 4
- @AutoValue dependencies issue? HOT 1
- Improvement: Register global ColumnAdapters HOT 3
- Improvement: support ColumnTypeAdapters with identical names HOT 8
- Improvement: Support to ignore fields HOT 2
- set default value if a item in cursor is null HOT 1
- Improvement: Support to ignore fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-value-cursor.