Skip to content

Commit b30306b

Browse files
committed
Fix Android Lint errors and update agent commit instructions.
Add `@SuppressLint("LocalContextGetResourceValueCall")` annotation to `TrustEntryScreen` in `androidApp` to resolve Lint failures when querying string resources using the local context. Update `AGENTS.md` commit rules to require that all unit tests and linting be verified to pass before creating a commit. Test: Executed `./gradlew :androidApp:lintDebug :androidApp:assembleDebug :androidApp:testDebugUnitTest` successfully. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
1 parent db7e1a9 commit b30306b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ You must follow the guidelines in [CODING-STYLE.md](CODING-STYLE.md) file.
5353

5454
## 6. Commits
5555
The following rules apply when being asked to generate a commit.
56+
* All unit tests and linting must be verified to pass before making a commit.
5657
* The commit message should detail the changes being committed, not all the prompts that led to here. This includes changes to the source that was done by others, for example the human driving the AI.
5758
* Commit messages must be detailed and to the point. If referring to classes or types in the project enclose it in backticks, if referring to function or method names use trailing open and close parenthesis.
5859
* First line of the commit message must end in a period and be no longer than 72 characters and should avoid using type or function names.

androidApp/src/main/java/org/multipaz/wallet/android/ui/settings/TrustEntryScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.multipaz.wallet.android.ui.settings
22

3+
import android.annotation.SuppressLint
34
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
56
import androidx.compose.foundation.layout.padding
@@ -52,6 +53,7 @@ import org.multipaz.wallet.client.updateTrustEntry
5253

5354
private const val TAG = "TrustEntryScreen"
5455

56+
@SuppressLint("LocalContextGetResourceValueCall")
5557
@OptIn(ExperimentalResourceApi::class, ExperimentalMaterial3Api::class)
5658
@Composable
5759
fun TrustEntryScreen(

0 commit comments

Comments
 (0)