// Path: app/src/main/java/com/flux/kituri/app/MobileApplication.java
// 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;
//     }
// 
// 
// 
// }


import android.content.Context;
import com.flux.kituri.app.MobileApplication;
import com.litesuits.orm.LiteOrm;
package com.flux.kituri.app.utils;



/**
 * Created by kirijin on 2016/5/30.
 */

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;
    }

// Path: app/src/main/java/com/flux/kituri/app/MobileApplication.java
// 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;
//     }
// 
// 
// 
// }


// Path: app/src/main/java/com/flux/kituri/app/utils/DaoUtils.java
import android.content.Context;
import com.flux.kituri.app.MobileApplication;
import com.litesuits.orm.LiteOrm;

package com.flux.kituri.app.utils;



/**
 * Created by kirijin on 2016/5/30.
 */

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(){