aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/files.js
Commit message (Collapse)AuthorAgeLines
* update Android to Cordova 3.6Struan Donald2015-08-28-173/+0
| | | | | | | | Required due to security issue Remove Android directory as no longer required, move src -> www to match standard layout, update .gitignore to avoid including the standard platform files, update README based on Steve's zurich one
* Make dubug output conditional on a debug flagStruan Donald2013-08-23-14/+14
| | | | | Replace console.log call to a wrapper function that only outputs if we've set a flag in config.
* use a unique name for each photo added to a report in order to get roundStruan Donald2013-07-16-8/+8
| | | | | | what seem to be iOS caching issues on the photo screen if you add, remove and then add a photo. Previously it would display the original photo rather than the new one.
* On android we access photos directly on the file system rather than inStruan Donald2013-07-16-0/+38
| | | | | | | | their own app sandbox as on iOS so we need to copy files instead of moving them as otherwise we end up deleting people's photos which would be bad. As part of this we should avoid trying to copy or move a file on to itself as that fails so check that the source and destination files aren't the same. This should sort out the problems in #43.
* do not try and move photos if the files are the sameStruan Donald2013-07-15-1/+9
|
* instead of using js to inject the correct cordova js file in toStruan Donald2013-07-12-0/+127
index.html restructure things so that the common files are a level down and the platofrm specific ones are directly placed in the relevant project. This both makes for less fuss and also avoids the error with Android < v3 instantiating cordova twice. Note that the iOS common assets are included by a build script rather than a symlink as symlinking doesn't seem to agree with Xcode