Skip to content

Track packaged files of 100 KB or more with Highlander - #357

Merged
fornewid merged 1 commit into
developfrom
highlander-large-files
Oct 9, 2026
Merged

fornewid merged 1 commit into
developfrom
highlander-large-files

Conversation

@fornewid

@fornewid fornewid commented Oct 9, 2026

Copy link
Copy Markdown
Member

Closes #356.

Applies Highlander 0.0.6 to :app with largeFiles = true and largeFilesThresholdKb = 100 for release. Every packaged file of 100 KB or more (res, assets, jni and Java resources, from the app and its dependencies) is recorded in app/highlander/releaseLargeFiles.txt. No file reaches 100 KB today, so the baseline holds only the # threshold=100KB header.

The plugin's default duplicate scans (resources and assets) come along with it. Both of their baselines are empty. They are committed because the check fails when a baseline file is missing.

./gradlew highlander runs in CI after proguardShieldFast, and check.sh and CHECK.md list it with the other guards. The plugin also hooks into check, but neither CI nor check.sh runs check.

Verification

  • ./gradlew :app:highlanderBaseline generates the three baselines, and ./gradlew highlander passes.
  • With a temporary 150 KB file in app/src/main/assets, :app:highlander fails with + assets/highlander-probe.bin: - :app (150 KB). It passes again once the file is removed.
  • At a 20 KB threshold the scan finds six files: Kotlin builtins (28 KB), OkHttp public suffixes (40 KB), and the DataStore native library (about 52 KB per ABI). So the empty 100 KB baseline reflects the files, not a scan that finds nothing.
  • ./gradlew dependencyGuard manifestShield proguardShieldFast moduleRules and spotlessCheck pass, and the existing baselines are unchanged.

Apply Highlander 0.0.6 to :app with largeFiles enabled at a 100 KB
threshold for release, commit its baselines, and run ./gradlew highlander
in CI, check.sh and CHECK.md alongside the other guards.

Closes #356
@fornewid
fornewid merged commit 996c58c into develop Oct 9, 2026
1 check passed
@fornewid
fornewid deleted the highlander-large-files branch October 9, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track packaged files of 100 KB or more with Highlander

1 participant