$d = str_replace('.', '/', $collection->settings['namespace']);
$dest = $d . '/www/';
- $phonegap = new CubeIT_Mobile_Phonegap();
+ $phonegap = CubeIT_Mobile_Phonegap::create($os);
$phonegap->setName($collection->nom);
$phonegap->setId($collection->settings['namespace']);
$phonegap->setAuthor('Fluidbook', 'contact@fluidbook.com', 'http://www.fluidbook.com');
$phonegap->setVersion('1.0.0');
- $phonegap->setPlatform($os);
$phonegap->setWWWDirectory($dir);
if ($os == 'ios') {
- $phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', '/Phonegap/Projects/' . $d, 22022);
+ $phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', '', '/Phonegap/Projects/' . $d, 22022);
} else if ($os == 'android') {
- $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'h:/Works/Phonegap/Projects/' . $d, 22322);
+ $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Works/Phonegap/Projects/' . $d, 22322);
}
$phonegap->setPreference('orientation', CubeIT_Mobile_Phonegap::ORIENTATION_PORTRAIT);
$phonegap->setPreference('target-device', CubeIT_Mobile_Phonegap::TARGET_TABLET);