2017 © Pedro Peláez
 

library svn-agent-host

A native messaging host to handle SVN commands received from specific Chrome extension.

image

crowdstar/svn-agent-host

A native messaging host to handle SVN commands received from specific Chrome extension.

  • Friday, June 29, 2018
  • by deminy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Build Status AppVeyor Build Status Latest Stable Version Latest Unstable Version License, (*1)

A native messaging host to handle SVN commands received from specific Chrome extension., (*2)

The host program is built for Mac and Linux. For Windows users, you may have the host program installed in Ubuntu or some other Linux distribution through the Windows Subsystem for Linux., (*3)

This repository was for an internal project at Glu Mobile. We make part of the whole project open source to share our experience on, (*4)

Run Tests

We use Docker to setup our test environments. You may run unit tests, coding style checks, and other tests on different versions of PHP and Subversion installations (prepared with Docker) using following commands:, (*5)

PHP_VERSION=7.0    SVN_VERSION=1.8.19 ./bin/ci-on-linux.sh
PHP_VERSION=7.1    SVN_VERSION=1.9.9  ./bin/ci-on-linux.sh
PHP_VERSION=7.2    SVN_VERSION=1.10.3 ./bin/ci-on-linux.sh
PHP_VERSION=7.3    SVN_VERSION=1.11.0 ./bin/ci-on-linux.sh
PHP_VERSION=7.4    SVN_VERSION=1.13.0 ./bin/ci-on-linux.sh
# or, more specifically:
PHP_VERSION=7.1.19 SVN_VERSION=1.10.0 ./bin/ci-on-linux.sh

To run unit tests with current PHP and Subversion installation on your box, just execute following commands directly:, (*6)

./bin/ci-on-osx.sh

Demo Code

Following demo code shows how to communicate with the native message host from a Chrome extension., (*7)

// content.js: a Content Script file.
window.addEventListener(
    "message",
    function (event) {
        chrome.runtime.sendMessage(
            event.data,
            function (response) {
                console.log('response from the background script', response);
            }
        );
    },
    false
);
window.postMessage({action: "create", data: {"path": "path/1"}}, "*");

// background.js: a Background Script file.
chrome.runtime.onMessage.addListener(
    function (request, sender, sendResponse) {
        chrome.runtime.sendNativeMessage(
            'com.glu.crowdstar.svnagent', // name of the native messaging host.
            request,
            function (response) {
                console.log("response from the native messaging host: ", response);
                // sendResponse(response);
            }
        );

        return true;
    }
);

The Versions

29/06 2018

dev-master

9999999-dev https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

29/06 2018

1.0.1

1.0.1.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

16/06 2018

1.0.0

1.0.0.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

12/06 2018

0.0.x-dev

0.0.9999999.9999999-dev https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

09/06 2018

0.0.4

0.0.4.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

05/06 2018

0.0.3

0.0.3.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

31/05 2018

0.0.2

0.0.2.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

proprietary

The Requires

 

The Development Requires

30/05 2018

0.0.1

0.0.1.0 https://www.glu.com

A native messaging host to handle SVN commands received from specific Chrome extension.

  Sources   Download

commercial

The Requires

 

The Development Requires