aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-12-04 18:34:43 -0800
committerXavier Ducrohet <xav@android.com>2012-12-05 12:52:20 -0800
commit131459f779b1a98bf354663298637589a2860fff (patch)
treecd6cda7e03b6872ba200a0412cbc71f5ca80fba9 /files
parent0f9622decc4d8ff78dc7ea6ca703841db44d69b7 (diff)
downloadsdk-131459f779b1a98bf354663298637589a2860fff.zip
sdk-131459f779b1a98bf354663298637589a2860fff.tar.gz
sdk-131459f779b1a98bf354663298637589a2860fff.tar.bz2
Support package conflicts between app and libs.
If 2 libraries share the same package name, this is now a build breakage, unless all libraries share the same package. This is because the libraries R classes only contain the resources declared in the libraries themselves (plus dependencies). Since two libraries could share the same package name without depending on one another, it's possible to ensure that creating only one R class would work for both. (Merging both R class might be possible but is too risky for a quick fix like this). If all the libraries share the same package, then a single R class is created for that package that contains all the symbol of the app (simpler than merging all the symbols for now) If a library and the app share the same package name, the R class for the library is not created (since the R class for the app contains all resources). This already worked in ADT, so this changeset only fixes Ant. Change-Id: I95f0b734ba263051961268d960d59749f5b6e1a5
Diffstat (limited to 'files')
-rw-r--r--files/ant/build.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml
index acba923..e3ae78a 100644
--- a/files/ant/build.xml
+++ b/files/ant/build.xml
@@ -674,6 +674,7 @@
command="package"
verbose="${verbose}"
manifest="${out.manifest.abs.file}"
+ originalManifestPackage="${project.app.package}"
androidjar="${project.target.android.jar}"
rfolder="${gen.absolute.dir}"
nonConstantId="${android.library}"