package six.ca.androidadvanced.dagger2.multibinds.intoset

import android.app.Activity
import android.os.Bundle
import javax.inject.Inject

/**
 * @CopyRight six.ca
 * Created by Heavens on 2018-10-11.
 */
class IntoSetSampleActivity: Activity() {
    @Inject lateinit var fruits: Set<String>

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

//        DaggerFruitComponent.create().inject(this)
        DaggerFruitComponent.builder().build().inject(this)

        fruits.forEach {
            println("xxl-fruit: $it")
        }
    }
}