in model/src/main/kotlin/com/android/gradle/replicator/model/internal/filedata/AndroidResourcePropertiesAdapter.kt [27:77]
override fun read(input: JsonReader): AbstractAndroidResourceProperties {
val propertiesBuilder = ResourcePropertiesBuilder(resourceType!!)
input.readObjectProperties { property ->
when (property) {
"qualifiers" -> propertiesBuilder.qualifiers = this.nextString()
"extension" -> propertiesBuilder.extension = this.nextString()
"quantity" -> propertiesBuilder.quantity = this.nextInt()
"fileData" -> {
val fileData = mutableListOf<Long>()
this.readArray {
fileData.add(this.nextLong())
}
propertiesBuilder.fileData = fileData
}
"valuesFileList" -> {
val valuesMapPerFile = mutableListOf<ValuesMap>()
this.readArray {
val valuesMap = ValuesMap()
this.readObjectProperties { valueProperty ->
when (valueProperty) {
"stringCount" -> { valuesMap.stringCount = this.nextInt() }
"intCount" -> { valuesMap.intCount = this.nextInt() }
"boolCount" -> { valuesMap.boolCount = this.nextInt() }
"colorCount" -> { valuesMap.colorCount = this.nextInt() }
"dimenCount" -> { valuesMap.dimenCount = this.nextInt() }
"idCount" -> { valuesMap.idCount = this.nextInt() }
"integerArrayCount" -> {
this.readArray {
valuesMap.integerArrayCount.add(this.nextInt())
}
}
"arrayCount" -> {
this.readArray {
valuesMap.arrayCount.add(this.nextInt())
}
}
"styleCount" -> {
this.readArray {
valuesMap.styleCount.add(this.nextInt())
}
}
}
}
valuesMapPerFile.add(valuesMap)
}
propertiesBuilder.valuesMapPerFile = valuesMapPerFile
}
}
}
return propertiesBuilder.build()
}