You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Configuration for extra jar to pass to R8 to give it more context about what can be relocated
14
-
configurations.create("gr8Classpath")
15
-
// Configuration dependencies that will be shadowed
16
-
val shadeConfiguration = configurations.create("shade")
17
-
18
17
// Set to false to skip relocation and save some building time during development
19
18
val relocateJar =System.getenv("APOLLO_RELOCATE_JAR")?.toBoolean() ?:true
20
19
21
-
dependencies {
22
-
/**
23
-
* OkHttp has some bytecode that checks for Conscrypt at runtime (https://github.com/square/okhttp/blob/71427d373bfd449f80178792fe231f60e4c972db/okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt#L59)
24
-
* Put this in the classpath so that R8 knows it can relocate DisabledHostnameVerifier as the superclass is not package-private
25
-
*
26
-
* Keep in sync with https://github.com/square/okhttp/blob/71427d373bfd449f80178792fe231f60e4c972db/buildSrc/src/main/kotlin/deps.kt#L24
# 'Declaration of property alwaysGenerateTypesMatching does not include any type arguments in its property type interface org.gradle.api.provider.SetProperty'
# Schema is used in a worker: https://github.com/apollographql/apollo-kotlin/blob/198480d8b0b24c01f4d11da0b1e9fa9c97062c5c/libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo/gradle/internal/ApolloGenerateSourcesTask.kt#L131
34
37
-keep class com.apollographql.apollo.ast.Schema { *; }
35
-
# Keep the plugin API as it's used from build scripts
36
-
-keep class com.apollographql.apollo.gradle.api.** { *; }
0 commit comments