Skip to content

Commit

Permalink
Fixed issue with className bestGuess failing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed May 18, 2023
1 parent 1297b43 commit b23fafe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package dev.enro.processor.domain

import com.google.devtools.ksp.processing.Resolver

sealed interface GeneratedBindingReference {
val binding: String
val destination: String
val navigationKey: String

class Kotlin(
val resolver: Resolver,
override val binding: String,
override val destination: String,
override val navigationKey: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ sealed class GeneratedModuleReference {
val bindingAnnotation = binding.getAnnotationsByType(GeneratedNavigationBinding::class).first()

GeneratedBindingReference.Kotlin(
resolver = resolver,
binding = bindingName,
destination = bindingAnnotation.destination,
navigationKey = bindingAnnotation.navigationKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ object NavigationComponentGenerator {
bindings.forEach {
addStatement(
"%T().invoke(navigationModuleScope)",
ClassName.bestGuess(it.binding)
ClassName(EnroLocation.GENERATED_PACKAGE, it.binding.split(".").last())
)
}
}
Expand Down

0 comments on commit b23fafe

Please sign in to comment.