Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-7674] iOS: CFBundleShortVersionString now updated in Info.plist #1516

Merged
merged 2 commits into from Mar 6, 2012
Merged

[TIMOB-7674] iOS: CFBundleShortVersionString now updated in Info.plist #1516

merged 2 commits into from Mar 6, 2012

Conversation

stephenfeather
Copy link
Contributor

The Info.plist for ios builds was never being updated with CFBundleShortVersionString so in all build types (simulator, device, distribution) CFBundleShortVersionString = 1.0

Reference https://jira.appcelerator.org/browse/TIMOB-7674 for background.

The formatting of CFBundleShortVersionString reflects decisions made on Pull 889 (#889)

@sptramer
Copy link
Contributor

@sfeather We require that you sign the CLA before we can accept any contributions: http://appc.me/cla

@stephenfeather
Copy link
Contributor Author

I signed one a week ago. Well, on the 21st of February.

CFBundleShortVersionString = self.properties['version']
app_version_ = CFBundleShortVersionString.split('.')
if(len(app_version_) > 3):
CFBundleShortVersionString = app_version_[0]+app_version_[1]+app_version_[2]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ..
CFBundleShortVersionString = app_version_[0]+'.'+app_version_[1]+'.'+app_version_[2]

@srahim
Copy link
Contributor

srahim commented Mar 1, 2012

Please address the comment above, everything else seems fine.

@srahim
Copy link
Contributor

srahim commented Mar 6, 2012

code reviewed and APPROVED

@mpettiford
Copy link

Pull Accepted

Tested with the following scenarios

  • iOS simulator with version 1.2
  • iOS device with version 1.2.3
  • iOS ad hoc with version 1.2.3.4
  • iOS distribution with version 1.2.3.4.5
  • iOS ad hoc with version 2

@srahim
Copy link
Contributor

srahim commented Mar 6, 2012

@sfeather : Thank you for raising the ticket and working on the fix for it. We deeply appreciate the effort you have put forward to resolving this issue and hope to see more from you.

srahim added a commit that referenced this pull request Mar 6, 2012
[TIMOB-7674] iOS: CFBundleShortVersionString now updated in Info.plist
@srahim srahim merged commit f509801 into tidev:master Mar 6, 2012
@stephenfeather
Copy link
Contributor Author

srahim, I think I may need to add a change to make this complete based upon this (https://jira.appcelerator.org/browse/TIMOB-7931?focusedCommentId=185698#comment-185698) ticket

Need to make sure that the default template for the plist has a CFBundleShortVersionString entry to modify.

Will take a look at it in the morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants