// Path: app/src/main/java/com/landtanin/studentattendancecheck/manager/Contextor.java
// public class Contextor {
// 
//     private static Contextor instance;
// 
//     public static Contextor getInstance() {
//         if (instance == null)
//             instance = new Contextor();
//         return instance;
//     }
// 
//     private Context mContext;
// 
//     private Contextor() {
// 
//     }
// 
//     public void init(Context context) {
//         mContext = context;
//     }
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
// }


import android.app.Application;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import com.landtanin.studentattendancecheck.manager.Contextor;
import io.fabric.sdk.android.Fabric;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import io.realm.exceptions.RealmMigrationNeededException;
import io.realm.rx.RealmObservableFactory;
package com.landtanin.studentattendancecheck;




/**
 * Created by landtanin on 2/11/2017 AD.
 */

public class MainApplication extends Application {

    RealmConfiguration config;
    private final String DATABASE_NAME="landtanin.realm";

    @Override
    public void onCreate() {
        super.onCreate();
        Fabric.with(this, new Crashlytics());

// Path: app/src/main/java/com/landtanin/studentattendancecheck/manager/Contextor.java
// public class Contextor {
// 
//     private static Contextor instance;
// 
//     public static Contextor getInstance() {
//         if (instance == null)
//             instance = new Contextor();
//         return instance;
//     }
// 
//     private Context mContext;
// 
//     private Contextor() {
// 
//     }
// 
//     public void init(Context context) {
//         mContext = context;
//     }
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
// }


// Path: app/src/main/java/com/landtanin/studentattendancecheck/MainApplication.java
import android.app.Application;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import com.landtanin.studentattendancecheck.manager.Contextor;
import io.fabric.sdk.android.Fabric;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import io.realm.exceptions.RealmMigrationNeededException;
import io.realm.rx.RealmObservableFactory;

package com.landtanin.studentattendancecheck;




/**
 * Created by landtanin on 2/11/2017 AD.
 */

public class MainApplication extends Application {

    RealmConfiguration config;
    private final String DATABASE_NAME="landtanin.realm";

    @Override
    public void onCreate() {
        super.onCreate();
        Fabric.with(this, new Crashlytics());

        Contextor.getInstance().init(getApplicationContext());