use of com.apollographql.apollo.compiler.NullableValueType in project apollo-android by apollographql.
the class ApolloClassGenTask method generateClasses.
@TaskAction
void generateClasses(IncrementalTaskInputs inputs) {
final NullableValueType nullableValueType = this.nullableValueType == null ? NullableValueType.ANNOTATED : NullableValueType.Companion.findByValue(this.nullableValueType);
inputs.outOfDate(new Action<InputFileDetails>() {
@Override
public void execute(@NotNull InputFileDetails inputFileDetails) {
GraphQLCompiler.Arguments args = new GraphQLCompiler.Arguments(inputFileDetails.getFile(), outputDir, customTypeMapping, nullableValueType, useSemanticNaming, generateModelBuilder, useJavaBeansSemanticNaming, outputPackageName);
new GraphQLCompiler().write(args);
}
});
}
Aggregations