// Path: app/src/main/java/com/flux/kituri/app/utils/DaoUtils.java
// public class DaoUtils {
// 
//     protected static final Object object = new Object();
//     private static LiteOrm liteOrm;
// 
//     public static LiteOrm getInstance(Context context){
//         synchronized (object) {
//             if (liteOrm == null) {
//                 liteOrm = LiteOrm.newSingleInstance(context, "liteorm.db");
//             }
//             liteOrm.setDebugged(true); // open the log
//         }
//         return liteOrm;
//     }
// 
//     public static LiteOrm getInstance(){
//         return getInstance(MobileApplication.getInstance());
//     }
// 
// }


import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.flux.kituri.app.utils.DaoUtils;
package com.flux.kituri.app;




public class MobileApplication extends Application {

    protected static final Object object = new Object();

    static private MobileApplication app = null;

    public static MobileApplication getInstance() {
        synchronized (object) {
            return app;
        }
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this);
        DaoUtils.getInstance(this);
// Path: app/src/main/java/com/flux/kituri/app/utils/DaoUtils.java
// public class DaoUtils {
// 
//     protected static final Object object = new Object();
//     private static LiteOrm liteOrm;
// 
//     public static LiteOrm getInstance(Context context){
//         synchronized (object) {
//             if (liteOrm == null) {
//                 liteOrm = LiteOrm.newSingleInstance(context, "liteorm.db");
//             }
//             liteOrm.setDebugged(true); // open the log
//         }
//         return liteOrm;
//     }
// 
//     public static LiteOrm getInstance(){
//         return getInstance(MobileApplication.getInstance());
//     }
// 
// }


// Path: app/src/main/java/com/flux/kituri/app/MobileApplication.java
import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.flux.kituri.app.utils.DaoUtils;

package com.flux.kituri.app;




public class MobileApplication extends Application {

    protected static final Object object = new Object();

    static private MobileApplication app = null;

    public static MobileApplication getInstance() {
        synchronized (object) {
            return app;
        }
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this);
        DaoUtils.getInstance(this);
        app = this;