com.apollographql.android.gradle.ApolloExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
Gradle plugin for generating java classes for graphql files
package com.apollographql.android.gradle;
import groovy.lang.Closure;
import java.util.LinkedHashMap;
import java.util.Map;
public class ApolloExtension {
static final String NAME = "apollo";
private boolean generateClasses = true;
private Map customTypeMapping = new LinkedHashMap<>();
public boolean isGenerateClasses() {
return generateClasses;
}
public void setGenerateClasses(boolean generateClasses) {
this.generateClasses = generateClasses;
}
public Map getCustomTypeMapping() {
return customTypeMapping;
}
public void setCustomTypeMapping(Map customTypeMapping) {
this.customTypeMapping = customTypeMapping;
}
public void setCustomTypeMapping(Closure closure) {
closure.setDelegate(customTypeMapping);
closure.setResolveStrategy(Closure.DELEGATE_FIRST);
closure.call();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy