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?
[import]uid: 19626 topic_id: 16572 reply_id: 316572[/import]

Could you give an example of what you’re trying to accomplish, perhaps with the code for your intended build.settings? [import]uid: 52430 topic_id: 16572 reply_id: 61977[/import]

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.

<br>iphone =<br> {<br> plist=<br> {<br> UIInterfaceOrientation = "UIInterfaceOrientationLandscapeRight",<br> UISupportedInterfaceOrientations =<br> {<br> "UIInterfaceOrientationLandscapeLeft",<br> "UIInterfaceOrientationLandscapeRight"<br> },<br> MinimumOSVersion="3.2.0",<br> UIApplicationExitsOnSuspend = false,<br> UIPrerenderedIcon="YES",<br> UIStatusBarHidden=true,<br> CFBundleIconFile = "Icon.png",<br> CFBundleIconFiles = {<br> "Icon.png" , <br> "Icon@2x.png" , <br> "Icon-72.png" , <br> "Icon-Small-50.png" , <br> "Icon-Small.png" , <br> "Icon-Small@2x.png"<br> },<br> CFBundleIcons = {<br> CFBundlePrimaryIcons = {<br> CFBundleIconFiles = {<br> "Icon.png" , <br> "Icon@2x.png" , <br> "Icon-72.png" , <br> "Icon-Small-50.png" , <br> "Icon-Small.png" , <br> "Icon-Small@2x.png"<br> },<br> },<br> UINewsstandPrimaryIcons = {<br> CFBundleIconFiles = {<br> "NewsIcon.png" , <br> "NewsIcon@2x.png"<br> },<br> UINewsstandBindingType = "UINewsstandBindingTypeNewspaper",<br> UINewsstandBindingEdge = "UINewsstandBindingEdgeBottom"<br> },<br> },<br> UIAppFonts =<br> {<br> "actionj.ttf",<br> "oogieboogie.ttf",<br> "SAF.otf",<br> "curlycue.ttf"<br> },<br> },<br>

I’m now thinking this might just work… [import]uid: 19626 topic_id: 16572 reply_id: 62084[/import]

…And? [import]uid: 75647 topic_id: 16572 reply_id: 65140[/import]

I don’t know if it matters but you specified MinimumOSVersion=“3.2.0” and then add params for NewsStand further down, just wondering did that cause an error? NewsStand is only from 5.0 and up. [import]uid: 13560 topic_id: 16572 reply_id: 65156[/import]

I copied my build.settings from another project and just added the stuff. I’ve not submitted it, just being hypothetical, but yea, that minimumOS will have to be 5.0

But then… it may not need to be. Your app might still work on older OS’s, it just won’t have newstand features.

I mean National Geographic or the Time-Pycune won’t want to limit their apps to iOS5 and have them be regular apps on older OS’s. [import]uid: 19626 topic_id: 16572 reply_id: 65167[/import]