Mathbl
12/04/2023, 2:02 PMbod
12/04/2023, 2:06 PMMathbl
12/04/2023, 2:14 PMbod
12/04/2023, 2:18 PMsourceFolder
) and by putting them there they'll also be picked up by your shared module with 4.x. But just a warning that this means the code will be generated twice then.Mathbl
12/04/2023, 2:48 PMapollo {
schemaFile.set(rootProject.file("shared/src/commonMain/graphql/schema.json"))
rootPackageName.set("com.myapp.android.graphql")
generateKotlinModels.set(true)
graphqlSourceDirectorySet.srcDirs("shared/src/commonMain/graphql/mobile-graphql")
graphqlSourceDirectorySet.exclude("**/*.md")
}
When I execute android:generateApolloSources I get nothing in android/build/src/graphqlbod
12/04/2023, 2:53 PMgraphqlSourceDirectorySet.srcDirs("${rootProject.projectDir}/shared/src/commonMain/graphql/mobile-graphql")
?Mathbl
12/04/2023, 3:00 PMMathbl
12/04/2023, 3:00 PMbod
12/04/2023, 3:00 PM