use of com.google.firebase.firestore.core.ComponentProvider in project firebase-android-sdk by firebase.
the class SpecTestCase method initClient.
/**
* Sets up a new client. Is used to initially setup the client initially and after every restart.
*/
private void initClient() {
queue = new AsyncQueue();
datastore = new MockDatastore(databaseInfo, queue, ApplicationProvider.getApplicationContext());
ComponentProvider.Configuration configuration = new ComponentProvider.Configuration(ApplicationProvider.getApplicationContext(), queue, databaseInfo, datastore, currentUser, maxConcurrentLimboResolutions, new FirebaseFirestoreSettings.Builder().build());
ComponentProvider provider = initializeComponentProvider(configuration, garbageCollectionEnabled);
localPersistence = provider.getPersistence();
remoteStore = provider.getRemoteStore();
syncEngine = provider.getSyncEngine();
eventManager = provider.getEventManager();
}
Aggregations