package io.trustbuilder.mfa.android.demoapp.utils;

import android.app.Application;

import com.google.firebase.messaging.FirebaseMessaging;

public class AndroidLibApp extends Application
        implements HasFirebaseServiceFactory {

    private final FirebaseServiceFactory firebaseServiceFactory =
            () -> new FirebaseServiceImpl(FirebaseMessaging.getInstance());

    @Override
    public FirebaseServiceFactory getFirebaseServiceFactory() {
        return firebaseServiceFactory;
    }
}
