Skip to content

Commit

Permalink
Updated AddModuleToController, HostInstructionAs and NavigationHostFa…
Browse files Browse the repository at this point in the history
…ctoryRepository to include an @OptIn(AdvancedEnroApi::class), even though these classes shouldn't really need the @OptIn.
  • Loading branch information
isaac-udy committed Jun 21, 2024
1 parent 4db1c93 commit f56bc1c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package dev.enro.core.controller.repository

import dev.enro.annotations.AdvancedEnroApi
import dev.enro.core.NavigationContext
import dev.enro.core.NavigationHostFactory
import dev.enro.core.NavigationInstruction
import dev.enro.core.controller.EnroDependencyScope

// The following @OptIn shouldn't be required due to buildSrc/src/main/kotlin/configureAndroid.kt adding an -Xopt-in arg
// to the Kotlin freeCompilerArgs, but for some reason, lint checks will fail if the @OptIn annotation is not explicitly added.
@OptIn(AdvancedEnroApi::class)
internal class NavigationHostFactoryRepository(
private val dependencyScope: EnroDependencyScope
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
package dev.enro.core.controller.usecase

import dev.enro.annotations.AdvancedEnroApi
import dev.enro.core.controller.NavigationModule
import dev.enro.core.controller.repository.*
import dev.enro.core.controller.repository.ComposeEnvironmentRepository
import dev.enro.core.controller.repository.ExecutorRepository
import dev.enro.core.controller.repository.InstructionInterceptorRepository
import dev.enro.core.controller.repository.NavigationAnimationRepository
import dev.enro.core.controller.repository.NavigationBindingRepository
import dev.enro.core.controller.repository.NavigationHostFactoryRepository
import dev.enro.core.controller.repository.PluginRepository

// The following @OptIn shouldn't be required due to buildSrc/src/main/kotlin/configureAndroid.kt adding an -Xopt-in arg
// to the Kotlin freeCompilerArgs, but for some reason, lint checks will fail if the @OptIn annotation is not explicitly added.
@OptIn(AdvancedEnroApi::class)
internal class AddModuleToController(
private val pluginRepository: PluginRepository,
private val navigationBindingRepository: NavigationBindingRepository,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package dev.enro.core.controller.usecase

import dev.enro.annotations.AdvancedEnroApi
import dev.enro.core.NavigationContext
import dev.enro.core.NavigationInstruction
import dev.enro.core.controller.repository.NavigationBindingRepository
import dev.enro.core.controller.repository.NavigationHostFactoryRepository

// The following @OptIn shouldn't be required due to buildSrc/src/main/kotlin/configureAndroid.kt adding an -Xopt-in arg
// to the Kotlin freeCompilerArgs, but for some reason, lint checks will fail if the @OptIn annotation is not explicitly added.
@OptIn(AdvancedEnroApi::class)
internal class HostInstructionAs(
private val navigationHostFactoryRepository: NavigationHostFactoryRepository,
private val navigationBindingRepository: NavigationBindingRepository,
Expand Down

0 comments on commit f56bc1c

Please sign in to comment.