Comments (10)
@markchristopherng yes just run ./gradlew henson-pluigin:assemble on my fork and copy the jar.
from dart.
@markchristopherng the problem now, if you enable gradle configuration cache generateHensonNavigator task will fail your build. Do you have plan to use gradle config cache ?
Currently we don't use the gradle config cache
from dart.
It can be fix when change the parameter type: https://github.com/f2prateek/dart/pull/244/files
But it will need to build using gradle 6.6.1. Use 6.6.1 on henson-plugin module works, but i got another issue with test failed on dart-processor module.
from dart.
So the test of dart-processor will failed if using gradle 5 or above.
After debugging one by one here few things i found:
- It happen after using gradle 5 (from 4.10.3)
- Dart not generating binder field if class parent from outside class.
- https://github.com/f2prateek/dart/blob/master/dart-common/src/main/java/dart/common/util/NavigationModelBindingTargetUtil.java#L113 this one return null even with the same parameter on gradle 5 and above, while it return correct type on 4.10.3.
Any idea why it is return null on different gradle version ??
from dart.
Seems https://github.com/f2prateek/dart/blob/master/dart-common/src/main/java/dart/common/util/NavigationModelBindingTargetUtil.java#L113 is null because the binder not generated so the element cannot find it
This one not generated in gradle 5 and above.
dart.processor.data.ActivityWithNavigationModelField__NavigationModelBinder
from dart.
Seems it is because gradle 5 ignore annotation processor on compile class path. So we need to specify annotation processor path.
However i don't find a way to add annotation processor path from a class on the same module. So i move all test from dart-processor into a new module, and consume the dart-processor using this way:
tasks.withType(JavaCompile) {
options.annotationProcessorPath = configurations.annotationProcessor
}
dependencies{
...
annotationProcessor project(':dart-processor')
}
from dart.
So can we update this library to gradle 6 above ?
from dart.
Hi @doniwinata0309 does your PR fix this issue? Just wondering if i now i have to build my own version of this library just to get past this issue.
from dart.
I built the PR and it fixes the issue and it works with Gradle 6.7 which got release last week
from dart.
@markchristopherng the problem now, if you enable gradle configuration cache generateHensonNavigator task will fail your build. Do you have plan to use gradle config cache ?
from dart.
Related Issues (20)
- Logo/Icon Proposal HOT 12
- Dart 2.0 can't find ExtraInjector with Proguard minify enabled
- Why is MyActivity1NavigationModel extends Activity? HOT 2
- Multi module using DH3, M2 to M1 cycle navigation HOT 15
- Create kotlin sample
- Check NavigationModel FQN at compile time
- Update integration tests to consider the new NavigationModel
- Whether it can support Kotlin 1.2.x ?
- [DH3] java.lang.RuntimeException: java.lang.ClassNotFoundException HOT 2
- [DH]Not generated “IntentBuilder” HOT 2
- Remove verbose log
- Add Androidx support HOT 7
- Introduce reflection artifact for use during development
- Support Incremental annotation processing HOT 1
- Use gradle 4.9 and AGP 3.3 task configuration avoidance HOT 1
- Android module with DH-3 enabled recompile `AndroidJavaCompile` when no changes occurred. HOT 4
- Can't use DH3 in Android Dynamic Feature Module HOT 5
- DH2.1 to DH3 migration questions HOT 4
- The plugin does not support Configuration Caching HOT 27
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 dart.