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

Android: attributes put on "manifest" element in tiapp.xml are ignored unless child elements also included

    Details

      Description

      {html}<div><p>cf <a href=
      "http://developer.appcelerator.com/question/103121">http://developer.appcelerator.com/question/103121</a></p>
      <p>If you have an "android" section in tiapp.xml that looks like
      this:</p>
      <pre>
      <code>
      <android xmlns:android="http://schemas.android.com/apk/res/android">
      <manifest android:versionCode="2" android:versionName="2"/>
      </android></code>
      </pre>
      <p>... then those custom attributes that you put for
      <code>android:versionCode</code> and
      <code>android:versionName</code> will be ignored. If, however, you
      also put in a custom child element to for the "manifest" element,
      it will work. Such as this:</p>
      <pre>
      <code> <android xmlns:android="http://schemas.android.com/apk/res/android">
      <manifest android:versionCode="2" android:versionName="2">
      <uses-sdk android:minSdkVersion="4" />
      </manifest>
      </android></code>
      </pre>
      <p>So to test this failcase and its resolution, use the first
      example above – just create a manifest entry with those
      <code>android:versionCode</code> and
      <code>android:versionName</code> attributes, setting them both to
      "2". Then build your app. After it's done launching, open the
      build/android/AndroidManifest.xml file (which is generated during
      the build process), and if you look at the "manifest" element in
      there you'll see that the versionCode and versionName are still set
      to 1 in the failing version. In the fixed version, they should
      successfully get set to 2.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              billdawson Bill Dawson
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2579
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration