$daoCollection = new wsDAOCollection($core->con);\r
$collection = $daoCollection->selectById($id);\r
\r
+ $ns = $collection->settings['namespace'];\r
+\r
+\r
$vcompo = WS_COLLECTIONS . '/versions/' . $id . '/' . $version . '/composition.json';\r
$composition = json_decode(file_get_contents($vcompo));\r
\r
$traductions[$r->lang_id] = json_decode($r->traductions);\r
}\r
\r
- $d = array('id' => $id, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents);\r
+ $d = array('id' => $id, 'ns' => $ns, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents);\r
$d = array_merge($d, $this->_getManifest($publications, '/fluidbook/collections/versions/' . $id . '/' . $version . '/' . $os, $books, $resolution));\r
\r
$dao = new wsDAOCollection($core->con);\r
$phonegap->setId($collection->settings['namespace']);
$phonegap->setAuthor('Fluidbook', 'contact@fluidbook.com', 'http://www.fluidbook.com');
$phonegap->setVersion('1.0.0');
+ $phonegap->setIcon($compiler->wdir . '/' . $collection->theme['icon']);
+ foreach ($compiler->langs as $l) {
+ $src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
+ $phonegap->setSplash($src);
+ break;
+ }
$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, '/mnt/macbox/Phonegap/Projects/' . $d, 22022);
} else if ($os == 'android') {
- $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Works/Phonegap/Projects/' . $d, 22322);
+ $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);
$phonegap->setPreference('target-device', CubeIT_Mobile_Phonegap::TARGET_TABLET);
$phonegap->setPreference('show-splash-screen-spinner', false);
$phonegap->setPreference('auto-hide-splash-screen', false);
- $phonegap->addFeatures(array('Device', 'Connection', ''));
+ $phonegap->addFeatures(array(
+ CubeIT_Mobile_Phonegap::FEATURE_CONNECTION,
+ CubeIT_Mobile_Phonegap::FEATURE_DEVICE,
+ CubeIT_Mobile_Phonegap::FEATURE_FILE,
+ CubeIT_Mobile_Phonegap::FEATURE_FILETRANSFER,
+ CubeIT_Mobile_Phonegap::FEATURE_STORAGE,
+ CubeIT_Mobile_Phonegap::FEATURE_NOTIFICATION_DIALOG,
+ CubeIT_Mobile_Phonegap::FEATURE_INAPPBROWSER,
+ CubeIT_Mobile_Phonegap::FEATURE_SPLASHSCREEN,
+ CubeIT_Mobile_Phonegap::FEATURE_PUSHNOTIFICATION
+ )
+ );
- $phonegap->run();
+ $full = isset($_GET['ctrl']) && $_GET['ctrl'] == 'true';
+ $phonegap->run($full);
/* $this->_createProject($os, $collection->nom, $collection->settings['namespace']);
$this->_collectionAssets($os, $compiler);