// Path: app/src/prod/java/com/wiseass/profiler/data/auth/AuthInjection.java
// public class AuthInjection {
// 
//     public static AuthSource provideAuthSource(){
//         return FirebaseAuthService.getInstance();
//     }
// 
// }
// 
// Path: app/src/mock/java/com/wiseass/profiler/data/database/DatabaseInjection.java
// public class DatabaseInjection {
//     public static DatabaseSource provideDatabaseSource() {
//         return FakeDatabaseService.getInstance();
//     }
// }
// 
// Path: app/src/mock/java/com/wiseass/profiler/data/scheduler/SchedulerInjection.java
// public class SchedulerInjection {
// 
//     public static BaseSchedulerProvider provideSchedulerProvider(){
//         return ImmediateSchedulerProvider.getInstance();
//     }
// 
// }
// 
// Path: app/src/main/java/com/wiseass/profiler/login/LoginActivity.java
// public class LoginActivity extends AppCompatActivity {
//     private static final String LOGIN_FRAGMENT = "LOGIN_FRAGMENT";
//     private FragmentManager manager;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_login);
// 
//         manager = getFragmentManager();
// 
//         LoginFragment fragment = (LoginFragment) manager.findFragmentByTag(LOGIN_FRAGMENT);
// 
//         if (fragment == null){
//             fragment = LoginFragment.newInstance();
//         }
// 
//         ActivityUtils.addFragmentToActivity(manager,
//                 fragment,
//                 R.id.root_login_activity,
//                 LOGIN_FRAGMENT
//         );
// 
//     }
// }


import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.StringRes;
import android.support.v7.widget.CardView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.wiseass.profiler.R;
import com.wiseass.profiler.data.auth.AuthInjection;
import com.wiseass.profiler.data.database.DatabaseInjection;
import com.wiseass.profiler.data.scheduler.SchedulerInjection;
import com.wiseass.profiler.login.LoginActivity;
package com.wiseass.profiler.profilesettings;




/**
 * A simple {@link Fragment} subclass.
 */
public class ProfileSettingsFragment extends Fragment implements ProfileSettingsContract.View {

    private ProfileSettingsContract.Presenter presenter;
    private Button deleteAccount;
    private ProgressBar progressBar;
    private EditText passwordInput;
    private TextView cardTitle, cardSubTitle;
    private CardView authCard;

    public ProfileSettingsFragment() {
        // Required empty public constructor
    }

    public static ProfileSettingsFragment newInstance() {
        ProfileSettingsFragment fragment = new ProfileSettingsFragment();
        return fragment;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        if (presenter == null) {
            presenter = new ProfileSettingsPresenter(
// Path: app/src/prod/java/com/wiseass/profiler/data/auth/AuthInjection.java
// public class AuthInjection {
// 
//     public static AuthSource provideAuthSource(){
//         return FirebaseAuthService.getInstance();
//     }
// 
// }
// 
// Path: app/src/mock/java/com/wiseass/profiler/data/database/DatabaseInjection.java
// public class DatabaseInjection {
//     public static DatabaseSource provideDatabaseSource() {
//         return FakeDatabaseService.getInstance();
//     }
// }
// 
// Path: app/src/mock/java/com/wiseass/profiler/data/scheduler/SchedulerInjection.java
// public class SchedulerInjection {
// 
//     public static BaseSchedulerProvider provideSchedulerProvider(){
//         return ImmediateSchedulerProvider.getInstance();
//     }
// 
// }
// 
// Path: app/src/main/java/com/wiseass/profiler/login/LoginActivity.java
// public class LoginActivity extends AppCompatActivity {
//     private static final String LOGIN_FRAGMENT = "LOGIN_FRAGMENT";
//     private FragmentManager manager;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_login);
// 
//         manager = getFragmentManager();
// 
//         LoginFragment fragment = (LoginFragment) manager.findFragmentByTag(LOGIN_FRAGMENT);
// 
//         if (fragment == null){
//             fragment = LoginFragment.newInstance();
//         }
// 
//         ActivityUtils.addFragmentToActivity(manager,
//                 fragment,
//                 R.id.root_login_activity,
//                 LOGIN_FRAGMENT
//         );
// 
//     }
// }


// Path: app/src/main/java/com/wiseass/profiler/profilesettings/ProfileSettingsFragment.java
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.StringRes;
import android.support.v7.widget.CardView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.wiseass.profiler.R;
import com.wiseass.profiler.data.auth.AuthInjection;
import com.wiseass.profiler.data.database.DatabaseInjection;
import com.wiseass.profiler.data.scheduler.SchedulerInjection;
import com.wiseass.profiler.login.LoginActivity;

package com.wiseass.profiler.profilesettings;




/**
 * A simple {@link Fragment} subclass.
 */
public class ProfileSettingsFragment extends Fragment implements ProfileSettingsContract.View {

    private ProfileSettingsContract.Presenter presenter;
    private Button deleteAccount;
    private ProgressBar progressBar;
    private EditText passwordInput;
    private TextView cardTitle, cardSubTitle;
    private CardView authCard;

    public ProfileSettingsFragment() {
        // Required empty public constructor
    }

    public static ProfileSettingsFragment newInstance() {
        ProfileSettingsFragment fragment = new ProfileSettingsFragment();
        return fragment;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        if (presenter == null) {
            presenter = new ProfileSettingsPresenter(
                    AuthInjection.provideAuthSource(),