1 package com.android.managedprovisioning.common 2 3 import android.app.Activity 4 import com.android.onboarding.contracts.NodeId 5 import com.android.onboarding.contracts.OnboardingNodeId 6 import com.android.onboarding.contracts.nodeId 7 import dagger.Binds 8 import dagger.Module 9 import dagger.Provides 10 import dagger.hilt.InstallIn 11 import dagger.hilt.android.components.ActivityComponent 12 13 @Module 14 @InstallIn(ActivityComponent::class) 15 interface CommonModule { 16 @Binds bindnull17 fun bind(impl: DefaultFlags): Flags 18 19 companion object { 20 @Provides 21 @OnboardingNodeId 22 fun nodeId(activity: Activity): NodeId = activity.nodeId 23 } 24 } 25