Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Dec 4, 2024
1 parent c31e8db commit 4a369f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,13 @@ salty {

Salty adds a `saltyCheck${variantName}` task that visits your app and dependencies bytecode using [ASM](https://asm.ow2.io/) and fails if an usage of any forbidden method is found.

```
$ ./gradlew :app:saltyCheckDebug
> Task :app:saltyCheckDebug FAILED
e: /Users/martinbonnin/git/salty/android-test/app/build/tmp/kotlin-classes/debug/com/example/android_test/MainActivity.class uses java.util.List.removeFirst
FAILURE: Build failed with an exception.
```

`saltyCheck${variantName}` is added to the `check` task so that it is run automatically.

0 comments on commit 4a369f8

Please sign in to comment.