Skip to content

Commit

Permalink
Corrected in case of canonicalization of locale
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Jul 17, 2019
1 parent 7aa55f0 commit f625d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/fastlane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -82,4 +83,4 @@ void deleteMatchingFiles(String dirPath, RegExp pattern) {
} else {
Directory(dirPath).createSync(recursive: true);
}
}
}

0 comments on commit f625d87

Please sign in to comment.