fix(lsposed): skip version-mismatch warning for dev builds

Dashboard compared module.prop versions (e.g. 0.6.2) directly against
BuildConfig.VERSION_NAME (which carries the git-describe suffix
0.6.2-14-g1f2205e on dev builds), always flagging mismatch. Now uses
baseVersion() to strip -N-gSHA before comparison; pre-release tags
(-rc1, -beta) are preserved.

Adds unit tests for normalizeVersion, compareSemver, baseVersion and
versionsMismatch, and wires :app:testDebugUnitTest into CI so they
actually run.
This commit is contained in:
okhsunrog 2026-04-19 18:51:32 +03:00
parent dcee78e954
commit 98b05c256f
6 changed files with 181 additions and 4 deletions

View file

@ -48,6 +48,8 @@ jobs:
run: ktlint "lsposed/**/*.kt"
- name: Android lint
run: cd lsposed && ./gradlew --no-daemon :app:lint
- name: Kotlin unit tests
run: cd lsposed && ./gradlew --no-daemon :app:testDebugUnitTest
kmod:
runs-on: ubuntu-latest