@react-native-firebase/storage 18.3.1 → 18.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/android/build.gradle +12 -4
- package/lib/index.js +6 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
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.4.0](https://github.com/invertase/react-native-firebase/compare/v18.3.2...v18.4.0) (2023-09-11)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **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))
|
11
|
+
|
12
|
+
## [18.3.2](https://github.com/invertase/react-native-firebase/compare/v18.3.1...v18.3.2) (2023-09-02)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/storage
|
15
|
+
|
6
16
|
## [18.3.1](https://github.com/invertase/react-native-firebase/compare/v18.3.0...v18.3.1) (2023-08-23)
|
7
17
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/storage
|
package/android/build.gradle
CHANGED
@@ -11,7 +11,7 @@ buildscript {
|
|
11
11
|
}
|
12
12
|
|
13
13
|
dependencies {
|
14
|
-
classpath("com.android.tools.build:gradle:
|
14
|
+
classpath("com.android.tools.build:gradle:8.1.1")
|
15
15
|
}
|
16
16
|
}
|
17
17
|
}
|
@@ -60,6 +60,11 @@ project.ext {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
android {
|
63
|
+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
|
64
|
+
if (agpVersion >= 7) {
|
65
|
+
namespace 'io.invertase.firebase.storage'
|
66
|
+
}
|
67
|
+
|
63
68
|
defaultConfig {
|
64
69
|
multiDexEnabled true
|
65
70
|
}
|
@@ -67,9 +72,12 @@ android {
|
|
67
72
|
disable 'GradleCompatible'
|
68
73
|
abortOnError false
|
69
74
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
75
|
+
|
76
|
+
if (agpVersion < 8) {
|
77
|
+
compileOptions {
|
78
|
+
sourceCompatibility JavaVersion.VERSION_11
|
79
|
+
targetCompatibility JavaVersion.VERSION_11
|
80
|
+
}
|
73
81
|
}
|
74
82
|
}
|
75
83
|
|
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
|
-
|
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.
|
2
|
+
module.exports = '18.4.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/storage",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.4.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.
|
32
|
+
"@react-native-firebase/app": "18.4.0"
|
33
33
|
},
|
34
34
|
"publishConfig": {
|
35
35
|
"access": "public"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "5f6460a87970d8b6013530de980bc760ddc70f90"
|
38
38
|
}
|