// Path: app/src/main/java/com/livingstoneapp/MainApplication.java
// public class MainApplication extends Application {
//     private Graph mGraph;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         mGraph = Graph.Initializer.init(this, false);
//     }
// 
//     public Graph getGraph() {
//         return mGraph;
//     }
// 
//     public void setMockMode(boolean provideMocks) {
//         mGraph = Graph.Initializer.init(this, provideMocks);
//     }
// 
//     public static MainApplication from(@NonNull Context context) {
//         return (MainApplication) context.getApplicationContext();
//     }
// }


import android.content.Context;
import dagger.Module;
import dagger.Provides;
import com.livingstoneapp.MainApplication;
package com.livingstoneapp.dagger;



/**
 * Created by renier on 1/12/2016.
 */
@Module
public class ApplicationModule {
// Path: app/src/main/java/com/livingstoneapp/MainApplication.java
// public class MainApplication extends Application {
//     private Graph mGraph;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         mGraph = Graph.Initializer.init(this, false);
//     }
// 
//     public Graph getGraph() {
//         return mGraph;
//     }
// 
//     public void setMockMode(boolean provideMocks) {
//         mGraph = Graph.Initializer.init(this, provideMocks);
//     }
// 
//     public static MainApplication from(@NonNull Context context) {
//         return (MainApplication) context.getApplicationContext();
//     }
// }


// Path: app/src/main/java/com/livingstoneapp/dagger/ApplicationModule.java
import android.content.Context;
import dagger.Module;
import dagger.Provides;
import com.livingstoneapp.MainApplication;

package com.livingstoneapp.dagger;



/**
 * Created by renier on 1/12/2016.
 */
@Module
public class ApplicationModule {
    private static MainApplication sApplication;