Skip to content

Commit

Permalink
docs(readme): mention the new .so 16KiB page boundaries aligning
Browse files Browse the repository at this point in the history
  • Loading branch information
iyxan23 authored Aug 29, 2024
1 parent c40953c commit ff79a47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ FileOutputStream zipOut = ...;
ZipAlign.alignZip(zipIn, zipOut);
```

Aligning .so files to 4KiB page boundaries are enabled by default, pass in a boolean to opt out:
Aligning .so files to 16KiB page boundaries is enabled by default, pass in a boolean to opt out:

```java
ZipAlign.alignZip(zipIn, zipOut, false);
```

Prefer to align .so files in a 4KiB page boundaries?

```
ZipAlign.alignZip(zipIn, zipOut, 4, 4096);
```

## Importing

This library is published in [jitpack](https://jitpack.io), you can add it as your dependency it with:
Expand Down

0 comments on commit ff79a47

Please sign in to comment.