vpnhide/lsposed/app
okhsunrog 56befb828d refactor(lsposed): extract detectModuleMismatches + handle -dirty suffix
Extract the three copy-pasted version-mismatch if-blocks (kmod / zygisk
/ ports) in loadDashboardState into a pure list-driven helper:

  detectModuleMismatches(
      listOf(kmod to Kmod, zygisk to Zygisk, ports to Ports),
      appVersion,
  )

Returns List<ModuleMismatch>; the callsite just iterates. Closes the
typo-in-one-of-three-branches gap and makes the predicate unit-testable
without Android context.

Also broaden baseVersion() to strip the -dirty marker that
`git describe --dirty` appends when the working tree has uncommitted
changes, so 0.6.2-14-gSHA-dirty and 0.6.2-dirty both normalize to
0.6.2. Pre-release tags (-rc1, -beta) remain untouched.
2026-04-19 19:45:40 +03:00
..
src refactor(lsposed): extract detectModuleMismatches + handle -dirty suffix 2026-04-19 19:45:40 +03:00
build.gradle.kts chore: release v0.6.2 2026-04-17 16:24:53 +03:00
proguard-rules.pro monorepo: combine vpnhide-zygisk, vpnhide (lsposed), and vpnhide-kmod 2026-04-11 15:01:49 +03:00