commit | 2d63b10fe12522283ddb4a5d62cd22dbf8ba0e8a | [log] [tgz] |
---|---|---|
author | Ievgenii Nazaruk <ievgenii@fb.com> | Wed Oct 16 10:14:51 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Thu Oct 24 20:58:12 2013 -0700 |
tree | 43f0cb7fee915d71b031a160d7f09a3547522e2d | |
parent | 8afa1825dfe360d53bf35ef5e5152675828436cd [diff] |
Fixed manifest merging when activity-alias are used. Summary: If `activity-alias` is used in application's AndroidManifest.xml and activity mentioned in 'android:targetActivity' comes from library manifest, application will fail to install. The reason for this is that `activity-alias` requires target activity to be declared before `activity-alias` element. Since we always merge stuff from libraries at the end we always would get activity from library be after `activity-alias` in the app. This diff fixes this issues by introducing "normalization" step after all libraries' elements were merged into main manifest. This step simply moves all `activity-alias` elements to the very end of `application` element. This is fine since none of the other elements in manifest are order sensitive.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0