io.realm.rx.RealmObservableFactory Java Examples
The following examples show how to use
io.realm.rx.RealmObservableFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AppDelegate.java From AndroidSchool with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); sContext = this; Hawk.init(this) .setEncryptionMethod(HawkBuilder.EncryptionMethod.MEDIUM) .setStorage(HawkBuilder.newSharedPrefStorage(this)) .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE) .build(); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); ApiFactory.recreate(); RepositoryProvider.init(); }
Example #2
Source File: AppDelegate.java From AndroidSchool with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); sContext = this; Hawk.init(this) .setEncryptionMethod(HawkBuilder.EncryptionMethod.MEDIUM) .setStorage(HawkBuilder.newSharedPrefStorage(this)) .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE) .build(); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); ApiFactory.recreate(); RepositoryProvider.init(); }
Example #3
Source File: AppDelegate.java From AndroidSchool with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); sContext = this; Hawk.init(this) .setEncryptionMethod(HawkBuilder.EncryptionMethod.MEDIUM) .setStorage(HawkBuilder.newSharedPrefStorage(this)) .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE) .build(); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); ApiFactory.recreate(); RepositoryProvider.init(); }
Example #4
Source File: AppDelegate.java From AndroidSchool with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); Hawk.init(this) .setEncryptionMethod(HawkBuilder.EncryptionMethod.MEDIUM) .setStorage(HawkBuilder.newSharedPrefStorage(this)) .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE) .build(); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); sAppComponent = DaggerAppComponent.builder() .dataModule(new DataModule()) .build(); }
Example #5
Source File: AppDelegate.java From AndroidSchool with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); sContext = this; Hawk.init(this) .setEncryptionMethod(HawkBuilder.EncryptionMethod.MEDIUM) .setStorage(HawkBuilder.newSharedPrefStorage(this)) .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE) .build(); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); ApiFactory.recreate(); RepositoryProvider.init(); }
Example #6
Source File: RealmConfig.java From talk-android with MIT License | 5 votes |
public static RealmConfiguration getTalkRealm() { if (realmConfiguration == null) { realmConfiguration = new RealmConfiguration.Builder(MainApp.CONTEXT) .name(TALK_REALM) .schemaVersion(SCHEMA_VERSION) .migration(new Migration()) .rxFactory(new RealmObservableFactory()) .build(); } return realmConfiguration; }
Example #7
Source File: MoviesApp.java From AndroidSchool with Apache License 2.0 | 5 votes |
@Override public void onCreate() { super.onCreate(); sInstance = this; Picasso picasso = new Picasso.Builder(this) .downloader(new OkHttp3Downloader(this)) .build(); Picasso.setSingletonInstance(picasso); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); }
Example #8
Source File: MoviesApp.java From AndroidSchool with Apache License 2.0 | 5 votes |
@Override public void onCreate() { super.onCreate(); sInstance = this; Picasso picasso = new Picasso.Builder(this) .downloader(new OkHttp3Downloader(this)) .build(); Picasso.setSingletonInstance(picasso); RealmConfiguration configuration = new RealmConfiguration.Builder(this) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(configuration); }
Example #9
Source File: MainApplication.java From StudentAttendanceCheck with MIT License | 4 votes |
@Override public void onCreate() { super.onCreate(); Fabric.with(this, new Crashlytics()); Contextor.getInstance().init(getApplicationContext()); // setup RealmConfiguration // RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this).build(); // Realm.setDefaultConfiguration(realmConfiguration); try { config = new RealmConfiguration.Builder() .deleteRealmIfMigrationNeeded() .schemaVersion(0) .rxFactory(new RealmObservableFactory()) .build(); Realm.setDefaultConfiguration(config); } catch (RealmMigrationNeededException rme) { config = new RealmConfiguration.Builder() .name(DATABASE_NAME) .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfiguration(config); } catch (Exception e) { Realm.init(this); config = new RealmConfiguration.Builder() .name(DATABASE_NAME) .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfiguration(config); Log.e("MainApplication initListener: " + e.getMessage(),e.toString()); } finally { Realm.init(this); Realm.getDefaultInstance().setAutoRefresh(true); Log.e("MainApplication TaninTest: ", Realm.getDefaultInstance().getPath() ); } }