ApolloExtension

interface ApolloExtension

The entry point for configuring the apollo plugin.

Inheritors

Properties

Link copied to clipboard
abstract val deps: ApolloDependencies

Common apollo dependencies using the same version as the Apollo Gradle Plugin currently in the classpath

Link copied to clipboard

Adds "generateApolloSources" as a dependency of "prepareKotlinIdeaImport" This makes IDEA aware of codegen and will run it during your Gradle Sync

Link copied to clipboard
abstract val linkSqlite: Property<Boolean>

For Kotlin native projects, whether to link Sqlite (-lsqlite3). This is required by apollo-normalized-cache-sqlite but some projects might want to customize linker options

Functions

Link copied to clipboard
abstract fun apolloKspProcessor(schema: File, service: String, packageName: String): Any

Returns a dependency that contains:

Link copied to clipboard
abstract fun createAllAndroidVariantServices(sourceFolder: String, nameSuffix: String, action: Action<Service>)

registers multiple services for an android project

Link copied to clipboard
abstract fun createAllKotlinSourceSetServices(sourceFolder: String, nameSuffix: String, action: Action<Service>)

registers multiple services for a Kotlin project

Link copied to clipboard
abstract fun service(name: String, action: Action<Service>)

Registers a new Service