Fix livesync to Android devices

We are using non-consecutive numbers in our enum to distinguish project types, but the old code uses consecutive ones.

Fix: Use named constants instead of hard-coded numbers. We must resolve the constants inside the method, instead of constructor injection, because these imports are available only in the Cordova CLI.

Fixes bug #273415