Back to project page DroidBilling.
The source code is released under:
MIT License
If you think the Android project DroidBilling listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.techery.droid.billings.modules; /*from w ww.j av a 2 s. c om*/ import android.content.Context; import com.techery.droid.billings.BillingInitializationController; import com.techery.droid.billings.BillingManager; import com.techery.droid.billings.annotations.Billing; import com.techery.droid.billings.utils.BillingSecurity; import com.techery.droid.billings.utils.BillingSupportingChecker; import com.techery.droid.billings.utils.ResponseHelper; import javax.inject.Singleton; import dagger.Module; import dagger.ObjectGraph; import dagger.Provides; import de.greenrobot.event.EventBus; @Module(library = true, complete = false, injects = { BillingInitializationController.class }) public class BillingModule { @Provides @Singleton ResponseHelper provideResponseHelper() { return new ResponseHelper(); } @Provides @Singleton BillingSecurity provideBillingSecurity() { return new BillingSecurity(); } @Provides BillingInitializationController provideBillingService(@Billing ObjectGraph objectGraph) { return new BillingInitializationController(objectGraph); } @Provides @Singleton BillingSupportingChecker provideBillingSupportingChecker(Context context) { return new BillingSupportingChecker(context); } @Provides BillingManager provideBillingManager(@Billing EventBus eventBus) { return new BillingManager(eventBus); } }