// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/malevich/Malevich.java
// public interface Malevich {
// 
//     void drawBitmap(final ImageView imageView, final String imageUrl);
// 
//     class Impl {
// 
//         public static Malevich newInstance() {
//             return new MalevichImpl();
//         }
// 
//     }
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/utils/ContextGodObject.java
// public final class ContextGodObject {
// 
//     private static ContextGodObject sContextGodObject;
// 
//     private Context mContext;
// 
//     private ContextGodObject() {
// 
//     }
// 
//     public static ContextGodObject getInstance() {
//         if (sContextGodObject == null) {
//             sContextGodObject = new ContextGodObject();
//         }
// 
//         return sContextGodObject;
//     }
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
//     public void setContext(final Context pContext) {
//         mContext = pContext;
//     }
// 
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/utils/ContextHolder.java
// public enum ContextHolder {
// 
//     INSTANCE;
// 
//     private Context mContext;
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
//     public void setContext(final Context pContext) {
//         mContext = pContext;
//     }
// 
//     public static Context get() {
//         return INSTANCE.mContext;
//     }
// 
//     public static void set(final Context pContext) {
//         INSTANCE.mContext = pContext;
//     }
// 
// }


import android.app.Application;
import android.os.AsyncTask;
import com.example.mikhail_sianko.myapplication.malevich.Malevich;
import com.example.mikhail_sianko.myapplication.utils.ContextGodObject;
import com.example.mikhail_sianko.myapplication.utils.ContextHolder;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
package com.example.mikhail_sianko.myapplication;



/**
 * Created by Alex Dzeshko on 30-Sep-16.
 */

public class App extends Application {

    private Malevich malevich;

    public Malevich getMalevich() {
        if (malevich == null) {
            malevich = Malevich.Impl.newInstance();
        }
        return malevich;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        AsyncTask.SERIAL_EXECUTOR.execute(new Runnable() {

            @Override
            public void run() {
                //init libraries
            }
        });

// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/malevich/Malevich.java
// public interface Malevich {
// 
//     void drawBitmap(final ImageView imageView, final String imageUrl);
// 
//     class Impl {
// 
//         public static Malevich newInstance() {
//             return new MalevichImpl();
//         }
// 
//     }
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/utils/ContextGodObject.java
// public final class ContextGodObject {
// 
//     private static ContextGodObject sContextGodObject;
// 
//     private Context mContext;
// 
//     private ContextGodObject() {
// 
//     }
// 
//     public static ContextGodObject getInstance() {
//         if (sContextGodObject == null) {
//             sContextGodObject = new ContextGodObject();
//         }
// 
//         return sContextGodObject;
//     }
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
//     public void setContext(final Context pContext) {
//         mContext = pContext;
//     }
// 
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/utils/ContextHolder.java
// public enum ContextHolder {
// 
//     INSTANCE;
// 
//     private Context mContext;
// 
//     public Context getContext() {
//         return mContext;
//     }
// 
//     public void setContext(final Context pContext) {
//         mContext = pContext;
//     }
// 
//     public static Context get() {
//         return INSTANCE.mContext;
//     }
// 
//     public static void set(final Context pContext) {
//         INSTANCE.mContext = pContext;
//     }
// 
// }


// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/App.java
import android.app.Application;
import android.os.AsyncTask;
import com.example.mikhail_sianko.myapplication.malevich.Malevich;
import com.example.mikhail_sianko.myapplication.utils.ContextGodObject;
import com.example.mikhail_sianko.myapplication.utils.ContextHolder;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;

package com.example.mikhail_sianko.myapplication;



/**
 * Created by Alex Dzeshko on 30-Sep-16.
 */

public class App extends Application {

    private Malevich malevich;

    public Malevich getMalevich() {
        if (malevich == null) {
            malevich = Malevich.Impl.newInstance();
        }
        return malevich;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        AsyncTask.SERIAL_EXECUTOR.execute(new Runnable() {

            @Override
            public void run() {
                //init libraries
            }
        });

        ContextHolder.set(this);