perf: json skip encode null field

This commit is contained in:
lisonge 2023-10-11 21:04:07 +08:00
parent 3bb2375d3b
commit b96b6699ec
2 changed files with 8 additions and 7 deletions

View File

@ -87,8 +87,8 @@ data class SubscriptionRaw(
val name: String? = null, val name: String? = null,
override val cd: Long? = null, override val cd: Long? = null,
override val delay: Long? = null, override val delay: Long? = null,
override val matchLauncher: Boolean?, override val matchLauncher: Boolean? = null,
override val quickFind: Boolean?, override val quickFind: Boolean? = null,
override val activityIds: List<String>? = null, override val activityIds: List<String>? = null,
override val excludeActivityIds: List<String>? = null, override val excludeActivityIds: List<String>? = null,
val groups: List<GroupRaw> = emptyList(), val groups: List<GroupRaw> = emptyList(),
@ -105,8 +105,8 @@ data class SubscriptionRaw(
val key: Int, val key: Int,
override val cd: Long? = null, override val cd: Long? = null,
override val delay: Long? = null, override val delay: Long? = null,
override val matchLauncher: Boolean?, override val matchLauncher: Boolean? = null,
override val quickFind: Boolean?, override val quickFind: Boolean? = null,
override val activityIds: List<String>? = null, override val activityIds: List<String>? = null,
override val excludeActivityIds: List<String>? = null, override val excludeActivityIds: List<String>? = null,
val rules: List<RuleRaw> = emptyList(), val rules: List<RuleRaw> = emptyList(),
@ -135,8 +135,8 @@ data class SubscriptionRaw(
val action: String? = null, val action: String? = null,
override val cd: Long? = null, override val cd: Long? = null,
override val delay: Long? = null, override val delay: Long? = null,
override val matchLauncher: Boolean?, override val matchLauncher: Boolean? = null,
override val quickFind: Boolean?, override val quickFind: Boolean? = null,
override val activityIds: List<String>? = null, override val activityIds: List<String>? = null,
override val excludeActivityIds: List<String>? = null, override val excludeActivityIds: List<String>? = null,
val matches: List<String> = emptyList(), val matches: List<String> = emptyList(),

View File

@ -89,8 +89,9 @@ dependencyResolutionManagement {
"others.activityResultLauncher", "others.activityResultLauncher",
"com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2" "com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2"
) )
// json5
// https://github.com/falkreon/Jankson // https://github.com/falkreon/Jankson
library("others.jankson", "blue.endless:jankson:1.2.1") library("others.jankson", "blue.endless:jankson:1.2.3")
// https://github.com/journeyapps/zxing-android-embedded // https://github.com/journeyapps/zxing-android-embedded
library("others.zxing.android.embedded", "com.journeyapps:zxing-android-embedded:4.3.0") library("others.zxing.android.embedded", "com.journeyapps:zxing-android-embedded:4.3.0")
// https://github.com/TorryDo/Floating-Bubble-View // https://github.com/TorryDo/Floating-Bubble-View