@react-native-firebase/storage 18.3.2 → 18.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [18.5.0](https://github.com/invertase/react-native-firebase/compare/v18.4.0...v18.5.0) (2023-09-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **storage, ios:** remove '443' port from iOS download URLs ([5c687a8](https://github.com/invertase/react-native-firebase/commit/5c687a82dc8272a0d62c2b63cc0206ae6ef99d2f))
11
+
12
+ ## [18.4.0](https://github.com/invertase/react-native-firebase/compare/v18.3.2...v18.4.0) (2023-09-11)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **storage, android:** honor android_bypass_emulator_url_remap flag ([#7326](https://github.com/invertase/react-native-firebase/issues/7326)) ([794e081](https://github.com/invertase/react-native-firebase/commit/794e081134ca23d94174b9d4acd9bca7c403e8ad))
17
+
6
18
  ## [18.3.2](https://github.com/invertase/react-native-firebase/compare/v18.3.1...v18.3.2) (2023-09-02)
7
19
 
8
20
  **Note:** Version bump only for package @react-native-firebase/storage
@@ -110,7 +110,14 @@ RCT_EXPORT_METHOD(getDownloadURL
110
110
  if (error != nil) {
111
111
  [self promiseRejectStorageException:reject error:error];
112
112
  } else {
113
- resolve([URL absoluteString]);
113
+ NSString *url = URL.absoluteString;
114
+
115
+ if ([url rangeOfString:@":443"].location != NSNotFound) {
116
+ NSRange replaceRange = [url rangeOfString:@":443"];
117
+ url = [url stringByReplacingCharactersInRange:replaceRange withString:@""];
118
+ }
119
+
120
+ resolve(url);
114
121
  }
115
122
  }];
116
123
  }
package/lib/index.js CHANGED
@@ -184,8 +184,13 @@ class FirebaseStorageModule extends FirebaseModule {
184
184
  if (!host || !isString(host) || !port || !isNumber(port)) {
185
185
  throw new Error('firebase.storage().useEmulator() takes a non-empty host and port');
186
186
  }
187
+
187
188
  let _host = host;
188
- if (isAndroid && _host) {
189
+
190
+ const androidBypassEmulatorUrlRemap =
191
+ typeof this.firebaseJson.android_bypass_emulator_url_remap === 'boolean' &&
192
+ this.firebaseJson.android_bypass_emulator_url_remap;
193
+ if (!androidBypassEmulatorUrlRemap && isAndroid && _host) {
189
194
  if (_host === 'localhost' || _host === '127.0.0.1') {
190
195
  _host = '10.0.2.2';
191
196
  // eslint-disable-next-line no-console
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '18.3.2';
2
+ module.exports = '18.5.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/storage",
3
- "version": "18.3.2",
3
+ "version": "18.5.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files directly from your device and from your Firebase Cloud Storage bucket.",
6
6
  "main": "lib/index.js",
@@ -29,10 +29,10 @@
29
29
  "download"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@react-native-firebase/app": "18.3.2"
32
+ "@react-native-firebase/app": "18.5.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "f323891622441c9d59a25ef37b19534db512b372"
37
+ "gitHead": "c9b695aa8fd75d5a1d070ecbb6bb9ac4e9ff062e"
38
38
  }