Skip to content

Android. Introspection in another module (not in :app) #6393

Closed
@SergeyKharuk

Description

@SergeyKharuk

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

No download schema tasks were found. Please configure an introspection or registry in the Apollo Gradle configuration.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions