Modern Apps git

← Modern-Apps.git

games-minesweeper: fix all lint findings

Commit
5592ce1afb5bbc095fc71af80db058acd3008269
Author
Vayun Mathur <[email protected]>
When
2026-11-17 04:48 UTC (19 days ago)
Parents
7bc939c
Declare android.permission.POST_NOTIFICATIONS in the minesweeper
AndroidManifest, following the games/chess pattern (fa14e2ad7).

The module uses notification posting transitively via
com.vayunmathur.library.util.MaNotifications, so lint reported
NotificationPermission on AndroidManifest.xml when targeting
Android 13+. Declaring the permission resolves that finding;
no lint config, baseline, or suppression was added.

Verification:
- Baseline :games:minesweeper:lintDev SARIF: 1 own finding
  (NotificationPermission, warning) in games/minesweeper, plus
  72 transitive library/** findings ignored per task scope.
- After the fix, regenerated lintDev SARIF: 0 own findings
  (0 errors / 0 warnings in games/minesweeper); 71 remaining
  findings are all under library/** (transitive, out of scope).
  The library MaNotifications NotificationPermission warning
  also cleared as a side effect of the declaration.
- :games:minesweeper:testDevUnitTest green: 91 tests,
  0 failures, 0 errors, 0 skipped.

Diff

games/minesweeper/src/main/AndroidManifest.xml
diff --git a/games/minesweeper/src/main/AndroidManifest.xml b/games/minesweeper/src/main/AndroidManifest.xmlindex 3c0fad55f8..0aa13f8f34 100644--- a/games/minesweeper/src/main/AndroidManifest.xml+++ b/games/minesweeper/src/main/AndroidManifest.xml@@ -8,6 +8,7 @@      <uses-permission android:name="com.vayunmathur.games.hub.permission.READ_GAME_DATA" />     <uses-permission android:name="com.vayunmathur.games.hub.permission.WRITE_GAME_DATA" />+    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />      <application         android:allowBackup="true"