File tree Expand file tree Collapse file tree
resources-generator/src/main/kotlin/dev/icerock/gradle/generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ buildscript {
6565 }
6666
6767 dependencies {
68- classpath "dev.icerock.moko:resources-generator:0.26.3 "
68+ classpath "dev.icerock.moko:resources-generator:0.26.4 "
6969 }
7070}
7171
@@ -83,10 +83,10 @@ project build.gradle
8383apply plugin: "dev.icerock.mobile.multiplatform-resources"
8484
8585dependencies {
86- commonMainApi("dev.icerock.moko:resources:0.26.3 ")
87- commonMainApi("dev.icerock.moko:resources-compose:0.26.3 ") // for compose multiplatform
86+ commonMainApi("dev.icerock.moko:resources:0.26.4 ")
87+ commonMainApi("dev.icerock.moko:resources-compose:0.26.4 ") // for compose multiplatform
8888
89- commonTestImplementation("dev.icerock.moko:resources-test:0.26.3 ")
89+ commonTestImplementation("dev.icerock.moko:resources-test:0.26.4 ")
9090}
9191
9292multiplatformResources {
@@ -133,7 +133,7 @@ should [add `export` declarations](https://kotlinlang.org/docs/multiplatform-bui
133133
134134```
135135framework {
136- export("dev.icerock.moko:resources:0.26.3 ")
136+ export("dev.icerock.moko:resources:0.26.4 ")
137137 export("dev.icerock.moko:graphics:0.10.0") // toUIColor here
138138}
139139```
Original file line number Diff line number Diff line change 11[versions ]
2- resourcesVersion = " 0.26.3 "
2+ resourcesVersion = " 0.26.4 "
33
44[libraries ]
55resources = { module = " dev.icerock.moko:resources" , version.ref = " resourcesVersion" }
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ internal class ResourceTypeGenerator<T : ResourceMetadata>(
3737 parentObjectName : String ,
3838 resources : List <ResourceMetadata >,
3939 ): GenerationResult ? {
40- val typeMetadata: List <T > = resources.filterClass(typeClass = metadataClass)
40+ val typeMetadata: List <T > = resources
41+ .filterClass(typeClass = metadataClass)
42+ .sortedBy { it.key }
4143
4244 // if we not have any resources of our type at all - not generate object
4345 if (typeMetadata.isEmpty()) return null
@@ -128,7 +130,9 @@ internal class ResourceTypeGenerator<T : ResourceMetadata>(
128130 parentObjectName : String ,
129131 resources : List <ResourceMetadata >,
130132 ): GenerationResult ? {
131- val typeResources: List <T > = resources.filterClass(metadataClass)
133+ val typeResources: List <T > = resources
134+ .filterClass(typeClass = metadataClass)
135+ .sortedBy { it.key }
132136
133137 // if we not have any resources of our type at all - not generate object
134138 if (typeResources.isEmpty()) return null
You can’t perform that action at this time.
0 commit comments