Closed reberthkss closed 2 years ago
You can create a post-models-codegen.js or post-models-codegen.sh file in amplify/hooks directory that has the logic to copy/move the generated files from app/src/main/java to your custom file location.
This should run the hook created after they run amplify codegen models. Here is how you can create command hooks.
nice! I will take a look!
@reberthkss Feel free to close this issue if @poojamat's suggestion works for you.
@reberthkss Feel free to close this issue if @poojamat's suggestion works for you.
Thank you for your reply @div5yesh . Can you take a look at this issue now? https://github.com/aws-amplify/amplify-android/issues/1642
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
GraphQL API
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
My generated models from amplify graphql api are not available to another modules. It may led to cause an circular reference error if i try to import
app
module inside of my modules.Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots