From 83016e747194343203ee1c4ca843102bf663d82b Mon Sep 17 00:00:00 2001 From: euforic Date: Fri, 24 May 2013 21:12:10 -0700 Subject: [PATCH 1/2] Release 0.1.23 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbdd258..73dfed6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "liveview", - "version": "0.1.22", + "version": "0.1.23", "description": "Titanium Live Realtime App Development", "main": "index.js", "private": true, From ac12cf0ae23a2b5dfeabe95a5d67909eda1bb088 Mon Sep 17 00:00:00 2001 From: euforic Date: Mon, 10 Jun 2013 15:34:55 -0700 Subject: [PATCH 2/2] fixed TIMOB-14101 app.js in Resources Dir overwritten on recompile --- hook/lvhook.js | 26 +------------------------- package.json | 2 +- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/hook/lvhook.js b/hook/lvhook.js index d4e5c7e..bab759a 100644 --- a/hook/lvhook.js +++ b/hook/lvhook.js @@ -106,10 +106,7 @@ exports.init = function(logger, config, cli) { destFile = data.args[1]; if (srcFile == join(this.projectDir, 'Resources', 'app.js')) { - data.args[1] = join(path.dirname(destFile), '_app.js'); - var lvSrc = join(tempdir(),'liveview.js'); - var lvDest = join(data.ctx.xcodeAppDir,'app.js'); - cat(lvSrc).to(lvDest); + data.args[0] = join(tempdir(),'liveview.js'); } } finished(data); @@ -126,27 +123,6 @@ exports.init = function(logger, config, cli) { } }); - /** - * Replace and rename original app.js file to execute liveview.js first - */ - - // cli.addHook('build.ios.compileJsFile', { - // pre: function(data, finished) { - // debug('Running pre:build.ios.compileJsFile hook'); - // if (cli.argv.liveview) { - // var target = data.args[0]; - // if (target.from == join(this.projectDir, 'Resources', 'app.js')) { - // target.path = '_app.js'; - // target.to = target.to.substring(0, target.to.length - 13) + 'liveview.js'; - // } else if (target.from == join(this.projectDir, 'Resources', 'liveview.js')) { - // target.path = 'app.js'; - // target.to = target.to.substring(0, target.to.length - 13) + 'app.js'; - // } - // } - // finished(data); - // } - // }); - /** * Set LiveView flag for legacy android builder.py */ diff --git a/package.json b/package.json index 73dfed6..2de3595 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "liveview", - "version": "0.1.23", + "version": "0.1.24", "description": "Titanium Live Realtime App Development", "main": "index.js", "private": true,