package com.nmakademija.nmaakademija;

import android.app.Application;
import android.content.Context;

import com.facebook.FacebookSdk;
import com.google.firebase.database.FirebaseDatabase;
import com.squareup.leakcanary.LeakCanary;
import com.squareup.leakcanary.RefWatcher;

public class App extends Application {

    public static RefWatcher getRefWatcher(Context context) {
        App application = (App) context.getApplicationContext();
        return application.refWatcher;
    }

    private RefWatcher refWatcher;

    @Override
    public void onCreate() {
        super.onCreate();
        if (LeakCanary.isInAnalyzerProcess(this)) {
            // This process is dedicated to LeakCanary for heap analysis.
            // You should not init your app in this process.
            return;
        }
        refWatcher = LeakCanary.install(this);

        setFirebaseOptions();
        initFacebookSdk();
    }

    public void setFirebaseOptions() {
        FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
        firebaseDatabase.setPersistenceEnabled(true);
    }

    public void initFacebookSdk() {
        FacebookSdk.sdkInitialize(getApplicationContext());
    }
}

@@ -101,41 +101,8 @@
 t;%0A%0A
-import com.facebook.FacebookSdk;%0A
 impo
@@ -855,35 +855,8 @@
 ();%0A
-        initFacebookSdk();%0A
     
@@ -1036,110 +1036,7 @@
    %7D
-%0A%0A    public void initFacebookSdk() %7B%0A        FacebookSdk.sdkInitialize(getApplicationContext());%0A    %7D
 %0A%7D%0A

Remove FB init