From 254a04490867ead28b89a13d6e1296780609f34a Mon Sep 17 00:00:00 2001 From: mihiro Date: Mon, 18 Jul 2022 00:17:14 +0900 Subject: [PATCH] Add bottom blank line (#388) Co-authored-by: Jon Hanson <32202698+jonbhanson@users.noreply.github.com> --- lib/android.dart | 4 ++-- lib/ios.dart | 8 ++++++-- lib/web.dart | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/android.dart b/lib/android.dart index ca23e5c..e6762f9 100644 --- a/lib/android.dart +++ b/lib/android.dart @@ -298,7 +298,7 @@ void _applyLaunchBackgroundXml({ } launchBackgroundFile.writeAsStringSync( - launchBackgroundDocument.toXmlString(pretty: true, indent: ' '), + '${launchBackgroundDocument.toXmlString(pretty: true, indent: ' ')}\n', ); } @@ -429,7 +429,7 @@ Future _updateStylesFile({ } stylesFile.writeAsStringSync( - stylesDocument.toXmlString(pretty: true, indent: ' '), + '${stylesDocument.toXmlString(pretty: true, indent: ' ')}\n', ); } diff --git a/lib/ios.dart b/lib/ios.dart index a552e61..65ae291 100644 --- a/lib/ios.dart +++ b/lib/ios.dart @@ -387,7 +387,9 @@ void _updateLaunchScreenStoryboard({ } } - file.writeAsStringSync(xmlDocument.toXmlString(pretty: true, indent: ' ')); + file.writeAsStringSync( + '${xmlDocument.toXmlString(pretty: true, indent: ' ')}\n', + ); } /// Creates LaunchScreen.storyboard with splash image path @@ -556,5 +558,7 @@ void _updateInfoPlistFile({ } } - file.writeAsStringSync(xmlDocument.toXmlString(pretty: true, indent: ' ')); + file.writeAsStringSync( + '${xmlDocument.toXmlString(pretty: true, indent: ' ')}\n', + ); } diff --git a/lib/web.dart b/lib/web.dart index 0e55935..b115a9a 100644 --- a/lib/web.dart +++ b/lib/web.dart @@ -282,7 +282,6 @@ void updateIndex({ ); } } - if (existingBrandingPictureLine == 0) { if (brandingImagePath != null) { for (var x = _indexHtmlBrandingPicture.length - 1; x >= 0; x--) { @@ -303,5 +302,5 @@ void updateIndex({ ); } } - webIndex.writeAsStringSync(lines.join('\n')); + webIndex.writeAsStringSync('${lines.join('\n')}\n'); }