@Override
public void onCreate() {
super.onCreate();
// crashlytics
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
// picasso
Picasso.Builder builder = new Picasso.Builder(this);
builder.downloader(new OkHttpDownloader(this, Integer.MAX_VALUE));
Picasso picasso = builder.build();
Picasso.setSingletonInstance(picasso);
Iconify.with(new FontAwesomeModule());
// realm (added by T. Kopp on 2/2/16)
RealmConfiguration config = new RealmConfiguration.Builder(this)
.name(Constants.REALM_FILE_NAME)
.schemaVersion(Constants.SCHEMA_VERSION)
.deleteRealmIfMigrationNeeded()
.build();
Realm.setDefaultConfiguration(config);
}
CeaselessApplication.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:CeaselessAndroid
作者:
评论列表
文章目录