Legacy Applications are also supported (Service, BroadcastReceivers as well). You can either declare them manually in the manifest, or you can annotate your Application:
@Application
public class MyApplication extends Application {
@Override
public void onCreate() {
// The following line triggers the initialization of ACRA
super.onCreate();
ACRA.init(this);
}
}
Enhancing the Application can be a bit tricky and a current rough spot in the framework. Make sure you watch what happens to your AndroidManifest.xml, and if Transfuse adds a second Application tag, you may need to do a manual merge.
I need to update the docs with the other legacy components. By the way, I updated the docs to reflect the changes to 0.2.0 (@Named, Scopes, etc).
You can also use the enhanced Transfuse classes with Acra:
@Application
public class MyApplication {
@Inject Application application;
@OnCreate
public void setupAcra() {
ACRA.init(application);
}
}
I've been thinking about a plugin architecture for Transfuse so you can define these things in the Module in 1 line like this:
@TransfuseModule
public class ModuleClass{}
Thoughts?