Skip to content

Commit ab24fc3

Browse files
committed
Remove unnecessary common module
1 parent c6f8f95 commit ab24fc3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app/src/main/java/com/example/nav3recipes/modular/CommonModule.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ import javax.inject.Inject
1313

1414
typealias EntryProviderInstaller = EntryProviderBuilder<Any>.() -> Unit
1515

16-
@Module
17-
@InstallIn(ActivityRetainedComponent::class)
18-
object CommonModule {
19-
@Provides
20-
@ActivityRetainedScoped
21-
fun provideBackStackFactory() : BackStackFactory = BackStackFactory()
22-
}
23-
16+
@ActivityRetainedScoped
2417
class BackStackFactory @Inject constructor() {
2518
fun create(startDestination: Any) : SnapshotStateList<Any> = mutableStateListOf(startDestination)
2619
}

0 commit comments

Comments
 (0)