Skip to content

Commit 40c0d4c

Browse files
authored
Remove unused code (#6018)
1 parent c05d3a9 commit 40c0d4c

File tree

5 files changed

+7
-259
lines changed

5 files changed

+7
-259
lines changed

benchmark/app/debug/app-debug.apk

-714 KB
Binary file not shown.

benchmark/app/debug/output-metadata.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/internal/ApolloGenerateKspProcessorTask.kt

Lines changed: 0 additions & 72 deletions
This file was deleted.

libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/internal/ApolloProcessorProviderDump.kt

Lines changed: 0 additions & 152 deletions
This file was deleted.

tests/compiler-plugins/README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
# Compiler hooks examples
1+
# Apollo Compiler plugin integration tests
22

3-
In this project you can see examples of how to use the compiler hooks.
3+
Examples of how to use the `ApolloCompilerPlugin` API.
44

5-
A few example implementations of `ApolloCompilerKotlinHooks` are defined in `build.gradle.kts`:
6-
7-
- `DefaultNullValuesHooks` - Adds a default `null` value to data class fields that are nullable
8-
- `TypeNameInterfaceHooks` - Adds a super interface to models that expose `__typename`
9-
- `PrefixNamesKotlinHooks` / `PrefixNamesJavaHooks` - Prefix generated class names with the specified prefix. Shows how
10-
to make `postProcessFileSpec` and `overrideResolvedType` work together.
11-
- `CapitalizeEnumValuesHooks` - Capitalize generated enum values
12-
- `AddGettersAndSettersHooks` - Add getters and setters to the models
13-
14-
## Gradle plugin
15-
16-
To use `compilerKotlinHooks` you must use `id("com.apollographql.apollo3.external")` instead of the
17-
usual `id("com.apollographql.apollo3")`. This is because the external plugin doesn't relocate the KotlinPoet dependency that the hooks api depends on.
5+
- `default-null-values` - Adds a default `null` value to data class fields that are nullable
6+
- `typename-interface` - Adds a super interface to models that expose `__typename`
7+
- `prefix-names` / `PrefixNamesJavaHooks` - Prefix generated class names with the specified prefix.
8+
- `capitalize-enum-values` - Capitalize generated enum values
9+
- `getters-and-setters` - Add getters and setters to the models

0 commit comments

Comments
 (0)