diff --git a/src/main/groovy/de/triplet/gradle/play/BootstrapTask.groovy b/src/main/groovy/de/triplet/gradle/play/BootstrapTask.groovy index 311d89658..d25eacbc5 100644 --- a/src/main/groovy/de/triplet/gradle/play/BootstrapTask.groovy +++ b/src/main/groovy/de/triplet/gradle/play/BootstrapTask.groovy @@ -28,6 +28,7 @@ class BootstrapTask extends PlayPublishTask { bootstrapListing() bootstrapWhatsNew() + bootstrapAppDetails() } def bootstrapListing() { @@ -111,6 +112,15 @@ class BootstrapTask extends PlayPublishTask { } } + def bootstrapAppDetails() { + def appDetails = edits.details().get(variant.applicationId, editId).execute() + + FileUtils.writeStringToFile(new File(outputFolder, PlayPublishListingTask.FILE_NAME_FOR_CONTACT_EMAIL), appDetails.getContactEmail()) + FileUtils.writeStringToFile(new File(outputFolder, PlayPublishListingTask.FILE_NAME_FOR_CONTACT_PHONE), appDetails.getContactPhone()) + FileUtils.writeStringToFile(new File(outputFolder, PlayPublishListingTask.FILE_NAME_FOR_CONTACT_WEBSITE), appDetails.getContactWebsite()) + FileUtils.writeStringToFile(new File(outputFolder, PlayPublishListingTask.FILE_NAME_FOR_DEFAULT_LANGUAGE), appDetails.getDefaultLanguage()) + } + static def saveImage(File listingDir, String imageFolderName, List images) { File imageFolder = new File(listingDir, imageFolderName) if (!imageFolder.exists() && !imageFolder.mkdirs()) {