mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-05-05 10:20:35 +00:00
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:
parent
dcee78e954
commit
98b05c256f
6 changed files with 181 additions and 4 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue