Beheer geteste versies en signatures per platform op één plek #83

Closed
opened 2026-10-14 13:46:13 +02:00 by midas · 1 comment
Owner

Severity: medium · Categorie: architecture · Effort: S

Probleem

De DPG-signing-certificate-hash, de geteste versies en de experimentele target staan per titel gekopieerd: 3× voor Edition (Constants, ConstantsTrouw, ConstantsHetParool) en 8× voor Kubus. Dezelfde hash staat er 11 keer. De titels per platform delen één codebase en worden samen getest. Gelderland staat in object Constants, de andere zeven titels zijn top-level vals. Verouderd commentaar ("7.52.0", "Uptodown") staat alleen in het eerste bestand.

Waar

Bewijs

U2-3 (patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt)

signatures = setOf("80d91716...", "34a28a48..."), appIconColor = 0xFFFFFF,
targets = listOf(AppTarget(version = null, isExperimental = true), AppTarget(version = "7.52.0"))  // x3

U3-3 (patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt)

targets = listOf(
    AppTarget(version = null, isExperimental = true),
    AppTarget(version = "9.21.1"),
),
signatures = setOf("80d91716e88298892a4d34076ae3562ac9e2212e08048d09dbfeca2c26a6ed92")

X-arch-1 (patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt)

grep 80d91716 -> 11 occurrences in 11 files (3 edition + 8 kubus)
AppTarget(version = "9.21.1") in 8 kubus files; AppTarget(version = "7.52.0") in 3 edition files
ConstantsED.kt: Compatibility(name, packageName, description, apkFileType = XAPK, signatures = setOf("80d9..."), appIconColor, targets = listOf(null-experimental, "9.21.1"))

Impact

Een nieuwe geteste versie betekent 3 of 8 bestanden in lockstep aanpassen. Mis je er één, dan blijft die titel op de oude versie. Daarmee faalt "Applied" niet, maar Manager toont de app dan als niet-getest.

Voorstel

Zet per platform één EDITION_TARGETS/KUBUS_TARGETS en één DPG_SIGNATURE in shared/, met een factory editionTitle(name, packageName, description, appIconColor) / kubusTitle(...). Per titel blijven alleen naam, package, beschrijving, icoonkleur en AD's extra signature over. Werk de update-app-version-skill bij.

Acceptatiecriteria

  • Een nieuwe Kubus- of Edition-versie declareren raakt één regel.
  • list-patches --with-packages geeft voor en na exact dezelfde packages en versies.

Code review @ 33e02db (2026-10-14) · findings: U2-3, U3-3, X-arch-1

**Severity:** medium · **Categorie:** architecture · **Effort:** S ## Probleem De DPG-signing-certificate-hash, de geteste versies en de experimentele target staan per titel gekopieerd: 3× voor Edition (`Constants`, `ConstantsTrouw`, `ConstantsHetParool`) en 8× voor Kubus. Dezelfde hash staat er 11 keer. De titels per platform delen één codebase en worden samen getest. Gelderland staat in `object Constants`, de andere zeven titels zijn top-level vals. Verouderd commentaar ("7.52.0", "Uptodown") staat alleen in het eerste bestand. ## Waar - [`patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt#L20-31`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt#L20-L31) - [`patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsTrouw.kt#L12-20`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsTrouw.kt#L12-L20) - [`patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsHetParool.kt#L12-20`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsHetParool.kt#L12-L20) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt#L9-27`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt#L9-L27) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsAD.kt#L15-23`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsAD.kt#L15-L23) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsBD.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsBD.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsBNDeStem.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsBNDeStem.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsDeStentor.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsDeStentor.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsED.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsED.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsPZC.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsPZC.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsTubantia.kt#L12-19`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsTubantia.kt#L12-L19) - [`patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsTrouw.kt#L1-25`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsTrouw.kt#L1-L25) - [`patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsHetParool.kt#L1-25`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/edition/shared/ConstantsHetParool.kt#L1-L25) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt#L9-37`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt#L9-L37) - [`patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsED.kt#L7-20`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/ConstantsED.kt#L7-L20) ## Bewijs _U2-3 (patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt)_ ```kotlin signatures = setOf("80d91716...", "34a28a48..."), appIconColor = 0xFFFFFF, targets = listOf(AppTarget(version = null, isExperimental = true), AppTarget(version = "7.52.0")) // x3 ``` _U3-3 (patches/src/main/kotlin/nl/midasvo/patches/kubus/shared/Constants.kt)_ ```kotlin targets = listOf( AppTarget(version = null, isExperimental = true), AppTarget(version = "9.21.1"), ), signatures = setOf("80d91716e88298892a4d34076ae3562ac9e2212e08048d09dbfeca2c26a6ed92") ``` _X-arch-1 (patches/src/main/kotlin/nl/midasvo/patches/edition/shared/Constants.kt)_ ```kotlin grep 80d91716 -> 11 occurrences in 11 files (3 edition + 8 kubus) AppTarget(version = "9.21.1") in 8 kubus files; AppTarget(version = "7.52.0") in 3 edition files ConstantsED.kt: Compatibility(name, packageName, description, apkFileType = XAPK, signatures = setOf("80d9..."), appIconColor, targets = listOf(null-experimental, "9.21.1")) ``` ## Impact Een nieuwe geteste versie betekent 3 of 8 bestanden in lockstep aanpassen. Mis je er één, dan blijft die titel op de oude versie. Daarmee faalt "Applied" niet, maar Manager toont de app dan als niet-getest. ## Voorstel Zet per platform één `EDITION_TARGETS`/`KUBUS_TARGETS` en één `DPG_SIGNATURE` in `shared/`, met een factory `editionTitle(name, packageName, description, appIconColor)` / `kubusTitle(...)`. Per titel blijven alleen naam, package, beschrijving, icoonkleur en AD's extra signature over. Werk de `update-app-version`-skill bij. ## Acceptatiecriteria - [ ] Een nieuwe Kubus- of Edition-versie declareren raakt één regel. - [ ] `list-patches --with-packages` geeft voor en na exact dezelfde packages en versies. _Code review @ 33e02db (2026-10-14) · findings: U2-3, U3-3, X-arch-1_
Author
Owner

Opgelost in PR #112, gemerged in dev en uitgebracht in v1.10.0 (onderdeel van #105).

Opgelost in PR #112, gemerged in dev en uitgebracht in v1.10.0 (onderdeel van #105).
midas closed this issue 2026-10-17 21:22:35 +02:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#83
No description provided.