cordova-app-harness.git
7 years agoDelete .reviewboardrc
Andrew Grieve [Fri, 9 Jan 2015 02:33:45 +0000 (21:33 -0500)] 
Delete .reviewboardrc

7 years agoAdd /node_modules to .gitignore
Andrew Grieve [Thu, 8 Jan 2015 19:49:22 +0000 (14:49 -0500)] 
Add /node_modules to .gitignore

7 years agoFix typo in error message (chrome-app-developer-tool-client -> harness-client)
Andrew Grieve [Wed, 31 Dec 2014 05:54:55 +0000 (00:54 -0500)] 
Fix typo in error message (chrome-app-developer-tool-client -> harness-client)

7 years agoUpdate HttpServer to use chrome.sockets.tcp.pipeToFile.
Andrew Grieve [Tue, 25 Nov 2014 20:59:01 +0000 (15:59 -0500)] 
Update HttpServer to use chrome.sockets.tcp.pipeToFile.

7 years agoAdd debug logging to HttpServer.js (disabled by default)
Andrew Grieve [Tue, 18 Nov 2014 23:05:10 +0000 (15:05 -0800)] 
Add debug logging to HttpServer.js (disabled by default)

7 years agoFix "Unable to bind to port" message when wifi is disabled.
Andrew Grieve [Fri, 14 Nov 2014 20:50:41 +0000 (21:50 +0100)] 
Fix "Unable to bind to port" message when wifi is disabled.

Instead, display that you are bound to localhost, which is perfectly
fine for deploying via USB.

7 years agoUse chrome.sockets.tcp.update({uri:}) to more efficiently pipe request payloads to...
Andrew Grieve [Fri, 14 Nov 2014 20:33:23 +0000 (21:33 +0100)] 
Use chrome.sockets.tcp.update({uri:}) to more efficiently pipe request payloads to files

20 megs new takes just a few seconds!
Added in some TODOs to tweak the code once the API can take in the
number of bytes to pipe.

7 years agoFix appharness.reload() not calling success callback on iOS
Andrew Grieve [Thu, 13 Nov 2014 12:19:46 +0000 (13:19 +0100)] 
Fix appharness.reload() not calling success callback on iOS

Was causing /launch to never send a response.

7 years agoMake gulpfile use windows-compatible paths
Andrew Grieve [Sat, 8 Nov 2014 20:07:20 +0000 (21:07 +0100)] 
Make gulpfile use windows-compatible paths

7 years agoFix jslint error in harnessclient
Andrew Grieve [Thu, 6 Nov 2014 20:44:50 +0000 (15:44 -0500)] 
Fix jslint error in harnessclient

7 years agoFix typo from prev adbkit commit (delete createSocket vs delete createConnection)
Andrew Grieve [Thu, 6 Nov 2014 17:09:42 +0000 (12:09 -0500)] 
Fix typo from prev adbkit commit (delete createSocket vs delete createConnection)

7 years agoEnhancements to new adbkit integration.
Andrew Grieve [Wed, 5 Nov 2014 19:54:08 +0000 (14:54 -0500)] 
Enhancements to new adbkit integration.

- Fix jshint errors
- Fix process never exiting after pushing
- Expose a symbol for detecting connected devices
- Destroy socket if it's not picked up by the connection
- Disable multiple connections per-host since we were just returning the same socket for each call to createSocket

7 years agoImproved error handling.
Max Woghiren [Tue, 4 Nov 2014 20:09:51 +0000 (15:09 -0500)] 
Improved error handling.

7 years agoAllow installer.getPluginMetadata() to return a value instead of a promise
Andrew Grieve [Wed, 31 Dec 2014 05:34:46 +0000 (00:34 -0500)] 
Allow installer.getPluginMetadata() to return a value instead of a promise

7 years agoProvided a connection to the appropriate port.
Max Woghiren [Fri, 31 Oct 2014 17:32:09 +0000 (13:32 -0400)] 
Provided a connection to the appropriate port.

This removes the necessity of running `dab forward` to get USB connections to work.
This adds a dependency on adbkit.

7 years agoIncrease harness-push timeout from 30 seconds -> 3000 seconds
Andrew Grieve [Wed, 5 Nov 2014 16:40:27 +0000 (11:40 -0500)] 
Increase harness-push timeout from 30 seconds -> 3000 seconds

7 years agoConvert from chrome.socket -> chrome.sockets.tcp
Andrew Grieve [Mon, 27 Oct 2014 19:12:14 +0000 (15:12 -0400)] 
Convert from chrome.socket -> chrome.sockets.tcp

7 years agoAdd gulpfile to run jshint
Andrew Grieve [Mon, 27 Oct 2014 19:10:36 +0000 (15:10 -0400)] 
Add gulpfile to run jshint

7 years agoFix android launch now that UrlRemapper doesn't apply to main webview
Andrew Grieve [Sat, 25 Oct 2014 01:24:02 +0000 (21:24 -0400)] 
Fix android launch now that UrlRemapper doesn't apply to main webview

7 years agoEnable cordova-android's App plugin (e.g. navigator.app.exitApp())
Andrew Grieve [Fri, 24 Oct 2014 13:25:11 +0000 (09:25 -0400)] 
Enable cordova-android's App plugin (e.g. navigator.app.exitApp())

fixes MobileChromeApps/mobile-chrome-apps#383

7 years agoFix /deletefiles not working when deleting more than ~10 files.
Andrew Grieve [Tue, 21 Oct 2014 19:47:30 +0000 (15:47 -0400)] 
Fix /deletefiles not working when deleting more than ~10 files.

HttpRequest.readEntireBody() was completely broken :(

7 years agoFix createproject.sh to work with hard-coded activity.java filename
Andrew Grieve [Tue, 21 Oct 2014 19:47:03 +0000 (15:47 -0400)] 
Fix createproject.sh to work with hard-coded activity.java filename

7 years agoRemoved unnecessary checks.
Max Woghiren [Thu, 9 Oct 2014 15:39:30 +0000 (11:39 -0400)] 
Removed unnecessary checks.

By default, on Android, if a "system" webview type is specified, then we use the system webview; anything else and we use Crosswalk.

7 years agoUpdated webview reload to take arguments.
Max Woghiren [Mon, 6 Oct 2014 20:50:32 +0000 (16:50 -0400)] 
Updated webview reload to take arguments.

It now takes and obeys the same arguments as `create` does...
...except Android doesn't switch webview types yet.

7 years agoStopped destroying the webview on every launch.
Max Woghiren [Mon, 6 Oct 2014 19:34:11 +0000 (15:34 -0400)] 
Stopped destroying the webview on every launch.

If we're relaunching the same app, we reload the webview.  This handles the most annoying `cca push --watch` case.
If a new app is being launched, though, the webview is still destroyed and recreated (for now).

7 years agoAdded a reload function.
Max Woghiren [Mon, 6 Oct 2014 19:26:33 +0000 (15:26 -0400)] 
Added a reload function.

7 years agoAdd a /getfile endpoing to HarnessServer + Fixes for pipeFileToResponse.
Andrew Grieve [Fri, 3 Oct 2014 17:00:17 +0000 (13:00 -0400)] 
Add a /getfile endpoing to HarnessServer + Fixes for pipeFileToResponse.

7 years agoChange config.xml-derived properties in installer into getters
Andrew Grieve [Fri, 3 Oct 2014 16:56:08 +0000 (12:56 -0400)] 
Change config.xml-derived properties in installer into getters

7 years agoFixed missing declaration.
Max Woghiren [Thu, 2 Oct 2014 19:04:14 +0000 (15:04 -0400)] 
Fixed missing declaration.

7 years agoAdded comments explaining launch handling.
Max Woghiren [Tue, 30 Sep 2014 19:50:25 +0000 (15:50 -0400)] 
Added comments explaining launch handling.

7 years agoPrevented launching an app that hasn't changed.
Max Woghiren [Tue, 30 Sep 2014 19:01:06 +0000 (15:01 -0400)] 
Prevented launching an app that hasn't changed.

Also added an option to force a launch.  Sometimes, such as when an app is pushed for the first time, we want to launch the app even if it hasn't changed since the last time it was launched (in a previous session).

7 years agoDelete manifest.json if it causes an exception
Andrew Grieve [Fri, 26 Sep 2014 20:19:12 +0000 (16:19 -0400)] 
Delete manifest.json if it causes an exception

7 years agoMake UrlRemap not apply to the main webview
Andrew Grieve [Fri, 26 Sep 2014 19:52:30 +0000 (15:52 -0400)] 
Make UrlRemap not apply to the main webview

7 years agoMake ResourcesLoader functions not depend on "this"
Andrew Grieve [Fri, 26 Sep 2014 20:03:27 +0000 (16:03 -0400)] 
Make ResourcesLoader functions not depend on "this"

7 years agoAdd filesystem location <preferences> to config.xml
Andrew Grieve [Thu, 25 Sep 2014 20:02:31 +0000 (16:02 -0400)] 
Add filesystem location <preferences> to config.xml

7 years agoUpdate AppHarnessUI.java to include getExternalWhitelist()
Andrew Grieve [Tue, 23 Sep 2014 14:45:26 +0000 (10:45 -0400)] 
Update AppHarnessUI.java to include getExternalWhitelist()

8 years agocreateproject.sh: include ios by default when host=Darwin
Andrew Grieve [Sat, 26 Jul 2014 02:02:46 +0000 (22:02 -0400)] 
createproject.sh: include ios by default when host=Darwin

8 years agoMake createproject.sh work even when no dependencies are set up ahead of time
Andrew Grieve [Sat, 26 Jul 2014 01:51:36 +0000 (21:51 -0400)] 
Make createproject.sh work even when no dependencies are set up ahead of time

Adds a package.json to get non-plugin dependencies.

8 years agoAdd ArrayBuffer.slice polyfill to unbreak Android pre-KK
Andrew Grieve [Fri, 11 Jul 2014 16:27:00 +0000 (12:27 -0400)] 
Add ArrayBuffer.slice polyfill to unbreak Android pre-KK

8 years agoFix exception on second launch and stop using plugin whitelist
Andrew Grieve [Thu, 10 Jul 2014 20:36:42 +0000 (16:36 -0400)] 
Fix exception on second launch and stop using plugin whitelist

8 years agoFix wrong path in createproject.sh (failed every time)
Andrew Grieve [Wed, 9 Jul 2014 02:28:48 +0000 (22:28 -0400)] 
Fix wrong path in createproject.sh (failed every time)

8 years agoMake work with the latest changes to android-4.0.x
Andrew Grieve [Wed, 9 Jul 2014 02:27:57 +0000 (22:27 -0400)] 
Make work with the latest changes to android-4.0.x

8 years agoFix up promise chaining for harness-push quit command
Andrew Grieve [Wed, 25 Jun 2014 13:51:01 +0000 (09:51 -0400)] 
Fix up promise chaining for harness-push quit command

8 years agoForce app quit before push
David Kemp [Tue, 24 Jun 2014 12:40:13 +0000 (08:40 -0400)] 
Force app quit before push

8 years agoAdding support for app quit in harness-push
David Kemp [Mon, 23 Jun 2014 23:00:20 +0000 (19:00 -0400)] 
Adding support for app quit in harness-push

8 years agoDelete accidentally added CrxInstaller.js
Andrew Grieve [Tue, 24 Jun 2014 18:38:19 +0000 (14:38 -0400)] 
Delete accidentally added CrxInstaller.js

8 years agoFirst attempt at hooking back button up to exit app.
Andrew Grieve [Tue, 24 Jun 2014 18:16:28 +0000 (14:16 -0400)] 
First attempt at hooking back button up to exit app.

Requires changes to cordova-android and x-walk plugin (so use master).
Currently has a bug where hitting back navigates to about:blank before
minimizing.

8 years agoAdd plugin dependency info to prepare hook
Andrew Grieve [Tue, 24 Jun 2014 16:45:16 +0000 (12:45 -0400)] 
Add plugin dependency info to prepare hook

This can be used to run apps without the need for platforms/ directory.

8 years agoFix launched apps using renamed cordova_plugins.js file (ugh)
Andrew Grieve [Fri, 20 Jun 2014 18:06:23 +0000 (14:06 -0400)] 
Fix launched apps using renamed cordova_plugins.js file (ugh)

8 years agoExplicitly do a prepare at the end of createproject.sh to make launching in IDE easier
Andrew Grieve [Fri, 20 Jun 2014 17:47:40 +0000 (13:47 -0400)] 
Explicitly do a prepare at the end of createproject.sh to make launching in IDE easier

8 years agoRenaming cordova_plugins.js caused a race condition. Fix it by editing cordova.js
Andrew Grieve [Fri, 20 Jun 2014 17:37:48 +0000 (13:37 -0400)] 
Renaming cordova_plugins.js caused a race condition. Fix it by editing cordova.js

8 years agoFix cordova_plugins.js not being used on Android & restrict plugins on native side...
Andrew Grieve [Fri, 20 Jun 2014 16:37:48 +0000 (12:37 -0400)] 
Fix cordova_plugins.js not being used on Android & restrict plugins on native side to only those that should be loaded.

8 years agoSwitch to using cordova-android 4.0.x branch
Andrew Grieve [Fri, 20 Jun 2014 17:18:15 +0000 (13:18 -0400)] 
Switch to using cordova-android 4.0.x branch

8 years agoDelete notification bubble
Andrew Grieve [Thu, 19 Jun 2014 01:40:22 +0000 (21:40 -0400)] 
Delete notification bubble

8 years agoMake .gitignore use root-relative paths
Andrew Grieve [Thu, 19 Jun 2014 01:43:34 +0000 (21:43 -0400)] 
Make .gitignore use root-relative paths

8 years agoFix error on start-up from missing network-information plugin
Andrew Grieve [Thu, 19 Jun 2014 01:41:55 +0000 (21:41 -0400)] 
Fix error on start-up from missing network-information plugin

8 years agoFix zippush causing files to be base64 encoded (typo in prev commit)
Andrew Grieve [Thu, 19 Jun 2014 01:44:36 +0000 (21:44 -0400)] 
Fix zippush causing files to be base64 encoded (typo in prev commit)

8 years agoCB-6975 Improve the speed of the zip function
David Kemp [Wed, 18 Jun 2014 20:33:46 +0000 (16:33 -0400)] 
CB-6975 Improve the speed of the zip function

8 years agoAdd org.apache.cordova.media to --allplugins (mistakenly omitted)
Andrew Grieve [Tue, 17 Jun 2014 20:47:29 +0000 (16:47 -0400)] 
Add org.apache.cordova.media to --allplugins (mistakenly omitted)

8 years agoFix NPE in AppHarnessUI when events are sent and no one is listening
Andrew Grieve [Tue, 17 Jun 2014 20:22:29 +0000 (16:22 -0400)] 
Fix NPE in AppHarnessUI when events are sent and no one is listening

8 years agoFix ConcurrentModificationException in UrlRemap
Andrew Grieve [Tue, 17 Jun 2014 20:03:40 +0000 (16:03 -0400)] 
Fix ConcurrentModificationException in UrlRemap

8 years agoMake pushsession.js properly update its cached assetManifest
Andrew Grieve [Tue, 17 Jun 2014 19:30:41 +0000 (15:30 -0400)] 
Make pushsession.js properly update its cached assetManifest

8 years agoBump HarnessServer protocol version, update comments, make bulkMove a bit safer
Andrew Grieve [Tue, 17 Jun 2014 19:29:53 +0000 (15:29 -0400)] 
Bump HarnessServer protocol version, update comments, make bulkMove a bit safer

8 years ago[CB6947] move app directory by default. 1/head
David Kemp [Tue, 17 Jun 2014 12:08:55 +0000 (08:08 -0400)] 
[CB6947] move app directory by default.
use parameter movetype='file' to do merge

8 years agoReplacing CacheClear with inline cache clear (simpler called on slave webview)
Michal Mocny [Mon, 16 Jun 2014 18:24:26 +0000 (14:24 -0400)] 
Replacing CacheClear with inline cache clear (simpler called on slave webview)

8 years agocreateproject.sh: Use coho & cca to find plugins locally
Andrew Grieve [Tue, 17 Jun 2014 02:43:39 +0000 (22:43 -0400)] 
createproject.sh: Use coho & cca to find plugins locally

8 years agoFix curl example in comments for /zippush
Andrew Grieve [Mon, 9 Jun 2014 18:27:27 +0000 (14:27 -0400)] 
Fix curl example in comments for /zippush

8 years agoAdd HttpServer.ResponseException for easier 500 responses
Andrew Grieve [Thu, 5 Jun 2014 20:20:42 +0000 (16:20 -0400)] 
Add HttpServer.ResponseException for easier 500 responses

8 years agoFix deleteapp?all=1 returning a 500 due to forgetting to return promise
Andrew Grieve [Thu, 5 Jun 2014 20:20:02 +0000 (16:20 -0400)] 
Fix deleteapp?all=1 returning a 500 due to forgetting to return promise

8 years agoMove config.xml into template-overrides/
Andrew Grieve [Tue, 3 Jun 2014 20:30:58 +0000 (16:30 -0400)] 
Move config.xml into template-overrides/

8 years agoSmall fix to UriRemap to remove double forward slash for plugin assets
Andrew Grieve [Tue, 3 Jun 2014 17:52:10 +0000 (13:52 -0400)] 
Small fix to UriRemap to remove double forward slash for plugin assets

8 years agoAdded dynamic ip updating.
Max Woghiren [Tue, 3 Jun 2014 21:16:55 +0000 (17:16 -0400)] 
Added dynamic ip updating.

Also added an option to skip caching when getting the address.

8 years agoAdd --allplugins to createproject.sh to add in more plugins
Andrew Grieve [Tue, 3 Jun 2014 17:32:29 +0000 (13:32 -0400)] 
Add --allplugins to createproject.sh to add in more plugins

8 years agoAdd NOTICE for topcoat.
Andrew Grieve [Mon, 2 Jun 2014 20:37:14 +0000 (16:37 -0400)] 
Add NOTICE for topcoat.

8 years agoUse moment.js for last updated time
Andrew Grieve [Mon, 2 Jun 2014 20:28:25 +0000 (16:28 -0400)] 
Use moment.js for last updated time

8 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-app-harness
Andrew Grieve [Fri, 30 May 2014 20:21:53 +0000 (16:21 -0400)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-app-harness

8 years agoMake view shrink to reveal in-app-menu
Andrew Grieve [Fri, 30 May 2014 20:18:26 +0000 (16:18 -0400)] 
Make view shrink to reveal in-app-menu

8 years agoCB-6818 Add license to CONTRIBUTING.md
Marcel Kinard [Fri, 30 May 2014 16:03:45 +0000 (12:03 -0400)] 
CB-6818 Add license to CONTRIBUTING.md

8 years agoFix HarnessServer menu command
Andrew Grieve [Fri, 30 May 2014 14:24:40 +0000 (10:24 -0400)] 
Fix HarnessServer menu command

8 years agoQuit the active app if it's deleted via HarnessServer
Andrew Grieve [Thu, 29 May 2014 19:54:38 +0000 (15:54 -0400)] 
Quit the active app if it's deleted via HarnessServer

8 years agoForgot to commit iOS changes for overlay change
Andrew Grieve [Thu, 29 May 2014 19:48:44 +0000 (15:48 -0400)] 
Forgot to commit iOS changes for overlay change

8 years agoRemove some dead code left from last commit
Andrew Grieve [Thu, 29 May 2014 19:07:13 +0000 (15:07 -0400)] 
Remove some dead code left from last commit

8 years agoRework Overlay menu to be another view within the main webview.
Andrew Grieve [Thu, 29 May 2014 17:50:44 +0000 (13:50 -0400)] 
Rework Overlay menu to be another view within the main webview.

Much more performant and less complicated this way!

8 years agoDon't use UrlRemap on iOS (buggy with multiple webviews)
Andrew Grieve [Thu, 29 May 2014 17:49:19 +0000 (13:49 -0400)] 
Don't use UrlRemap on iOS (buggy with multiple webviews)

8 years agoDelete pinch to show overlay gesture.
Andrew Grieve [Thu, 29 May 2014 14:54:36 +0000 (10:54 -0400)] 
Delete pinch to show overlay gesture.

8 years agoShow total plugin count in plugin message
Andrew Grieve [Thu, 29 May 2014 02:22:44 +0000 (22:22 -0400)] 
Show total plugin count in plugin message

8 years agoAdd iconURL to Installer (to be shown in the UI in a future commit)
Andrew Grieve [Thu, 29 May 2014 02:22:22 +0000 (22:22 -0400)] 
Add iconURL to Installer (to be shown in the UI in a future commit)

8 years agoAdd ng-cloak to make start-up not flicker the html template
Andrew Grieve [Thu, 29 May 2014 02:21:56 +0000 (22:21 -0400)] 
Add ng-cloak to make start-up not flicker the html template

8 years agoSmall tweak to promises style in AppsService
Andrew Grieve [Thu, 29 May 2014 00:51:49 +0000 (20:51 -0400)] 
Small tweak to promises style in AppsService

8 years agoSet app title & version in app.js instead of ListCtrl
Andrew Grieve [Wed, 28 May 2014 21:07:35 +0000 (17:07 -0400)] 
Set app title & version in app.js instead of ListCtrl

8 years agoDelete dead code & add "all" bucket to PluginMetadata results
Andrew Grieve [Wed, 28 May 2014 21:05:36 +0000 (17:05 -0400)] 
Delete dead code & add "all" bucket to PluginMetadata results

8 years agoUpdate HarnessServer curl examples in the comments
Andrew Grieve [Wed, 28 May 2014 03:07:54 +0000 (23:07 -0400)] 
Update HarnessServer curl examples in the comments

8 years agoAdded unzip percentages.
Max Woghiren [Tue, 27 May 2014 20:07:46 +0000 (16:07 -0400)] 
Added unzip percentages.

8 years agoMade a couple of small bug fixes.
Max Woghiren [Tue, 27 May 2014 18:45:17 +0000 (14:45 -0400)] 
Made a couple of small bug fixes.

Removed trailing slashes from push directory.
Fixed app id when deleting files from an incremental push.

8 years agoUpdate README.md to remove serve references
Andrew Grieve [Tue, 27 May 2014 14:04:28 +0000 (10:04 -0400)] 
Update README.md to remove serve references

8 years agoRemove use of file-system-roots plugin (functionality now built into file plugin)
Andrew Grieve [Tue, 27 May 2014 01:56:11 +0000 (21:56 -0400)] 
Remove use of file-system-roots plugin (functionality now built into file plugin)

8 years agoDelete explicit toNativeURL() since file: is now the default
Andrew Grieve [Tue, 27 May 2014 01:10:21 +0000 (21:10 -0400)] 
Delete explicit toNativeURL() since file: is now the default

8 years agoExplicitly check that startPage exists before attempting to launch
Andrew Grieve [Tue, 27 May 2014 01:10:08 +0000 (21:10 -0400)] 
Explicitly check that startPage exists before attempting to launch

8 years agoharness-push: Allow pushes without config.xml
Andrew Grieve [Mon, 26 May 2014 19:00:54 +0000 (15:00 -0400)] 
harness-push: Allow pushes without config.xml

8 years agoharness-push: Print response body of non 200 responses
Andrew Grieve [Mon, 26 May 2014 19:00:28 +0000 (15:00 -0400)] 
harness-push: Print response body of non 200 responses