Skip to content
Snippets Groups Projects
Unverified Commit 1e0f8415 authored by CWA Technical User's avatar CWA Technical User Committed by GitHub
Browse files

Protocol Buffer update for release 2.0.x at Tue Apr 6 08:07:46 UTC 2021 (#2742)

parent ab4d8ba6
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,12 @@ internal class QrCodePosterTemplateServerTest : BaseTest() { ...@@ -45,12 +45,12 @@ internal class QrCodePosterTemplateServerTest : BaseTest() {
createInstance().downloadQrCodePosterTemplate().apply { createInstance().downloadQrCodePosterTemplate().apply {
template.toStringUtf8().substring(0, 22) shouldBe "<vector xmlns:android=" template.toStringUtf8().substring(0, 22) shouldBe "<vector xmlns:android="
offsetX shouldBe 10 offsetX shouldBe 10.0f
offsetY shouldBe 10 offsetY shouldBe 10.0f
qrCodeSideLength shouldBe 100 qrCodeSideLength shouldBe 100
with(descriptionTextBox) { with(descriptionTextBox) {
offsetX shouldBe 10 offsetX shouldBe 0.0f
offsetY shouldBe 50 offsetY shouldBe 0.0f
width shouldBe 100 width shouldBe 100
height shouldBe 20 height shouldBe 20
fontSize shouldBe 10 fontSize shouldBe 10
...@@ -127,6 +127,7 @@ internal class QrCodePosterTemplateServerTest : BaseTest() { ...@@ -127,6 +127,7 @@ internal class QrCodePosterTemplateServerTest : BaseTest() {
"</vector>\n""")) "</vector>\n"""))
.build()*/ .build()*/
// TODO update this bundle to send PDF file not XML
private val POSTER_BUNDLE = ( private val POSTER_BUNDLE = (
"504b03040a000000080014867d52008c85fefb000000ab0100000a0000006578706f72742e62" + "504b03040a000000080014867d52008c85fefb000000ab0100000a0000006578706f72742e62" +
"696e7d90cf4bc33014c7071e949c0415bc0825bbc8685f9676edbad216440fbb78f61c9a6a8ae912da9089ff80ffb66957700e" + "696e7d90cf4bc33014c7071e949c0415bc0825bbc8685f9676edbad216440fbb78f61c9a6a8ae912da9089ff80ffb66957700e" +
......
...@@ -15,8 +15,8 @@ message QRCodePosterTemplateAndroid { ...@@ -15,8 +15,8 @@ message QRCodePosterTemplateAndroid {
QRCodeTextBoxAndroid descriptionTextBox = 5; QRCodeTextBoxAndroid descriptionTextBox = 5;
message QRCodeTextBoxAndroid { message QRCodeTextBoxAndroid {
uint32 offsetX = 1; float offsetX = 1;
uint32 offsetY = 2; float offsetY = 2;
uint32 width = 3; uint32 width = 3;
uint32 height = 4; uint32 height = 4;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
syntax = "proto3"; syntax = "proto3";
package de.rki.coronawarnapp.server.protocols.internal.pt; package de.rki.coronawarnapp.server.protocols.internal.pt;
message QRCodePayload { message QRCodePayload {
uint32 version = 1; uint32 version = 1;
TraceLocation locationData = 2; TraceLocation locationData = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment