Use annotation processing in Otto

This commit is contained in:
serso 2016-01-26 22:36:14 +01:00
parent 362ec885fe
commit 59e4a15bd2
5 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,10 @@ dependencies {
compile('ch.acra:acra:4.7.0') { compile('ch.acra:acra:4.7.0') {
exclude group: 'org.json' exclude group: 'org.json'
} }
compile 'org.solovyev.android.views.dragbutton:drag-button:1.1@aar' compile ':drag-button:1.1@aar'
compile ':square-otto:1.3.9-SNAPSHOT'
apt ':square-otto-compiler:1.3.9-SNAPSHOT'
apt 'com.squareup:javapoet:1.5.1'
compile 'org.solovyev.android:android-common-lists:1.1.18@aar' compile 'org.solovyev.android:android-common-lists:1.1.18@aar'
compile 'org.solovyev.android:android-common-core:1.1.18@aar' compile 'org.solovyev.android:android-common-core:1.1.18@aar'
compile 'org.solovyev.android:android-common-other:1.1.18@aar' compile 'org.solovyev.android:android-common-other:1.1.18@aar'
@ -97,7 +100,6 @@ dependencies {
exclude(module: 'xpp3') exclude(module: 'xpp3')
} }
compile 'commons-cli:commons-cli:1.2' compile 'commons-cli:commons-cli:1.2'
compile 'com.squareup:otto:1.3.8'
compile 'com.jakewharton:butterknife:7.0.1' compile 'com.jakewharton:butterknife:7.0.1'
compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar' compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar'

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,6 +7,7 @@ import android.os.Looper;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import com.squareup.otto.Bus; import com.squareup.otto.Bus;
import com.squareup.otto.GeneratedHandlerFinder;
import dagger.Module; import dagger.Module;
import dagger.Provides; import dagger.Provides;
import jscl.JsclMathEngine; import jscl.JsclMathEngine;
@ -119,6 +120,7 @@ public class AppModule {
private final Handler handler; private final Handler handler;
public AppBus(@Nonnull Handler handler) { public AppBus(@Nonnull Handler handler) {
super(new GeneratedHandlerFinder());
this.handler = handler; this.handler = handler;
} }