<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,6 +15,12 @@ unless $app_config[&quot;env&quot;].nil? #if env is here then it is an old app
   new_config[&quot;vendor&quot;] = $app_config[&quot;env&quot;][&quot;vendor&quot;]
   new_config[&quot;bbver&quot;] = $app_config[&quot;env&quot;][&quot;bbver&quot;]
   new_config[&quot;applog&quot;] = $app_config[&quot;env&quot;][&quot;applog&quot;]
+  new_config[&quot;iphone&quot;] = Hash.new
+  new_config[&quot;iphone&quot;][&quot;configuration&quot;] = &quot;Debug&quot;
+  new_config[&quot;iphone&quot;][&quot;sdk&quot;] = &quot;iphonesimulator3.0&quot;
+  new_config[&quot;iphone&quot;][&quot;codesignidentity&quot;] = &quot;&quot;
+  new_config[&quot;iphone&quot;][&quot;entitlements&quot;] = &quot;&quot;
+
 
   $app_config = new_config
   File.open(  'build.yml', 'w' ) do |out|</diff>
      <filename>bin/upgrade-rhodes-app</filename>
    </modified>
    <modified>
      <diff>@@ -57,6 +57,18 @@ namespace &quot;config&quot; do
     $guid=&quot;364FFCAF-C71D-4543-B293-9058E31CFFEE&quot;
     $applog = File.join($homedir,$app_config[&quot;applog&quot;]) if $app_config[&quot;applog&quot;] 
 
+    if $app_config[&quot;iphone&quot;].nil?
+      $signidentity = $config[&quot;env&quot;][&quot;iphone&quot;][&quot;codesignidentity&quot;]
+      $entitlements = $config[&quot;env&quot;][&quot;iphone&quot;][&quot;entitlements&quot;]
+      $configuration = $config[&quot;env&quot;][&quot;iphone&quot;][&quot;configuration&quot;]
+      $sdk = $config[&quot;env&quot;][&quot;iphone&quot;][&quot;sdk&quot;]
+    else
+      $signidentity = $app_config[&quot;iphone&quot;][&quot;codesignidentity&quot;]
+      $entitlements = $app_config[&quot;iphone&quot;][&quot;entitlements&quot;]
+      $configuration = $app_config[&quot;iphone&quot;][&quot;configuration&quot;]
+      $sdk = $app_config[&quot;iphone&quot;][&quot;sdk&quot;]
+    end
+
     unless File.exists? $homedir + &quot;/.profile&quot;
       File.open($homedir + &quot;/.profile&quot;) {|f| f &lt;&lt; &quot;#&quot; }
     end
@@ -84,10 +96,10 @@ namespace &quot;build&quot; do
       set_app_name($app_config[&quot;name&quot;]) unless $app_config[&quot;name&quot;].nil?
       cp $app_path + &quot;/icon/icon.png&quot;, $config[&quot;build&quot;][&quot;iphonepath&quot;]
 
-      set_signing_identity($config[&quot;env&quot;][&quot;iphone&quot;][&quot;codesignidentity&quot;],$config[&quot;env&quot;][&quot;iphone&quot;][&quot;entitlements&quot;].to_s) if $config[&quot;env&quot;][&quot;iphone&quot;][&quot;codesignidentity&quot;].to_s != &quot;&quot;
+      set_signing_identity($signidentity,$entitlements.to_s) if $signidentity.to_s != &quot;&quot;
 
       chdir $config[&quot;build&quot;][&quot;iphonepath&quot;]
-      args = ['build', '-target', 'rhorunner', '-configuration', $config[&quot;env&quot;][&quot;iphone&quot;][&quot;configuration&quot;], '-sdk', $config[&quot;env&quot;][&quot;iphone&quot;][&quot;sdk&quot;]]
+      args = ['build', '-target', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk]
 
       puts Jake.run(&quot;xcodebuild&quot;,args)
       unless $? == 0
@@ -105,13 +117,13 @@ namespace &quot;run&quot; do
   desc &quot;Builds everything, launches iphone simulator&quot;
   task :iphone =&gt; [&quot;config:iphone&quot;, &quot;build:iphone:rhodes&quot;] do
     
-     unless $config[&quot;env&quot;][&quot;iphone&quot;][&quot;sdk&quot;] =~ /^iphonesimulator/
-       puts &quot;SDK must be one of the iphonesimulator sdks&quot;
+     unless $sdk =~ /^iphonesimulator/
+       puts &quot;SDK must be one of the iphonesimulator sdks to run in the iphone simulator&quot;
        exit 1       
      end
      `killall &quot;iPhone Simulator&quot;`
      
-     rhorunner = $config[&quot;build&quot;][&quot;iphonepath&quot;] + &quot;/build/#{$config[&quot;env&quot;][&quot;iphone&quot;][&quot;configuration&quot;]}-iphonesimulator/rhorunner.app&quot;
+     rhorunner = $config[&quot;build&quot;][&quot;iphonepath&quot;] + &quot;/build/#{$configuration}-iphonesimulator/rhorunner.app&quot;
 
      Find.find($simapp) do |path| 
        if File.basename(path) == &quot;rhorunner.app&quot;
@@ -148,7 +160,7 @@ namespace &quot;clean&quot; do
     task :rhodes =&gt; [&quot;config:iphone&quot;] do 
       chdir $config[&quot;build&quot;][&quot;iphonepath&quot;]
     
-      args = ['clean', '-target', 'rhorunner', '-configuration', $config[&quot;env&quot;][&quot;iphone&quot;][&quot;configuration&quot;], '-sdk', $config[&quot;env&quot;][&quot;iphone&quot;][&quot;sdk&quot;]]
+      args = ['clean', '-target', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk]
       puts Jake.run(&quot;xcodebuild&quot;,args)
       unless $? == 0
         puts &quot;Error cleaning&quot;</diff>
      <filename>platform/iphone/rbuild/iphone.rake</filename>
    </modified>
    <modified>
      <diff>@@ -4,3 +4,8 @@ version: 1.2.2
 vendor: rhomobile
 bbver: 4.6
 applog: rholog.txt
+iphone:
+  configuration: Debug
+  sdk: iphonesimulator3.0
+  codesignidentity:
+  entitlements: 
\ No newline at end of file</diff>
      <filename>res/generators/templates/application/build.yml</filename>
    </modified>
    <modified>
      <diff>@@ -12,12 +12,6 @@ env:
       jde: C:/Program Files/Research In Motion/BlackBerry JDE 4.2.0 
       mds: C:/Program Files/Research In Motion/BlackBerry Email and MDS Services Simulators 4.1.2/MDS
       sim: 8100
-  iphone:
-    configuration: Debug
-    sdk: iphonesimulator3.0
-    codesignidentity: 
-    entitlements:
-
 build:
   bbpath: platform/bb
   wmpath: platform/wm
@@ -26,7 +20,6 @@ build:
   symbianpath: platform/symbian
   bb:
   bbsignpwd: &quot;somepasswordhere&quot;
-
 excludedirs:
   bb:
     - public/js/iui</diff>
      <filename>rhobuild.yml.example</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6dc192af12c5aef7f8c8c20852c70e99c9ccb652</id>
    </parent>
  </parents>
  <author>
    <name>ldm314</name>
    <email>Brian@.(none)</email>
  </author>
  <url>http://github.com/rhomobile/rhodes/commit/566ffd29b49a1c0da75ecd02215446c784e1dcfd</url>
  <id>566ffd29b49a1c0da75ecd02215446c784e1dcfd</id>
  <committed-date>2009-10-26T14:19:40-07:00</committed-date>
  <authored-date>2009-10-26T14:19:40-07:00</authored-date>
  <message>move iphone build properties to applications config. backwards compatible with older apps</message>
  <tree>360dcf3eda31dfb6f909356d159f3f480ca6961f</tree>
  <committer>
    <name>ldm314</name>
    <email>Brian@.(none)</email>
  </committer>
</commit>
