All files / src/setupTools/config index.js

81.25% Statements 13/16
50% Branches 2/4
100% Functions 0/0
78.57% Lines 11/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 342x   2x   2x 2x 2x   2x           2x 2x 2x     2x                     2x      
import { replaceHomeFolder } from '../../systemTools/fileutils';
 
const isRunningOnWindows = process.platform === 'win32';
 
let androidPlatform = 'linux';
let tizenPlatform = 'ubuntu';
let tizenExtension = 'bin';
 
Iif (isRunningOnWindows) {
    androidPlatform = 'windows';
    tizenPlatform = 'windows';
    tizenExtension = 'exe';
}
 
Eif (process.platform === 'darwin') {
    tizenPlatform = 'macos';
    tizenExtension = 'dmg';
}
 
export default {
    android: {
        sdkUrl: `https://dl.google.com/android/repository/sdk-tools-${androidPlatform}-4333796.zip`,
        downloadLocation: replaceHomeFolder(`~/sdk-tools-${androidPlatform}-4333796.zip`),
        location: replaceHomeFolder('~/Android')
    },
    tizen: {
        sdkUrl: `http://download.tizen.org/sdk/Installer/tizen-studio_3.3/web-ide_Tizen_Studio_3.3_${tizenPlatform}-64.${tizenExtension}`,
        downloadLocation: replaceHomeFolder(`~/web-ide_Tizen_Studio_3.3_${tizenPlatform}-64.${tizenExtension}`),
    },
    webos: {
        downloadLink: 'http://webostv.developer.lge.com/sdk/installation/#',
    }
};