Skip to content

Commit e09fe12

Browse files
martinbonninBoD
authored andcommitted
deprecate operationIdGenerator (apollographql#5850)
1 parent 4cef267 commit e09fe12

File tree

2 files changed

+7
-0
lines changed
  • libraries
    • apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler
    • apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/api

2 files changed

+7
-0
lines changed

libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/OperationIdGenerator.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
package com.apollographql.apollo3.compiler
22

3+
import com.apollographql.apollo3.annotations.ApolloDeprecatedSince
34
import java.nio.charset.StandardCharsets
45
import java.security.MessageDigest
56

7+
@Suppress("DEPRECATION")
8+
@Deprecated("Use ApolloCompilerPlugin.operationIds() instead. See https://go.apollo.dev/ak-compiler-plugins for more details.")
9+
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
610
interface OperationIdGenerator {
711
/**
812
* computes an id for the given operation

libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/api/Service.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ interface Service {
240240
*
241241
* Default value: [OperationIdGenerator.Sha256]
242242
*/
243+
@Suppress("DEPRECATION")
244+
@Deprecated("Use ApolloCompilerPlugin.operationIds() instead. See https://go.apollo.dev/ak-compiler-plugins for more details.")
245+
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
243246
val operationIdGenerator: Property<OperationIdGenerator>
244247

245248
/**

0 commit comments

Comments
 (0)