Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Remove use of file-system-roots plugin (functionality now built into …
…file plugin)
  • Loading branch information
agrieve committed May 27, 2014
1 parent a8c23d6 commit 56e494c2ade8b231d04c62059fc3da148bf1aece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
@@ -79,7 +79,6 @@ echo Installing plugins.
org.apache.cordova.device \
org.chromium.socket \
org.chromium.zip \
org.apache.cordova.file-system-roots \
--searchpath="$PLUGIN_SEARCH_PATH"
# org.apache.cordova.device isn't used directly, but is convenient to test mobilespec.

@@ -44,14 +44,8 @@ myApp.factory('urlCleanup', function() {
});

document.addEventListener('deviceready', function() {
cordova.filesystem.getDataDirectory(false, function(dirEntry) {
myApp.value('INSTALL_DIRECTORY', dirEntry.toURL() + 'apps/');
myApp.value('APPS_JSON', dirEntry.toURL() + 'apps.json');
window.requestFileSystem(window.TEMPORARY, 1 * 1024 * 1024, function(fs) {
myApp.value('TEMP_DIR', fs.root.toURL());
angular.bootstrap(document, ['CordovaAppHarness']);
}, function() {
console.error('Failed to get temporary FS');
});
});
myApp.value('INSTALL_DIRECTORY', cordova.file.dataDirectory + 'apps/');
myApp.value('APPS_JSON', cordova.file.dataDirectory + 'apps.json');
myApp.value('TEMP_DIR', cordova.file.tempDirectory || cordova.file.cacheDirectory);
angular.bootstrap(document, ['CordovaAppHarness']);
}, false);

0 comments on commit 56e494c

Please sign in to comment.