file.getBytes() loaded the entire APK into JVM heap, causing OutOfMemoryError on files >~50MB. Now streams to a temp file while computing SHA-256 via DigestInputStream, then atomically moves to the final path. Zero heap cost regardless of file size. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/main | ||
| pom.xml | ||