Git Product home page Git Product logo

appc-liveviewer-app's People

Contributors

fokkezb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appc-liveviewer-app's Issues

Fix error with movies app

[ERROR] Application raised an exception: TypeError: undefined is not a function (evaluating 't.match(/^http(s)?:\/\//)')
[ERROR]
[ERROR] file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1
[ERROR]     t@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:268 (generated)
[ERROR]     resource@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:952 (generated)
[ERROR]      (generated)
[ERROR]     completionHandler@./app.js:203:58 (generated)
[ERROR]
[ERROR] RAW EXCEPTION: {"message":"undefined is not a function (evaluating 't.match(/^http(s)?:\\/\\//)')","line":1,"column":268,"sourceURL":"file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js","stack":"t@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:268\nresource@file:///private/var/mobile/Containers/Bundle/Application/92C176CF-0555-405F-9E60-CEB877D15642/LiveViewer.app/proxy.js:1:952\n\ncompletionHandler@./app.js:203:58"}
[ERROR] SOURCEMAP RESULT: <no source map data>

Support URL scheme to start app with source URL

It would need to support:

  • liveviewer://load?url=https://gist.github.com/FokkeZB/3dd91b8eb07828b771c0
  • liveviewer://load?alloy=1&url=https://gist.github.com/FokkeZB/3dd91b8eb07828b771c0
  • liveviewer://load?code=Ti.UI.createWindow().open()

Add better gesture/action to reset

Only other option I can think of is volume control, but then the app wouldn't be able to use that anymore, unless I can pass it on programmatically.

Better loading screen

Text showing "Downloading.." and if Alloy checked "Compiling..."

Make background black and fade out hide indicator when done so flow to starting app is better.

Bug: Moment.js locale not found

This happens because the server compiled the Alloy app with no i18n folders, but the LiveViewer app might run in a different locale.

Fix endless unresolved resources in Movies app

[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[WARN]  New layout set while view [object imageview1] animating: Will relayout after animation.
[WARN]  New layout set while view [object imageview1] animating: Will relayout after animation.
[DEBUG] resource unresolved: [object Object]
[WARN]  New layout set while view [object imageview1] animating: Will relayout after animation.
[WARN]  New layout set while view [object imageview1] animating: Will relayout after animation.
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]
[DEBUG] resource unresolved: [object Object]

Modularize codebase.js for re-use in LiveView

Ideally even a native module, handling dynamic font loading and possible other stuff to be more stable and also hide the implementation from users. Maybe we can also handle require() more efficient.

var VM = require('ti.vm`);

var vm = new VM({
  codebase: Ti.Filesystem.applicationDataDirectory + 'some/path'
});

vm.require('app');

For LiveView:

vm.setResourceHandler(function(id, callback) {

  // fetch from fileserver
  callback(null, codeOrPath);

});

Should catch syntax errors

Jul  2 11:05:33 iPhone-Fokke LiveViewer[1282] <Warning>: [ERROR] Application received error: Unexpected token name «color», expected punc «,»

Now causes loading screen to stay up.

Exception source are not correct

This error originated here:
https://github.com/appcelerator/movies/blob/720cf055d1a3b5d7ff7e5c94ec8f9e689c65a03e/app/lib/data.js#L22

But instead it says app.js

[ERROR] {
[ERROR]  "message": "JSON Parse error: Unexpected EOF",
[ERROR]  "line": 5,
[ERROR]  "column": 26,
[ERROR]  "stack": "parse@[native code]\nloadJsonFile\nget_config\ngetConfig\ninit\nController\ncreateController\ninit\nController\ncreateController\nanonymous\nrequire@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/proxy.js:85:7\nstart@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/codebase.js:66:16\nonXhr@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/codebase.js:89:19\nonLoad@file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Bundle/Application/656CDEE4-F05A-4DF7-BCE6-A1522DFE9D83/LiveViewer.app/xhr.js:37:21",
[ERROR]  "filename": "/Users/fokkezb/Library/Developer/CoreSimulator/Devices/C8B45892-5846-4350-BB4E-630AB69D4F09/data/Containers/Data/Application/2FE3BF63-FD83-44A6-AF11-4B43FFC0B2F3/Documents/code/F8F58714-AB5E-4523-BDB7-F6C06C69E78E/Resources/iphone/app.js"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.