Back to project page Telecine.
The source code is released under:
Apache License
If you think the Android project Telecine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jakewharton.telecine; /* w ww. j ava 2s .c om*/ import android.app.Application; import com.bugsnag.android.BeforeNotify; import com.bugsnag.android.Bugsnag; import com.bugsnag.android.Error; import dagger.ObjectGraph; import timber.log.Timber; public final class TelecineApplication extends Application { private ObjectGraph objectGraph; @Override public void onCreate() { super.onCreate(); if (BuildConfig.DEBUG) { Timber.plant(new Timber.DebugTree()); } else { Bugsnag.init(this, BuildConfig.BUGSNAG_KEY); Bugsnag.setReleaseStage(BuildConfig.BUILD_TYPE); Bugsnag.setProjectPackages("com.jakewharton.telecine"); final BugsnagTree tree = new BugsnagTree(); Bugsnag.getClient().beforeNotify(new BeforeNotify() { @Override public boolean run(Error error) { tree.update(error); return true; } }); Timber.plant(tree); } objectGraph = ObjectGraph.create(new TelecineModule(this)); } public void inject(Object o) { objectGraph.inject(o); } }