Skip to content

Commit

Permalink
Add some missing common files.
Browse files Browse the repository at this point in the history
  • Loading branch information
javils committed Nov 30, 2019
1 parent a3b34b5 commit f37bfbb
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public void processOpts() {
setDateLibrary(additionalProperties.get(DATE_LIBRARY).toString());
}

commonSupportingFiles();

switch (getLibrary()) {
case JVM_OKHTTP3:
case JVM_OKHTTP4:
Expand Down Expand Up @@ -326,15 +328,18 @@ private void processMultiplatformLibrary(final String infrastructureFolder) {


private void commonJvmMultiplatformSupportingFiles(String infrastructureFolder) {
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle"));
supportingFiles.add(new SupportingFile("settings.gradle.mustache", "", "settings.gradle"));
supportingFiles.add(new SupportingFile("infrastructure/ApiClient.kt.mustache", infrastructureFolder, "ApiClient.kt"));
supportingFiles.add(new SupportingFile("infrastructure/ApiAbstractions.kt.mustache", infrastructureFolder, "ApiAbstractions.kt"));
supportingFiles.add(new SupportingFile("infrastructure/RequestConfig.kt.mustache", infrastructureFolder, "RequestConfig.kt"));
supportingFiles.add(new SupportingFile("infrastructure/RequestMethod.kt.mustache", infrastructureFolder, "RequestMethod.kt"));
}

private void commonSupportingFiles() {
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle"));
supportingFiles.add(new SupportingFile("settings.gradle.mustache", "", "settings.gradle"));
}

@Override
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
Map<String, Object> objects = super.postProcessModels(objs);
Expand Down

0 comments on commit f37bfbb

Please sign in to comment.