You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make creating DataStore files more resilient (#7440)
Prepare the DataStore files directly in the Sessions SDK, instead of
relying on DataStore to do it.
DataStore uses the old `File.mkdirs` api, which lacks any meaningful
error messages. This will use the better `Files.createDirectories` api
if available, which has proper error messages.
Also renamed the parent directory from `aqs` to `firebaseSessions` to
avoid any collision with any other libraries that might use DataStore
and a 3 letter file name. If there is an unexpected file where the
`firebaseSessions` directory should be, this will safely remove it.
Tested manually by creating the conflicting file and running the
Sessions Test App on both old and new api levels.
0 commit comments