Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with other annotation processing libraries #16

Closed
izumin5210 opened this issue Nov 28, 2015 · 1 comment · Fixed by #17
Closed

Compatibility with other annotation processing libraries #16

izumin5210 opened this issue Nov 28, 2015 · 1 comment · Fixed by #17

Comments

@izumin5210
Copy link
Owner

When I use Droidux with Dagger 2, the compiler throws following:

Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.IllegalArgumentException: DroiduxRootStore cannot be represented as a Class<?>.
@izumin5210
Copy link
Owner Author

New store generation plan

User define:

@Reducer(Counter.class)
public class CounterReducer {
  @Dispatchable
  Counter increment(Counter counter, IncrementCounterAction action) {
    // ...
  }
}

@Store({CounterReducer.class})
public interface RootStore extends Store {
  Counter counter();
  Observable<Counter> observableCounter();
}

Processor generate:

public class DroiduxRootStore implements RootStore {
  public Counter counter() {
    // ...
  }

  public Observable<Counter> observeCounter() {
    // ...
  }

  public Observable<Action> dispatch(Action action) {
    // ...
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant