Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Created November 20, 2021 13:45
Show Gist options
  • Save dilrajsingh1997/2188e24ad7233ded2ea8ba103a560806 to your computer and use it in GitHub Desktop.
Save dilrajsingh1997/2188e24ad7233ded2ea8ba103a560806 to your computer and use it in GitHub Desktop.
val file = codeGenerator.createNewFile(
dependencies = Dependencies(false, *resolver.getAllFiles().toList().toTypedArray()),
packageName = packageName,
fileName = "GeneratedFunctions"
)
file addLine "package $packageName"
file addLine "import androidx.navigation.*"
symbols.forEach { it.accept(Visitor(file, resolver), Unit) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment