"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var appbuilder_livesync_provider_base_1 = require("./appbuilder-livesync-provider-base");
var LiveSyncProvider = (function (_super) {
    __extends(LiveSyncProvider, _super);
    function LiveSyncProvider($androidLiveSyncServiceLocator, $iosLiveSyncServiceLocator) {
        _super.call(this, $androidLiveSyncServiceLocator, $iosLiveSyncServiceLocator);
    }
    LiveSyncProvider.prototype.buildForDevice = function (device) {
        return (function () {
            throw new Error("Application is not installed on device " + device.deviceInfo.identifier + ". Cannot LiveSync changes without installing the application before that.");
        }).future()();
    };
    return LiveSyncProvider;
})(appbuilder_livesync_provider_base_1.AppBuilderLiveSyncProviderBase);
exports.LiveSyncProvider = LiveSyncProvider;
$injector.register("liveSyncProvider", LiveSyncProvider);
