Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20394] Android: Support liveview with hyperloop module

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2021-05-28T22:31:16.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid, Hyperloop, LiveView
Labelsandroid, build, hyperloop, liveview
ReporterChristopher Williams
AssigneeJoshua Quick
Created2016-02-12T17:09:35.000+0000
Updated2021-05-28T22:31:16.000+0000

Description

We currently haven't even tested whether live view works with hyperloop. My guess is that it does not (and from the looks of TIMOB-20210, it probably doesn't). We should investigate what needs to be done to support liveview on Android with hyperloop. It's entirely possible that hyperloop itself isn't the issue, but the run on main thread change required by hyperloop.

Comments

  1. Rodolfo Perottoni 2016-10-12

    As you've guessed, HyperLoop is not working when LiveView is on. Even though the JS wrapper files are correctly generated you simply cannot require them as of now. A simple example:
       [ERROR] Error: Requested module not found: com.github.mikephil.charting.charts.LineChart
       [ERROR] File: app.js
       [ERROR] Line: undefined
       [ERROR] SourceId: undefined
       [ERROR] Backtrace:
       [ERROR] undefined
       
    The file *com.github.mikephil.charting.charts.LineChart.js* is present in the *build/hyperloop* folder but the error above is what I get if i require it.
  2. Guillermo Figueras 2018-03-15

    Any news on this? It'd be great having Liveview support for Hyperloop. It's a bit annoying having to recompile the project everytime you make a change, as it slows down development.
  3. Christopher Williams 2018-03-16

    cc [~emerriman] [~eharris] [~hknoechel] [~jvennemann] I think this may be quite a bit complicated to tackle, if the user adds new native classes that we haven't generated wrappers for or had pruned out previously (or if we need to generate new metabase info for it first, etc). But this sounds like Liveview is simply not copying over files we already have properly generated.
  4. Joshua Quick 2021-05-28

    We "mostly" fixed this in Titanium 9.0.0 for Android. Please see... https://github.com/appcelerator/hyperloop.next/pull/329 The only you can't do is add an Android library while liveview is running. You'll have to do a rebuild in that case to get it integrated into the app, but I think this is a reasonable limitation.

JSON Source