Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL files not generated in FlavourBased Project #328

Open
sandipgh19 opened this issue Feb 12, 2021 · 7 comments
Open

GraphQL files not generated in FlavourBased Project #328

sandipgh19 opened this issue Feb 12, 2021 · 7 comments
Labels
feature-request Request a new feature

Comments

@sandipgh19
Copy link

GraphQL files not generated in FlavourBased Project. It's working fine in 3.0.1v. But it's not building in 3.1.2v.

Steps to reproduce the behavior:

  1. Create 2 Flavours, let's say A and B.
  2. Put the graphQL files in flavour A.
  3. Use AWS version 3.1.2 and Build
  4. See the building error.

Expected behavior:
All GraphQL files needs to generate.

Environment:

  • AppSync SDK Version: 3.1.2
@sandipgh19 sandipgh19 changed the title GraphQL files not generated in FlavoursBased Project GraphQL files not generated in FlavourBased Project Feb 12, 2021
@richardmcclellan
Copy link
Contributor

@sandipgh19, can you provide the error you are seeing?

@sandipgh19
Copy link
Author

As per logs:
in v3.0.1:
Task :app:generateDebugApolloIR

Task :app:generateDebugApolloClasses

in v3.1.2:

Task :app:generateDebugApolloIR NO-SOURCE
Task :app:generateDebugApolloClasses NO-SOURCE

All the Auto generated files are not build.

@stale stale bot removed the closing-soon label Feb 13, 2021
@richardmcclellan
Copy link
Contributor

When you build your app, Java classes are generated from the queries.graphql, mutations.graphql, and subscriptions.graphql files. Given the NO-SOURCE error you are seeing, my guess is that it cannot find these files.

Check and make sure these .graphql files are present at app/src/main/graphql/com/amazonaws/amplify/generated/graphql. These are generated when you run amplify push, or amplify add codegen as described in this documentation.

@sandipgh19
Copy link
Author

@richardmcclellan .graphql files are present at app/src/A/graphql/amazonaws (A is the flavour name) in the project.
It's works well in v3.0.1. But in latest version build never success.

@stale stale bot removed the closing-soon label Feb 15, 2021
@jamesonwilliams
Copy link
Contributor

jamesonwilliams commented Feb 17, 2021

Version 3.1 added support for Android Gradle Plugin 4+ (see PR #301). I suspect that work did not consider support for flavors.

@sandipgh19
Copy link
Author

@jamesonwilliams is there any plan to support flavours?

@jamesonwilliams
Copy link
Contributor

@jamesonwilliams is there any plan to support flavours?

4.1.x has been out since last July, and this is the first request we've seen for it. We'll probably prioritize other work until we see further demand. Pull Requests are always welcomed!

@poojamat poojamat added the feature-request Request a new feature label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

4 participants