Does build.settings support dictionaries or just arrays?

I'm going through the Newsstand developer video and my question is can we build newsstand apps with Corona.

I know I'm not going to get the framework bits, but to get the app to show in the news stand is a matter of adding a few plist values but the use Dictionaries and not Arrays to organize the new icons and such.

Can this be done?

Could you give an example of what you're trying to accomplish, perhaps with the code for your intended build.settings?

I don't want to sit through the 48 minute video from WWDC again and hand write down the slides. I'm surprised Apple doesn't have all this online somewhere (at least Google isn't finding it.....)

Anyway, I found this screen shot from Xcode in a forum somewhere.

So in the new iOS 5 world, the CFBundleIconFiles array can move to a dictionary object called CFBundleIcons. That dictionary contains two entries, both dictionaries: CFBundlePrimaryIcons in which your existing CFBungleIconFiles array can be copied to directly. The 2nd one is UINewsstandIcon, another dictionary, which contains a CFBundleIcon array with your non-standard newsstand icons and the bindingType and bindingEdge values.

The XML they show in the video is wrapping these dictionary items in tags, as opposed to and tags for individual items, or tags for things that are in typical arrays.

The Coronoa build.settings might work now that I look at it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
iphone =
   {
      plist=
      {
         UIInterfaceOrientation = "UIInterfaceOrientationLandscapeRight",
         UISupportedInterfaceOrientations =
         {
             "UIInterfaceOrientationLandscapeLeft",
             "UIInterfaceOrientationLandscapeRight"
         },
         MinimumOSVersion="3.2.0",
         UIApplicationExitsOnSuspend = false,
         UIPrerenderedIcon="YES",
         UIStatusBarHidden=true,
         CFBundleIconFile = "Icon.png",
         CFBundleIconFiles = {
            "Icon.png" , 
            "Icon@2x.png" , 
            "Icon-72.png" , 
            "Icon-Small-50.png" , 
            "Icon-Small.png" , 
            "Icon-Small@2x.png"
         },
         CFBundleIcons = {
             CFBundlePrimaryIcons = {
                 CFBundleIconFiles = {
                     "Icon.png" , 
                     "Icon@2x.png" , 
                     "Icon-72.png" , 
                     "Icon-Small-50.png" , 
                     "Icon-Small.png" , 
                     "Icon-Small@2x.png"
                 },
             },
             UINewsstandPrimaryIcons = {
                 CFBundleIconFiles = {
                     "NewsIcon.png" , 
                     "NewsIcon@2x.png"
                 },
                 UINewsstandBindingType = "UINewsstandBindingTypeNewspaper",
                 UINewsstandBindingEdge = "UINewsstandBindingEdgeBottom"
             },
         },
         UIAppFonts =
         {
            "actionj.ttf",
            "oogieboogie.ttf",
            "SAF.otf",
            "curlycue.ttf"
         },
      },
views:2825 update:2011/10/22 9:46:13
corona forums © 2003-2011