From f625d879734b73c470c81b50b7032316de18f9ed Mon Sep 17 00:00:00 2001 From: Maurice McCabe Date: Wed, 17 Jul 2019 10:46:43 -0700 Subject: [PATCH] Corrected in case of canonicalization of locale --- lib/src/fastlane.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/fastlane.dart b/lib/src/fastlane.dart index 73ac9410..376e2b3d 100644 --- a/lib/src/fastlane.dart +++ b/lib/src/fastlane.dart @@ -50,6 +50,7 @@ Future _clearFastlaneDir(Screens screens, String deviceName, String locale, /// Generate fastlane dir path for ios or android. String getDirPath( DeviceType deviceType, String locale, String androidModelType) { + locale = locale.replaceAll('_', '-'); // in case canonicalized const androidPrefix = 'android/fastlane/metadata/android'; const iosPrefix = 'ios/fastlane/screenshots'; String dirPath; @@ -82,4 +83,4 @@ void deleteMatchingFiles(String dirPath, RegExp pattern) { } else { Directory(dirPath).createSync(recursive: true); } -} \ No newline at end of file +}