New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707755 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocking:
issue 638318



Sign in to add a comment

Pack Java resource files into APK

Project Member Reported by zqzh...@chromium.org, Apr 3 2017

Issue description

Is there a way of packing Java resource files (not Android resources/assets) into the APK?

This is required per https://bugs.chromium.org/p/chromium/issues/detail?id=638318#c7.

I am able to do it with Android studio but I haven't figured out how to do with current gn build rules.
 
Some support for this was added here:
https://codereview.chromium.org/2632283002

With this mechanism, you can point the build to a .jar file, and it will copy over all non .class files from it as java resources.

If you need to pack in individual files, we'd need to add support for this similar to how android_assets work.
Status: Archived (was: Untriaged)
I tried the solution and succeeded. Thanks!

Sign in to add a comment