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

iOS: Ti.UI.iPhone.StatusBar constants generate invalid warnings on Studio console.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Titanium SDK: 3.5.0.v20141201155733
      Appc-Studio: 3.4.1 GA
      Titanium CLI: 3.4.1 GA
      Alloy : 1.5.1 GA
      Xcode : 6.1
      OS: OSX 10.10.1
      Device : iPhone 6plus (iOS 8.1)

    • Sprint:
      2014 Sprint 24 SDK

      Description

      Ti.UI.iPhone.StatusBar constants are generating following warning message.

       [WARN] :   Titanium.UI.iPhone.StatusBar.OPAQUE_BLACK DEPRECATED in 3.4.2, in favor of UI.iPhone.StatusBar.LIGHT_CONTENT: REMOVED in 3.5.0 

      This message is invalid since there is no release version called 3.4.2.

      Steps to reproduce

      1. Create a classic app using following code

      var isDayMode = true,
          ios = Ti.Platform.name === 'iPhone OS',
          iosFlat = ios && +Ti.Platform.version >= 7,
          win = Ti.UI.createWindow({
              backgroundColor: '#fff'
          }),
          label = Ti.UI.createLabel({
              text: 'Day Mode', textAlign: 'center',
              color: '#000', font: { fontSize: 30 },
              top: iosFlat ? 60 : 30, bottom: 0
          }),
          button = Ti.UI.createButton({
              title: 'Switch',
              color: '#000',
              top: iosFlat ? 30 : 0, height: 30
          });
      button.addEventListener('click', function() {
          isDayMode = !isDayMode;
          if (isDayMode) {
              ios && (win.statusBarStyle = Ti.UI.iPhone.StatusBar.DEFAULT);
              win.backgroundColor = '#ccc';
              label.color = button.color = '#000';
              label.text = 'Day Mode';
          }
          else {
              ios && (win.statusBarStyle = Ti.UI.iPhone.StatusBar.TRANSLUCENT_BLACK);
              win.backgroundColor = '#444';
              label.color = button.color = '#fff';
              label.text = 'Night Mode';
          }
      });
      win.add(label);
      win.add(button);
      win.open();
      

      2. Run on iPhone device

      Actual Result

      Invalid warning message is thrown in studio console.

      Expected Result

      Warning message should be valid. It should use valid release versions and constant names.
      For Eg: OPAQUE_BLACK and LIGHT_CONTENT are not used in code.

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              kvelummaylum Kajenthiran Velummaylum
              Reviewer:
              Jon Alter
              Tester:
              Kajenthiran Velummaylum
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration