[TIMOB-17009] Tooling: Android Module need to add support for multiple res directories
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, CLI |
Labels | n/a |
Reporter | Vishal Duggal |
Assignee | Unknown |
Created | 2014-05-21T20:41:32.000+0000 |
Updated | 2018-02-28T20:03:36.000+0000 |
Description
The current Android module structure only supports a single directory where the platform specific resources can be placed (/android/platform/android/res). This directory is directly copied into the build folder of the app.
TIMOB-11360 added support for generating package specific R.java files via the respackage entry in the manifest.
We need to add support for multiple module specific resource folders in a similar fashion.
Hi, not sure how you're planning on solving this, but my suggestion: Allow the respackageinfo file to specify the res directory per class, i.e. each line in the respackageinfo file can look like:
where directory_name can be a subdirectory in the module's platform directory, or if it starts with a '/' then it's an absolute path in the OS. Personally I don't think it needs to go in the manifest, the developer can just create a respackageinfo file by hand.
Whether there is a temporary solution? Need to generate more then one com.my.lib.R.java
I also need to generate more than one *R.java for our module project. Is there an (unsupported) solution for this anywhere that could get us to a build state?
We have developed a patch for SDK 6.0.1.GA With this patch you can use multiple res folders and aars. Instructions you find here: https://github.com/AppWerft/TitaniumAndroidModuleDevelopment/blob/master/Titanium-Modules_AAR-Support.pdf Please contact if interesse.