Skip to content

Instantly share code, notes, and snippets.

@babedev
Created January 5, 2017 08:19
Show Gist options
  • Save babedev/65f23d43577c130f793880c647e5433a to your computer and use it in GitHub Desktop.
Save babedev/65f23d43577c130f793880c647e5433a to your computer and use it in GitHub Desktop.
private void generateView() throws IOException {
TypeSpec mvpView = TypeSpec.interfaceBuilder(featureName + "View")
.build();
JavaFile javaFile = JavaFile.builder(packageName + "." + featureName.toLowerCase(), mvpView)
.build();
File file = new File("app/src/main/java");
javaFile.writeTo(file);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment