Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19173

Tiapp: Add <build> element to set CFBundleVersion and android:versionCode

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: None
    • Component/s: Android, iOS

      Description

      I'm preparing a blog post about versioning your apps now TIMOB-17993 has been resolved in 4.1.0: https://gist.github.com/FokkeZB/f7ae3ab57eb8185a338d. Read the draft as context for this ticket.

      It's great that developers can now manually set the CFBundleVersion as they could android:versionCode.

      However, I think we can improve the workflow by introducing a <build> element that wants an integer value that will be used for both CFBundleVersion and android:versionCode (and other - Windows - platform's build versions) unless the developer has set these manually of course.

      <?xml version="1.0" encoding="UTF-8"?>
      <ti:app xmlns:ti="http://ti.appcelerator.org">
          <id>com.appcelerator.myapp</id>
          <name>MyApp</name>
          <version>1.1.0</version>
          <build>123</build>
      

      Some other subtasks would follow out this as well if we decide to do this:

      • Expose the new element in the TiApp Editor in Studio.
      • Expose the value via Ti.App.build in the SDK (TIMOB-18909).
      • <version> should be used for the release version as-is and not truncated, leaving it up to the developer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration