Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent paths with/out trailing slashes in firebase.storage.Native #1200

Closed
Haraldson opened this issue Jun 10, 2018 · 3 comments
Closed
Assignees
Labels
platform: ios plugin: storage Firebase Cloud Storage

Comments

@Haraldson
Copy link

Issue

The paths in firebase.storage.Native are inconsistent – it would be nice if they were all either with or without trailing slashes, in order to simplify building file paths to local resources.

firebase.storage.Native.TEMP_DIRECTORY_PATH has a trailing slash.
firebase.storage.Native.DOCUMENT_DIRECTORY_PATH does not have a trailing slash.


In addition to these things, TEMP_DIRECTORY_PATH is listed as TEMPORARY_DIRECTORY_PATH, but isn’t available as a property in firebase.storage.Native.

Environment

  1. Application Target Platform: iOS
  2. Development Operating System: macOS High Sierra
  3. Build Tools: Xcode 9.3
  4. React Native version: 0.55.3
  5. RNFirebase Version: 4.2.0
  6. Firebase Module: Storage
@chrisbianca chrisbianca added the plugin: storage Firebase Cloud Storage label Jun 18, 2018
@Salakar Salakar self-assigned this Jul 1, 2018
@Salakar
Copy link
Member

Salakar commented Jul 1, 2018

Thanks for reporting this issue.

We're aware that Storage has fallen behind slightly on React Native Firebase and would like to bring it up to speed again. I will close this issue for now and track it as well as other issues collectively over on the Storage improvements proposal to be addressed in a future release. See #1260

@Salakar Salakar closed this as completed Jul 1, 2018
@Salakar
Copy link
Member

Salakar commented Jul 7, 2018

@Haraldson thanks for reporting this.

Have just fixed this pending v4.3.0 release. For consistency all paths have been changed to be without a trailing slash as this was the least breaking change. Additionally TEMP_DIRECTORY_PATH was missing on android and has been added, was already there on iOS.

Salakar added a commit that referenced this issue Jul 7, 2018
@Salakar
Copy link
Member

Salakar commented Jul 10, 2018

@Haraldson thanks again for reporting this, fix is now live in the v4.3.0 release.


Loving react-native-firebase and the support we provide? Please consider supporting us with any of the below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: ios plugin: storage Firebase Cloud Storage
Projects
None yet
Development

No branches or pull requests

3 participants