cordova-app-harness.git
19 months agoAdd github pull request template master
Shazron Abdullah [Wed, 5 Oct 2016 05:31:46 +0000 (22:31 -0700)] 
Add github pull request template

3 years agoFix up mistakes from cherry-picks
Andrew Grieve [Wed, 13 May 2015 02:42:05 +0000 (22:42 -0400)] 
Fix up mistakes from cherry-picks

3 years agoUse npm-named plugins rather than CPR plugins
Andrew Grieve [Wed, 29 Apr 2015 20:29:21 +0000 (16:29 -0400)] 
Use npm-named plugins rather than CPR plugins

3 years agoFix AppHarnessUI.java to work with latest cordova-android changes & to forward lifecy...
Andrew Grieve [Wed, 29 Apr 2015 20:28:48 +0000 (16:28 -0400)] 
Fix AppHarnessUI.java to work with latest cordova-android changes & to forward lifecycle events (minus onActivityResult)

3 years agoTweak harness-push/README.md to say port forwarding no longer required
Andrew Grieve [Tue, 17 Mar 2015 19:17:44 +0000 (15:17 -0400)] 
Tweak harness-push/README.md to say port forwarding no longer required

3 years agoHook up the whitelist plugin for loaded apps
Andrew Grieve [Tue, 17 Mar 2015 14:22:55 +0000 (10:22 -0400)] 
Hook up the whitelist plugin for loaded apps

3 years agoAdd cordova-plugin-file assets build hook
Andrew Grieve [Tue, 17 Mar 2015 14:22:20 +0000 (10:22 -0400)] 
Add cordova-plugin-file assets build hook

The plugin will add it itself eventually.

3 years agoDisable remapper in order to pick up custom CSP tags for Chrome Apps
Andrew Grieve [Fri, 13 Mar 2015 15:05:28 +0000 (11:05 -0400)] 
Disable remapper in order to pick up custom CSP tags for Chrome Apps

May want to re-enable and make mapping more complicated for performance
reasons.

3 years agocreateproject.sh: Add whitelist plugin and --link platforms / plugins
Andrew Grieve [Fri, 13 Mar 2015 14:58:38 +0000 (10:58 -0400)] 
createproject.sh: Add whitelist plugin and --link platforms / plugins

3 years agoUpdate Android code to work with latest 4.0.x
Andrew Grieve [Fri, 13 Mar 2015 14:58:00 +0000 (10:58 -0400)] 
Update Android code to work with latest 4.0.x

3 years agoMake harnessclient compatible with node 0.12 as well as 0.10
Andrew Grieve [Thu, 5 Mar 2015 20:17:54 +0000 (15:17 -0500)] 
Make harnessclient compatible with node 0.12 as well as 0.10

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

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

3 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)

3 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.

3 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)

3 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.

3 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.

3 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.

3 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

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

3 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)

3 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

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

3 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

3 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.

3 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

3 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

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

3 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

3 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

3 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 :(

3 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

3 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.

3 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.

3 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).

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

3 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.

3 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

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

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

3 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).

3 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

3 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

3 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"

3 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

3 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()

3 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

3 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.

3 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

3 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

3 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)

3 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

3 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

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

3 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

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

3 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.

3 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.

3 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)

3 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

3 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

3 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.

3 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

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

3 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

3 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

3 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)

3 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

3 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)

3 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

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

3 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

3 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

3 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

3 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)

3 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

3 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

3 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

3 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

3 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/

3 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

3 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.

3 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

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

3 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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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!

3 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)

3 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.

3 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

3 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)

3 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

3 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