PackageNameGenerator

Deprecated

Use ApolloCompilerPlugin.layout() instead. See https://go.apollo.dev/ak-compiler-plugins for more details.

A PackageNameGenerator computes the package name for a given file. Files can be either

  • executable files containing operations and fragments

  • schema files containing type definitions or introspection json

Inheritors

Types

Link copied to clipboard
class Flat(packageName: String) : PackageNameGenerator
Link copied to clipboard

Properties

Link copied to clipboard
open val version: String

A version that is used as input of the Gradle task. Since PackageNameGenerator cannot easily be serialized and influences the output of the task, we need a way to mark the task out-of-date when the implementation changes.

Functions

Link copied to clipboard
abstract fun packageName(filePath: String): String

This will be called with