/*
 * Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://mindorks.com/license/apache-v2
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License
 */

package com.mindorks.framework.mvp.di.component;

import android.app.Application;

import com.mindorks.framework.mvp.MvpApp;
import com.mindorks.framework.mvp.data.db.model.DaoSession;
import com.mindorks.framework.mvp.data.network.ApiHelper;
import com.mindorks.framework.mvp.data.prefs.PreferencesHelper;
import com.mindorks.framework.mvp.di.builders.ActivityBuilder;
import com.mindorks.framework.mvp.di.builders.FragmentBuilder;
import com.mindorks.framework.mvp.di.module.AppModule;
import com.mindorks.framework.mvp.service.SyncService;

import dagger.BindsInstance;
import dagger.Component;
import dagger.android.AndroidInjectionModule;

/**
 * Created by n1rocketdev on 27/01/17.
 */

@Component(modules = {
        AndroidInjectionModule.class,
        AppModule.class,
        ActivityBuilder.class,
        FragmentBuilder.class})
public interface AppComponent {

    @Component.Builder
    interface Builder {
        @BindsInstance
        Builder application(Application application);

        AppComponent build();
    }

    void inject(MvpApp app);

    void inject(SyncService service);

    PreferencesHelper preferencesHelper();

    ApiHelper apiHelper();

    DaoSession daoSession();
}
@@ -1150,16 +1150,48 @@
 rvice;%0A%0A
+import javax.inject.Singleton;%0A%0A
 import d
@@ -1211,16 +1211,16 @@
 stance;%0A
-
 import d
@@ -1281,16 +1281,70 @@
 nModule;
+%0Aimport uk.co.chrisjenx.calligraphy.CalligraphyConfig;
 %0A%0A/**%0A *
@@ -1385,16 +1385,27 @@
 7.%0A */%0A%0A
+@Singleton%0A
 @Compone
@@ -1909,10 +1909,63 @@
 ssion();
+%0A%0A    //CalligraphyConfig calligraphyDefaultConfig();
 %0A%7D

Fix Singleton from AppComponent for Provide Configs