Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14807] LiveView: Alloy: changes are applied to all running devices/platforms, applying the latest compiled code

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-07-01T23:28:11.000+0000
Affected Version/sRelease 3.1.2
Fix Version/sRelease 3.2.1, Release 3.3.0
ComponentsLiveView
Labelsplanning-3.2.0, qe-3.1.2
ReporterFederico Casali
AssigneePraveen Innamuri
Created2013-08-12T18:30:46.000+0000
Updated2014-07-01T23:28:11.000+0000

Description

Problem description

LiveView changes are applied to all running devices/platforms. However the latest compiled code is applied, potentially generating wrong and unexpected behaviors. When building an Alloy project on iOS simulator, for example, also the Android emulator is being updated by LiveView (and vice versa). In this case, the compiled code being used is the one optimized for iOS, so likely generating unexpected behaviors on the Android emulator (for example, platform conditionals being applied are the one relative to the iOS platform, not Android).

Steps to reproduce

1. Grab the sample project code attached 2. Build for Android emulator Result: App runs, Windows has 'blue' backgroundColor 3. Build for iOS simulator Result: iOS app runs and has 'gray' backgroundColor. However also the Android app on the emulator is being modified, now displaying the 'gray' backgroundColor too. This is not expected as the backgroundColor is defined into platform specific folders.

Attachments

FileDateSize
app.zip2013-08-12T18:44:01.000+00003823536

Comments

  1. Michael Xia 2013-08-13

    Given ALOY-760 is resolved for Alloy 1.2.1 (Release 3.1.3), we should try to go ahead and address the issue of updating simulators/devices from multiple platforms together for LiveView in 3.1.3.
  2. Christian Sullivan 2013-11-01

    [~ingo] and [~mxia] Currently blocked by TIMOB-15630 Pending PR when it is resolved https://github.com/appcelerator/liveview/pull/62
  3. Michael Xia 2013-12-13

    [~csullivan] Look like the PR got closed but not merged. Should we have another PR to get it merged into 3.2.1?
  4. Michael Xia 2014-02-04

    Re-opening since the PR was not merged.
  5. Michael Xia 2014-02-20

    This in fact works as desired in 3.2.1 release.
  6. Ingo Muschenetz 2014-06-13

    The current (fixed) behavior should be that it rebuilds an iOS version for iOS, and an Android version for Android, and properly displays the right version on the right device.
  7. Federico Casali 2014-07-01

JSON Source