Make platforms order reproducible in iml-files

#KT-33316 Fixed
This commit is contained in:
Andrey Uskov
2019-08-19 19:14:44 +03:00
parent a843c23f20
commit 48d666daea
5 changed files with 77 additions and 1 deletions
@@ -305,7 +305,7 @@ private fun KotlinFacetSettings.writeLatestConfig(element: Element) {
targetPlatform?.let {
element.setAttribute("platform", it.oldFashionedDescription)
element.setAttribute("allPlatforms", it.componentPlatforms.map { it.serializeToString() }.joinToString(separator = "/"))
element.setAttribute("allPlatforms", it.componentPlatforms.map { it.serializeToString() }.sorted().joinToString(separator = "/"))
}
if (!useProjectSettings) {
element.setAttribute("useProjectSettings", useProjectSettings.toString())