platform_build_soong/apex
Paul Duffin 155c17779c Extract createEntriesForApexFile
While this seems like a simple refactoring it does actually fix an
issue. Previously, when the ExtraEntries func was being defined inline
within the for ... loop it used the loop variable "fi". Unfortunately,
that meant that the func created on each iteration ended up using the
value for "fi" that was set on the last iteration.

Extracting the creation of the entry into a separate method means that
each func created gets its own "fi" variable with the correct values.

Bug: 177892522
Test: m SOONG_CONFIG_art_module_source_build=false nothing
      - without this change it reported duplicate rules for apache-xml.jar
        which is the last entry in the art-bootclasspath-fragment. With
        this change it works fine.
Change-Id: Ia063b513f758e1bbe73407c0441b72453f412acf
2021-06-18 07:43:32 +01:00
..
Android.bp Add systemserverclasspath_fragments property to apex. 2021-05-17 21:46:08 +01:00
androidmk.go Ignore cc.Module.HideFromMake when producing flattened apex Android.mk entries 2021-04-29 13:54:49 -07:00
apex.go Create APEX variant for prebuilt_apex/apex_set 2021-06-16 18:54:19 +01:00
apex_singleton.go Treat allowed_deps.txt source file as optional. 2021-03-18 11:15:33 +00:00
apex_test.go Combine hidden API encoding with flag generation 2021-06-17 10:20:33 +01:00
bootclasspath_fragment_test.go Export boot image files from prebuilt_apex/apex_set 2021-06-17 23:05:43 +01:00
builder.go Rename test_only_no_hashtree to generate_hashtree 2021-06-10 16:54:53 +01:00
deapexer.go Export boot image files from prebuilt_apex/apex_set 2021-06-17 23:05:43 +01:00
key.go Extract apex registration code into function for reuse 2021-03-09 23:03:40 +00:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 13:44:16 +00:00
platform_bootclasspath_test.go Make TestPlatformBootclasspath_Fragments more realistic 2021-06-10 12:36:43 +01:00
prebuilt.go Extract createEntriesForApexFile 2021-06-18 07:43:32 +01:00
systemserver_classpath_fragment_test.go Rename generate proto config file to match classpath type. 2021-05-24 12:52:01 +01:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go bootclasspath_fragment: Add contents to snapshot 2021-04-21 23:54:22 +01:00
vndk.go Remove global state from VNDK apexes 2021-03-02 12:23:16 -08:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00