diff --git a/CHANGELOG.md b/CHANGELOG.md index cffcd6d..37bbcbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [3.2.6] - 2026-05-24 + +### Fixed +- Clearing an item tag's description on edit was silently ignored — the Retrofit JSON config keeps `encodeDefaults = false`, so `ItemTagBodyDetail.description = ""` (equal to its declared default) was dropped from the request body and the server's partial update left the old description in place. Removed the default so the empty string is always sent + ## [3.2.5] - 2026-05-08 ### Changed diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d00300e..09a583a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,8 +14,8 @@ android { applicationId = "com.nativeapptemplate.nativeapptemplatefree" targetSdk = 36 minSdk = 26 - versionCode = 10 - versionName = "3.2.5" + versionCode = 11 + versionName = "3.2.6" vectorDrawables { useSupportLibrary = true diff --git a/app/src/test/kotlin/com/nativeapptemplate/nativeapptemplatefree/demo/item_tag/DemoItemTagRepositoryTest.kt b/app/src/test/kotlin/com/nativeapptemplate/nativeapptemplatefree/demo/item_tag/DemoItemTagRepositoryTest.kt index facf169..23d1902 100644 --- a/app/src/test/kotlin/com/nativeapptemplate/nativeapptemplatefree/demo/item_tag/DemoItemTagRepositoryTest.kt +++ b/app/src/test/kotlin/com/nativeapptemplate/nativeapptemplatefree/demo/item_tag/DemoItemTagRepositoryTest.kt @@ -71,6 +71,7 @@ class DemoItemTagRepositoryTest { ItemTagBody( itemTagBodyDetail = ItemTagBodyDetail( name = itemTagData.getName(), + description = "", ), ), ).first(), @@ -86,6 +87,7 @@ class DemoItemTagRepositoryTest { itemTagBody = ItemTagBody( itemTagBodyDetail = ItemTagBodyDetail( name = itemTagData.getName(), + description = "", ), ), ).first(), diff --git a/model/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/model/ItemTagBodyDetail.kt b/model/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/model/ItemTagBodyDetail.kt index 90f055d..45f4683 100644 --- a/model/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/model/ItemTagBodyDetail.kt +++ b/model/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/model/ItemTagBodyDetail.kt @@ -8,5 +8,9 @@ import kotlinx.serialization.Serializable @Parcelize data class ItemTagBodyDetail( val name: String, - val description: String = "", + // No default: with the Json config's encodeDefaults = false, a value equal to + // its default ("") is dropped from the payload, so clearing a description on + // edit would be silently ignored by the server's partial update. Both call + // sites supply description explicitly. + val description: String, ) : Parcelable