// Path: app/src/main/java/com/chrynan/android_guitar_tuner/di/component/ApplicationComponent.java
// @Singleton
// @Component(modules = ApplicationModule.class)
// public interface ApplicationComponent {
// 
//     @ApplicationContext
//     Context getApplicationContext();
// 
//     void inject(GuitarTunerApplication application);
// }
// 
// Path: app/src/main/java/com/chrynan/android_guitar_tuner/di/module/ApplicationModule.java
// @Module
// public class ApplicationModule {
// 
//     private final Application application;
// 
//     public ApplicationModule(final Application application) {
//         this.application = application;
//     }
// 
//     @Provides
//     @Singleton
//     @ApplicationContext
//     Context provideApplicationContext() {
//         return application;
//     }
// }


import android.app.Application;
import com.chrynan.android_guitar_tuner.di.component.ApplicationComponent;
import com.chrynan.android_guitar_tuner.di.component.DaggerApplicationComponent;
import com.chrynan.android_guitar_tuner.di.module.ApplicationModule;
import timber.log.Timber;
package com.chrynan.android_guitar_tuner;




public class GuitarTunerApplication extends Application {

    private static ApplicationComponent applicationComponent;

    public static ApplicationComponent getApplicationComponent() {
        return applicationComponent;
    }

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

        // Setup Logging
        if (BuildConfig.DEBUG) {
            // Uses the default Timber Debug Tree to output logs to LogCat
            Timber.plant(new Timber.DebugTree());
        }

        // Setup the Dagger Application Component
        applicationComponent = DaggerApplicationComponent.builder()
// Path: app/src/main/java/com/chrynan/android_guitar_tuner/di/component/ApplicationComponent.java
// @Singleton
// @Component(modules = ApplicationModule.class)
// public interface ApplicationComponent {
// 
//     @ApplicationContext
//     Context getApplicationContext();
// 
//     void inject(GuitarTunerApplication application);
// }
// 
// Path: app/src/main/java/com/chrynan/android_guitar_tuner/di/module/ApplicationModule.java
// @Module
// public class ApplicationModule {
// 
//     private final Application application;
// 
//     public ApplicationModule(final Application application) {
//         this.application = application;
//     }
// 
//     @Provides
//     @Singleton
//     @ApplicationContext
//     Context provideApplicationContext() {
//         return application;
//     }
// }


// Path: app/src/main/java/com/chrynan/android_guitar_tuner/GuitarTunerApplication.java
import android.app.Application;
import com.chrynan.android_guitar_tuner.di.component.ApplicationComponent;
import com.chrynan.android_guitar_tuner.di.component.DaggerApplicationComponent;
import com.chrynan.android_guitar_tuner.di.module.ApplicationModule;
import timber.log.Timber;

package com.chrynan.android_guitar_tuner;




public class GuitarTunerApplication extends Application {

    private static ApplicationComponent applicationComponent;

    public static ApplicationComponent getApplicationComponent() {
        return applicationComponent;
    }

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

        // Setup Logging
        if (BuildConfig.DEBUG) {
            // Uses the default Timber Debug Tree to output logs to LogCat
            Timber.plant(new Timber.DebugTree());
        }

        // Setup the Dagger Application Component
        applicationComponent = DaggerApplicationComponent.builder()
                .applicationModule(new ApplicationModule(this))