From 16a8650d7c04875e9a792212f115c52110783638 Mon Sep 17 00:00:00 2001 From: crc-32 Date: Tue, 25 Apr 2023 02:41:08 +0100 Subject: [PATCH] make some pbz json optional --- gradle.properties | 2 +- .../libpebblecommon/metadata/pbz/manifest/PbzFirmware.kt | 2 +- .../libpebblecommon/metadata/pbz/manifest/PbzManifest.kt | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6ec2886..ae8c962 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ kotlin.code.style=official group=io.rebble.libpebblecommon -version=0.1.12 +version=0.1.13 org.gradle.jvmargs=-Xms128M -Xmx1G -XX:ReservedCodeCacheSize=200M kotlin.native.binary.memoryModel=experimental kotlin.mpp.androidSourceSetLayoutVersion=2 diff --git a/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzFirmware.kt b/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzFirmware.kt index d50d54f..2b48b57 100644 --- a/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzFirmware.kt +++ b/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzFirmware.kt @@ -16,5 +16,5 @@ data class PbzFirmware( val hwRev: WatchHardwarePlatform, val size: Long, val crc: Long, - val versionTag: String + val versionTag: String? = null ) diff --git a/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzManifest.kt b/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzManifest.kt index 20ae9f4..17c105b 100644 --- a/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzManifest.kt +++ b/src/commonMain/kotlin/io/rebble/libpebblecommon/metadata/pbz/manifest/PbzManifest.kt @@ -8,11 +8,11 @@ import kotlinx.serialization.Serializable data class PbzManifest( val manifestVersion: Int, val generatedAt: Long, - val generatedBy: String, - val debug: Debug, + val generatedBy: String? = null, + val debug: Debug? = null, val firmware: PbzFirmware, - val resources: SystemResources?, + val resources: SystemResources? = null, @SerialName("js_tooling") - val jsTooling: JsTooling, + val jsTooling: JsTooling? = null, val type: String ) \ No newline at end of file