R8 processing is missing an option to create filtered .jar

Open
#430 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java

Research direction

Read r8.bzl#process_r8 first and trace how the deploy JAR is produced. Determine where an option to filter entries such as LICENSE.txt, LICENSE, and META-INF should fit, then verify that the resulting deploy JAR excludes those unnecessary entries while R8 optimization and dexing still work.

Written by the indexing model from the issue text.

Description

When optimizing and dexing with R8 (r8.bzl#process_r8), we seem to be missing a step to filter unnecessary entries from the deploy jar.
Those unnecessary entries can be something like LICENSE.txt, LICENSE, META-INF entries, etc.

Dominant language
Java
Stars
205
Forks
113
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/rules_android

All issues in bazelbuild/rules_android

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.