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
Hello.
I use a plugin for Android Studio "com.apollographql.apollo" version "4.1.1".
I would like to download schema and I would like to have schema.json file in :core:data module. But if I write apollo { service("service") { packageName.set("core_data") schemaFile.set(file("src/main/java/com/app_name/data/graphql/schema.json")) introspection { endpointUrl.set("http:/some_url/v1/graphql") schemaFile.set(file("src/main/java/com/app_name/data/graphql/schema.json")) headers.set(mapOf(keyt" to "some_key")) }
in the build.gradle.kts of the :core:data module - it doesn't work.
After clicking: Tools -> Apollo -> Download schema - it says: No download schema tasks were found. Please configure an introspection or registry in the Apollo Gradle configuration.
But if I write apollo configuration in build.gradle.kts of the :app module - it works.
Logs
No download schema tasks were found. Please configure an introspection or registry in the Apollo Gradle configuration.
The text was updated successfully, but these errors were encountered:
Hi! Not sure why you're getting this, it should work. I made a simple project example here, can you have a look and compare with your project to see if there's any obvious differences?
Thanks. I cloned your project - it works.
But after some exploring I decided to create "data2" module. But this time not in the root of the project but inside an additional folder (:core:data2).
And it doesn't work again (the same error msg: No download schema tasks were found. Please configure an introspection or registry in the Apollo Gradle configuration)
@BoD Can you please try to create one more module as I did? (:core:data2)
Thanks a lot, I've reproduced the issue! This line should look for all modules recursively instead of only going 1 level deep.
In the meantime, to download your schema, you can do it manually on the command line with ./gradlew :core:data:downloadServiceApolloSchemaFromIntrospection
Version
4.1.1
Summary
Hello.
I use a plugin for Android Studio "com.apollographql.apollo" version "4.1.1".
I would like to download schema and I would like to have schema.json file in :core:data module. But if I write
apollo { service("service") { packageName.set("core_data") schemaFile.set(file("src/main/java/com/app_name/data/graphql/schema.json")) introspection { endpointUrl.set("http:/some_url/v1/graphql") schemaFile.set(file("src/main/java/com/app_name/data/graphql/schema.json")) headers.set(mapOf(keyt" to "some_key")) }
in the build.gradle.kts of the :core:data module - it doesn't work.
After clicking: Tools -> Apollo -> Download schema - it says:
No download schema tasks were found. Please configure an introspection or registry in the Apollo Gradle configuration.
But if I write apollo configuration in build.gradle.kts of the :app module - it works.
Logs
The text was updated successfully, but these errors were encountered: