First checking of AAPT2. The individual phases of AAPT2 work, but there
are some missing pieces.
For early testing we are missing:
- Need to properly mark file references and include them in package
- Need to package into zip
Final AAPT for apps we are missing:
- Need to crush PNGs
- Need to parse 9-patches
- Need to validate all of AndroidManifest.xml
- Need to write align method to align resource tables for splits.
Final AAPT for apps + system we are missing:
- Need to handle overlays
- Need to store comments for R file
- Need to handle --shared-lib (dynamic references too).
New AAPT features coming:
- Need to import compiled libraries
- Name mangling
- R file generation for library code
Change-Id: I95f8a63581b81a1f424ae6fb2c373c883b72c18d
93 lines
3.5 KiB
Plaintext
93 lines
3.5 KiB
Plaintext
digraph aapt {
|
|
out_package [label="out/default/package.apk"];
|
|
out_fr_package [label="out/fr/package.apk"];
|
|
out_table_aligned [label="out/default/resources-aligned.arsc"];
|
|
out_table_fr_aligned [label="out/fr/resources-aligned.arsc"];
|
|
out_res_layout_main_xml [label="out/res/layout/main.xml"];
|
|
out_res_layout_v21_main_xml [color=red,label="out/res/layout-v21/main.xml"];
|
|
out_res_layout_fr_main_xml [label="out/res/layout-fr/main.xml"];
|
|
out_res_layout_fr_v21_main_xml [color=red,label="out/res/layout-fr-v21/main.xml"];
|
|
out_table [label="out/default/resources.arsc"];
|
|
out_fr_table [label="out/fr/resources.arsc"];
|
|
out_values_table [label="out/values/resources.arsc"];
|
|
out_layout_table [label="out/layout/resources.arsc"];
|
|
out_values_fr_table [label="out/values-fr/resources.arsc"];
|
|
out_layout_fr_table [label="out/layout-fr/resources.arsc"];
|
|
res_values_strings_xml [label="res/values/strings.xml"];
|
|
res_values_attrs_xml [label="res/values/attrs.xml"];
|
|
res_layout_main_xml [label="res/layout/main.xml"];
|
|
res_layout_fr_main_xml [label="res/layout-fr/main.xml"];
|
|
res_values_fr_strings_xml [label="res/values-fr/strings.xml"];
|
|
|
|
out_package -> package_default;
|
|
out_fr_package -> package_fr;
|
|
|
|
package_default [shape=box,label="Assemble",color=blue];
|
|
package_default -> out_table_aligned;
|
|
package_default -> out_res_layout_main_xml;
|
|
package_default -> out_res_layout_v21_main_xml [color=red];
|
|
|
|
package_fr [shape=box,label="Assemble",color=blue];
|
|
package_fr -> out_table_fr_aligned;
|
|
package_fr -> out_res_layout_fr_main_xml;
|
|
package_fr -> out_res_layout_fr_v21_main_xml [color=red];
|
|
|
|
out_table_aligned -> align_tables;
|
|
out_table_fr_aligned -> align_tables;
|
|
|
|
align_tables [shape=box,label="Align",color=blue];
|
|
align_tables -> out_table;
|
|
align_tables -> out_fr_table;
|
|
|
|
out_table -> link_tables;
|
|
|
|
link_tables [shape=box,label="Link",color=blue];
|
|
link_tables -> out_values_table;
|
|
link_tables -> out_layout_table;
|
|
|
|
out_values_table -> compile_values;
|
|
|
|
compile_values [shape=box,label="Collect",color=blue];
|
|
compile_values -> res_values_strings_xml;
|
|
compile_values -> res_values_attrs_xml;
|
|
|
|
out_layout_table -> collect_xml;
|
|
|
|
collect_xml [shape=box,label="Collect",color=blue];
|
|
collect_xml -> res_layout_main_xml;
|
|
|
|
out_fr_table -> link_fr_tables;
|
|
|
|
link_fr_tables [shape=box,label="Link",color=blue];
|
|
link_fr_tables -> out_values_fr_table;
|
|
link_fr_tables -> out_layout_fr_table;
|
|
|
|
out_values_fr_table -> compile_values_fr;
|
|
|
|
compile_values_fr [shape=box,label="Compile",color=blue];
|
|
compile_values_fr -> res_values_fr_strings_xml;
|
|
|
|
out_layout_fr_table -> collect_xml_fr;
|
|
|
|
collect_xml_fr [shape=box,label="Collect",color=blue];
|
|
collect_xml_fr -> res_layout_fr_main_xml;
|
|
|
|
compile_res_layout_main_xml [shape=box,label="Compile",color=blue];
|
|
|
|
out_res_layout_main_xml -> compile_res_layout_main_xml;
|
|
|
|
out_res_layout_v21_main_xml -> compile_res_layout_main_xml [color=red];
|
|
|
|
compile_res_layout_main_xml -> res_layout_main_xml;
|
|
compile_res_layout_main_xml -> out_table_aligned;
|
|
|
|
compile_res_layout_fr_main_xml [shape=box,label="Compile",color=blue];
|
|
|
|
out_res_layout_fr_main_xml -> compile_res_layout_fr_main_xml;
|
|
|
|
out_res_layout_fr_v21_main_xml -> compile_res_layout_fr_main_xml [color=red];
|
|
|
|
compile_res_layout_fr_main_xml -> res_layout_fr_main_xml;
|
|
compile_res_layout_fr_main_xml -> out_table_fr_aligned;
|
|
}
|