$res.='<h3>' . __('Paramètres avancés') . '</h3>';
$res.='<table class="max">';
+ $res.='<tr><td class="min nowrap">' . __('Activity') . '</td><td>' . form::field(array('settings[activity]', 'activity'), 20, 64, $collection->settings['activity']) . '</td></tr>';
$res.='<tr><td class="min nowrap">' . __('Build') . '</td><td>' . form::field(array('settings[build]', 'build'), 10, 64, $collection->settings['build']) . '</td></tr>';
$res.='<tr><td class="min nowrap">' . __('Version') . '</td><td>' . form::field(array('settings[version]', 'version'), 10, 64, $collection->settings['version']) . '</td></tr>';
$res.='<tr><td class="min nowrap">' . __('Full offline') . '</td><td>' . form::checkbox(array('settings[offline]', 'offline'), 1, $collection->settings['offline']) . '</td></tr>';
$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->setVersion($collection->settings['version']);
+ $phonegap->setBuild($collection->settings['build']);
+ $phonegap->setNamespace($collection->settings['namespace']);
+ $phonegap->setActivity($collection->settings['activity']);
+
foreach ($compiler->langs as $l) {
$src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
$phonegap->setSplash($src, $l);
if ($os == 'ios') {
$phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', '', '/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022);
} else if ($os == 'android') {
+ $manifestType = $collection->settings['offline'] ? 'Offline' : 'Online';
+ $phonegap->setSourceVariables(array('obbmainsize' => '123456L'));
+ $phonegap->setManifest(WS_COMPILE_ASSETS . '/_html5app/_android/AndroidManifest' . $manifestType . '.xml');
+ $phonegap->setMain(WS_COMPILE_ASSETS . '/_html5app/_android/Main' . $manifestType . '.java');
$phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Phonegap/Projects/' . $d, '/mnt/vincent/cygdrive/h/Phonegap/Projects/' . $d, 22322);
}
$phonegap->setPreference('orientation', CubeIT_Mobile_Phonegap::ORIENTATION_PORTRAIT);
if (isset($collection->settings['offline']) && $collection->settings['offline']) {
$p = $compiler->getPublishedVersionPath($os);
+
$phonegap->addAdditionalSource('publications', $p);
$exs = explode("\n", $collection->settings['offline_exclude']);
}
/**
- *
+ *
* @param string $os
* @param wsHTML5AppCompiler $compiler
*/
$this->_iosPlugin($dir, 'ExternalFileUtil');
}
} elseif ($os == 'android') {
-
+
}
}
protected function _iosPlugin($dir, $plugin) {
// git@github.com:phonegap-build/PushPlugin.git
$cl = new CubeIT_CommandLine('/usr/local/bin/plugman');
- $cl->setManualArg('--platform ios');
- $cl->setManualArg('--project ' . $dir);
- $cl->setManualArg('--plugin /Phonegap/Plugins/' . $plugin);
+ $cl->setManualArg(' --platform ios');
+ $cl->setManualArg(' --project ' . $dir);
+ $cl->setManualArg(' --plugin /Phonegap/Plugins/' . $plugin);
$cl->setSSH('paris.cubedesigners.com', 'vincent', '', 22022);
$cl->execute();
}
$lftp->setArg('e', implode(';', $commandes));
$lftp->setArg(null, $u['host']);
$lftp->execute();
-
- fb($lftp->commande);
- fb($lftp->output);
}
protected function _rsync($src, $dest, $erase = false, $chown = null) {
protected function _download() {
$r = wsPackager::package($this->book_id, $this->version);
- fb($r);
$this->x->addRedirection($r);
}
}
}
-
-?>