Code coverage report for lib/services/platform-project-service-base.js

Statements: 41.67% (10 / 24)      Branches: 0% (0 / 4)      Functions: 25% (2 / 8)      Lines: 41.67% (10 / 24)      Ignored: none     

All files » lib/services/ » platform-project-service-base.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36    1 1 4 4 4   1     1                         1               1   1  
///<reference path="../.d.ts"/>
"use strict";
var PlatformProjectServiceBase = (function () {
    function PlatformProjectServiceBase($fs, $projectData, $projectDataService) {
        this.$fs = $fs;
        this.$projectData = $projectData;
        this.$projectDataService = $projectDataService;
    }
    PlatformProjectServiceBase.prototype.getPluginPlatformsFolderPath = function (pluginData, platform) {
        return pluginData.pluginPlatformsFolderPath(platform);
    };
    PlatformProjectServiceBase.prototype.getAllNativeLibrariesForPlugin = function (pluginData, platform, filter) {
        var _this = this;
        return (function () {
            var pluginPlatformsFolderPath = _this.getPluginPlatformsFolderPath(pluginData, platform), nativeLibraries = [];
            if (pluginPlatformsFolderPath && _this.$fs.exists(pluginPlatformsFolderPath).wait()) {
                var platformsContents = _this.$fs.readDirectory(pluginPlatformsFolderPath).wait();
                nativeLibraries = _(platformsContents)
                    .filter(function (platformItemName) { return filter(platformItemName, pluginPlatformsFolderPath); })
                    .value();
            }
            return nativeLibraries;
        }).future()();
    };
    PlatformProjectServiceBase.prototype.getFrameworkVersion = function (runtimePackageName) {
        var _this = this;
        return (function () {
            _this.$projectDataService.initialize(_this.$projectData.projectDir);
            var frameworkVersion = _this.$projectDataService.getValue(runtimePackageName).wait().version;
            return frameworkVersion;
        }).future()();
    };
    return PlatformProjectServiceBase;
})();
exports.PlatformProjectServiceBase = PlatformProjectServiceBase;