Skip to content

Commit

Permalink
deprecate operationIdGenerator (#5850)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Apr 29, 2024
1 parent dcf1497 commit 2d712ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package com.apollographql.apollo3.compiler

import com.apollographql.apollo3.annotations.ApolloDeprecatedSince
import java.nio.charset.StandardCharsets
import java.security.MessageDigest

@Suppress("DEPRECATION")
@Deprecated("Use ApolloCompilerPlugin.operationIds() instead. See https://go.apollo.dev/ak-compiler-plugins for more details.")
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
interface OperationIdGenerator {
/**
* computes an id for the given operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ interface Service {
*
* Default value: [OperationIdGenerator.Sha256]
*/
@Suppress("DEPRECATION")
@Deprecated("Use ApolloCompilerPlugin.operationIds() instead. See https://go.apollo.dev/ak-compiler-plugins for more details.")
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
val operationIdGenerator: Property<OperationIdGenerator>

/**
Expand Down

0 comments on commit 2d712ca

Please sign in to comment.