@@ -522,6 +522,13 @@ def make_package(args):
522522 xmlpath = join (args .private , xmlpath )
523523 shutil .copy (xmlpath , res_xml_dir )
524524
525+ # Copy res_values files to src/main/res/values
526+ res_values_dir = join (res_dir , 'values' )
527+ if args .res_values :
528+ ensure_dir (res_values_dir )
529+ for xmlpath in args .res_values :
530+ shutil .copy (xmlpath , res_values_dir )
531+
525532 # Render out android manifest:
526533 manifest_path = "src/main/AndroidManifest.xml"
527534 render_args = {
@@ -832,6 +839,8 @@ def parse_args_and_make_package(args=None):
832839 'directory' ))
833840 ap .add_argument ('--res_xml' , dest = 'res_xmls' , action = 'append' , default = [],
834841 help = 'Add files to res/xml directory (for example device-filters)' , nargs = '+' )
842+ ap .add_argument ('--res-values' , dest = 'res_values' , action = 'append' , default = [],
843+ help = 'Add files to res/values directory (for example styles.xml)' )
835844 ap .add_argument ('--with-billing' , dest = 'billing_pubkey' ,
836845 help = 'If set, the billing service will be added (not implemented)' )
837846 ap .add_argument ('--add-source' , dest = 'extra_source_dirs' , action = 'append' ,
0 commit comments