]> git.saurik.com Git - android/aapt.git/commitdiff
merge from donut
authorJean-Baptiste Queru <jbq@google.com>
Thu, 3 Sep 2009 22:18:14 +0000 (15:18 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Thu, 3 Sep 2009 22:19:21 +0000 (15:19 -0700)
1  2 
Command.cpp

diff --combined Command.cpp
index 79e6641784a55a3521247aecad1fced40decc83d,5f80ade3a77e46cf5fced2ede01387993baf5b00..7e6a12cd76e62603de5844a316ff53aaa20c2ff0
@@@ -321,6 -321,7 +321,7 @@@ enum 
      LABEL_ATTR = 0x01010001,
      ICON_ATTR = 0x01010002,
      MIN_SDK_VERSION_ATTR = 0x0101020c,
+     MAX_SDK_VERSION_ATTR = 0x01010271,
      REQ_TOUCH_SCREEN_ATTR = 0x01010227,
      REQ_KEYBOARD_TYPE_ATTR = 0x01010228,
      REQ_HARD_KEYBOARD_ATTR = 0x01010229,
@@@ -396,7 -397,7 +397,7 @@@ int doDump(Bundle* bundle
              ResXMLTree tree;
              asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
              if (asset == NULL) {
 -                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
 +                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                  goto bail;
              }
  
              ResXMLTree tree;
              asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
              if (asset == NULL) {
 -                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
 +                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                  goto bail;
              }
  
                              targetSdk = code;
                              printf("sdkVersion:'%d'\n", code);
                          }
+                         code = getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR, NULL, -1);
+                         if (code != -1) {
+                             printf("maxSdkVersion:'%d'\n", code);
+                         }
                          code = getIntegerAttribute(tree, TARGET_SDK_VERSION_ATTR, &error);
                          if (error != "") {
                              error = "";