{"id":16557907,"url":"https://github.com/inferjay/r8","last_synced_at":"2025-10-28T20:32:00.064Z","repository":{"id":69575160,"uuid":"100696649","full_name":"inferjay/r8","owner":"inferjay","description":"mirror from https://r8.googlesource.com/r8","archived":false,"fork":false,"pushed_at":"2017-08-18T09:35:17.000Z","size":7217,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T12:05:38.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inferjay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-18T09:33:41.000Z","updated_at":"2024-04-16T12:05:38.309Z","dependencies_parsed_at":"2023-02-22T07:15:23.925Z","dependency_job_id":null,"html_url":"https://github.com/inferjay/r8","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferjay%2Fr8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferjay%2Fr8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferjay%2Fr8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferjay%2Fr8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inferjay","download_url":"https://codeload.github.com/inferjay/r8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219858830,"owners_count":16556040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T20:09:00.768Z","updated_at":"2025-10-28T20:31:57.104Z","avatar_url":"https://github.com/inferjay.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D8 dexer and R8 shrinker\n\nThe R8 repo contains two tools:\n\n- D8 is a dexer that converts java byte code to dex code.\n- R8 is a java program shrinking and minification tool that converts java byte\n  code to optimized dex code.\n\nD8 is a replacement for the DX dexer and R8 is a replacement for\nthe [Proguard](https://www.guardsquare.com/en/proguard) shrinking and\nminification tool.\n\n## Downloading and building\n\nThe R8 project uses [`depot_tools`](https://www.chromium.org/developers/how-tos/install-depot-tools)\nfrom the chromium project to manage dependencies. Install `depot_tools` and add it to\nyour path before proceeding.\n\nThe R8 project uses Java 8 language features and requires a Java 8 compiler\nand runtime system.\n\nTypical steps to download and build:\n\n\n    $ git clone https://r8.googlesource.com/r8\n    $ cd r8\n    $ tools/gradle.py d8 r8\n\nThe `tools/gradle.py` script will bootstrap using depot_tools to download\na version of gradle to use for building on the first run. This will produce\ntwo jar files: `build/libs/d8.jar` and `build/libs/r8.jar`.\n\n## Running D8\n\nThe D8 dexer has a simple command-line interface with only a few options.\n\nThe most important option is whether to build in debug or release mode.  Debug\nis the default mode and includes debugging information in the resulting dex\nfiles. Debugging information contains information about local variables used\nwhen debugging dex code. This information is not useful when shipping final\nAndroid apps to users and therefore, final builds should use the `--release`\nflag to remove this debugging information to produce smaller dex files.\n\nTypical invocations of D8 to produce dex file(s) in the out directoy:\n\nDebug mode build:\n\n    $ java -jar build/libs/d8.jar --output out input.jar\n\nRelease mode build:\n\n    $ java -jar build/libs/d8.jar --release --output out input.jar\n\nThe full set of D8 options can be obtained by running the command line tool with\nthe `--help` option.\n\n## Running R8\n\nR8 is a [Proguard](https://www.guardsquare.com/en/proguard) replacement for\nwhole-program optimization, shrinking and minification. R8 uses the Proguard\nkeep rule format for specifying the entry points for an application.\n\nTypical invocations of R8 to produce optimized dex file(s) in the out directory:\n\n    $ java -jar build/libs/r8.jar --release --output out --pg-conf proguard.cfg input.jar\n\nThe full set of R8 options can be obtained by running the command line tool with\nthe `--help` option.\n\n## Testing\n\nTypical steps to run tests:\n\n    $ tools/test.py --no_internal\n\nThe `tools/test.py` script will use depot_tools to download a lot of tests\nand test dependencies on the first run. This includes prebuilt version of the\nart runtime on which to validate the produced dex code.\n\n## Getting help\n\nFor questions, bug reports and other issues reach out to us at\nr8-dev@googlegroups.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferjay%2Fr8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finferjay%2Fr8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferjay%2Fr8/lists"}