On Thu, Feb 20, 2014 at 6:15 PM, Joe Bowser <[email protected]> wrote:
> https://issues.apache.org/jira/browse/CB-6033 > > Hey > > I'm working on a work-around for SQLite deletion, and I've run into a > couple issues with the code: > > 1. Why are we deprecating FileHelper? It would be helpful if we had a > quick and dirty copy method in here that we can use when we need to do > things like copy SQLite Databases to other areas of internal storage > or to the SD Card. > I added the deprecation. Reason is that as of now, all of the methods within FileHelper have better versions in CordovaResourceApi. CRA does have a "copyResource" method already, so I'd be tempted to say that you should see if that will work for your use-case. Maybe add another overload to it that takes both in and out as a Uri (and uses openOutputStream(uri) for out)? > 2. Does anyone know why Chromium WebView deletes the SQLite db? Will > using this SQLite database cause localStorage to not work? > I'll see if I can dig anything up on this. > > I'm going to throw a simple copy and delete method in the deprecated > class, since that's the only place this makes sense. I know we could > use Apache Commons, but I don't want to add more dependences for this > hack. > > Thoughts? > > Joe >
