Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17009] Tooling: Android Module need to add support for multiple res directories

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, CLI
Labelsn/a
ReporterVishal Duggal
AssigneeUnknown
Created2014-05-21T20:41:32.000+0000
Updated2018-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.

Comments

  1. Mark Mokryn 2014-05-22

    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:
       com.some.class, directory_name
       
    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.
  2. Andrey Tkachenko 2016-02-09

    Whether there is a temporary solution? Need to generate more then one com.my.lib.R.java
  3. Jerod Fritz 2016-06-28

    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?
  4. Rainer Schleevoigt 2017-02-17

    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.

JSON Source