@react-native-firebase/app 14.2.4 → 14.3.3
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 +23 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/ios/RNFBApp/RNFBPreferences.h +2 -2
- package/ios/RNFBApp/RNFBPreferences.m +3 -3
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/internal/registry/namespace.js +12 -2
- package/lib/version.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,29 @@
|
|
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
|
+
## [14.3.3](https://github.com/invertase/react-native-firebase/compare/v14.3.2...v14.3.3) (2022-02-12)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **android, sdk:** bump firebase-android-sdk to 29.1.0 ([292c424](https://github.com/invertase/react-native-firebase/commit/292c4240bb6220beddbbdb0db7e6700ddd41a24f))
|
11
|
+
|
12
|
+
## [14.3.2](https://github.com/invertase/react-native-firebase/compare/v14.3.1...v14.3.2) (2022-02-10)
|
13
|
+
|
14
|
+
### Bug Fixes
|
15
|
+
|
16
|
+
- **app, ios:** use NSInteger not NSInteger\* for prefs ([0148901](https://github.com/invertase/react-native-firebase/commit/01489010c920fc8e367a04f9decb8a8c94c5d8c1))
|
17
|
+
- **ios, sdk:** bump to firebase-ios-sdk 8.12.1 ([da6cf01](https://github.com/invertase/react-native-firebase/commit/da6cf013815c5f8f43e4c03e721f3c270a5834e2))
|
18
|
+
|
19
|
+
## [14.3.1](https://github.com/invertase/react-native-firebase/compare/v14.3.0...v14.3.1) (2022-02-07)
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
23
|
+
- **app:** specify hyphenated package name in import advice ([5e898ec](https://github.com/invertase/react-native-firebase/commit/5e898ecb49bb73999c7ea5172f8f17753a71a90a)), closes [#6009](https://github.com/invertase/react-native-firebase/issues/6009)
|
24
|
+
|
25
|
+
# [14.3.0](https://github.com/invertase/react-native-firebase/compare/v14.2.4...v14.3.0) (2022-01-26)
|
26
|
+
|
27
|
+
**Note:** Version bump only for package @react-native-firebase/app
|
28
|
+
|
6
29
|
## [14.2.4](https://github.com/invertase/react-native-firebase/compare/v14.2.3...v14.2.4) (2022-01-24)
|
7
30
|
|
8
31
|
### Bug Fixes
|
@@ -25,13 +25,13 @@
|
|
25
25
|
|
26
26
|
- (void)setBooleanValue:(NSString *)key boolValue:(BOOL)boolValue;
|
27
27
|
|
28
|
-
- (void)setIntegerValue:(NSString *)key integerValue:(NSInteger
|
28
|
+
- (void)setIntegerValue:(NSString *)key integerValue:(NSInteger)integerValue;
|
29
29
|
|
30
30
|
- (void)setStringValue:(NSString *)key stringValue:(NSString *)stringValue;
|
31
31
|
|
32
32
|
- (NSString *)getStringValue:(NSString *)key defaultValue:(NSString *)defaultValue;
|
33
33
|
|
34
|
-
- (NSInteger
|
34
|
+
- (NSInteger)getIntegerValue:(NSString *)key defaultValue:(NSInteger)defaultValue;
|
35
35
|
|
36
36
|
- (NSDictionary *)getAll;
|
37
37
|
|
@@ -55,14 +55,14 @@ static RNFBPreferences *sharedInstance;
|
|
55
55
|
[_userDefaults synchronize];
|
56
56
|
}
|
57
57
|
|
58
|
-
- (void)setIntegerValue:(NSString *)key integerValue:(NSInteger
|
58
|
+
- (void)setIntegerValue:(NSString *)key integerValue:(NSInteger)integerValue {
|
59
59
|
[_userDefaults setInteger:(NSInteger)integerValue forKey:key];
|
60
60
|
[_userDefaults synchronize];
|
61
61
|
}
|
62
62
|
|
63
|
-
- (NSInteger
|
63
|
+
- (NSInteger)getIntegerValue:(NSString *)key defaultValue:(NSInteger)defaultValue {
|
64
64
|
if ([_userDefaults objectForKey:key] == nil) return defaultValue;
|
65
|
-
return
|
65
|
+
return [_userDefaults integerForKey:key];
|
66
66
|
}
|
67
67
|
|
68
68
|
- (NSString *)getStringValue:(NSString *)key defaultValue:(NSString *)defaultValue {
|
@@ -194,11 +194,16 @@ function firebaseRootModuleProxy(firebaseNamespace, moduleNamespace) {
|
|
194
194
|
return getOrCreateModuleForRoot(moduleNamespace);
|
195
195
|
}
|
196
196
|
|
197
|
+
moduleWithDashes = moduleNamespace
|
198
|
+
.split(/(?=[A-Z])/)
|
199
|
+
.join('-')
|
200
|
+
.toLowerCase();
|
201
|
+
|
197
202
|
throw new Error(
|
198
203
|
[
|
199
204
|
`You attempted to use 'firebase.${moduleNamespace}' but this module could not be found.`,
|
200
205
|
'',
|
201
|
-
`Ensure you have installed and imported the '@react-native-firebase/${
|
206
|
+
`Ensure you have installed and imported the '@react-native-firebase/${moduleWithDashes}' package.`,
|
202
207
|
].join('\r\n'),
|
203
208
|
);
|
204
209
|
}
|
@@ -215,11 +220,16 @@ export function firebaseAppModuleProxy(app, moduleNamespace) {
|
|
215
220
|
return getOrCreateModuleForApp(app, moduleNamespace);
|
216
221
|
}
|
217
222
|
|
223
|
+
moduleWithDashes = moduleNamespace
|
224
|
+
.split(/(?=[A-Z])/)
|
225
|
+
.join('-')
|
226
|
+
.toLowerCase();
|
227
|
+
|
218
228
|
throw new Error(
|
219
229
|
[
|
220
230
|
`You attempted to use "firebase.app('${app.name}').${moduleNamespace}" but this module could not be found.`,
|
221
231
|
'',
|
222
|
-
`Ensure you have installed and imported the '@react-native-firebase/${
|
232
|
+
`Ensure you have installed and imported the '@react-native-firebase/${moduleWithDashes}' package.`,
|
223
233
|
].join('\r\n'),
|
224
234
|
);
|
225
235
|
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// generated by genversion
|
2
|
-
module.exports = '14.
|
2
|
+
module.exports = '14.3.3';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.3.3",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.",
|
6
6
|
"main": "lib/index.js",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"react-native": "*"
|
57
57
|
},
|
58
58
|
"dependencies": {
|
59
|
-
"@expo/config-plugins": "^4.0.
|
59
|
+
"@expo/config-plugins": "^4.0.18",
|
60
60
|
"opencollective-postinstall": "^2.0.1",
|
61
61
|
"superstruct": "^0.6.2"
|
62
62
|
},
|
@@ -65,19 +65,19 @@
|
|
65
65
|
},
|
66
66
|
"sdkVersions": {
|
67
67
|
"ios": {
|
68
|
-
"firebase": "8.
|
68
|
+
"firebase": "8.12.1"
|
69
69
|
},
|
70
70
|
"android": {
|
71
71
|
"minSdk": 19,
|
72
72
|
"targetSdk": 31,
|
73
73
|
"compileSdk": 31,
|
74
74
|
"buildTools": "30.0.3",
|
75
|
-
"firebase": "29.0
|
75
|
+
"firebase": "29.1.0",
|
76
76
|
"firebaseCrashlyticsGradle": "2.8.1",
|
77
77
|
"firebasePerfGradle": "1.4.1",
|
78
78
|
"gmsGoogleServicesGradle": "4.3.10",
|
79
|
-
"playServicesAuth": "20.0
|
79
|
+
"playServicesAuth": "20.1.0"
|
80
80
|
}
|
81
81
|
},
|
82
|
-
"gitHead": "
|
82
|
+
"gitHead": "55dc55c8a844ba8a400e0b99bc342269421ba23c"
|
83
83
|
}
|