@react-native-firebase/auth 18.3.0 → 18.3.2

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,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.3.2](https://github.com/invertase/react-native-firebase/compare/v18.3.1...v18.3.2) (2023-09-02)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/auth
9
+
10
+ ## [18.3.1](https://github.com/invertase/react-native-firebase/compare/v18.3.0...v18.3.1) (2023-08-23)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **auth, android:** avoid crash on react-native < 0.63 ([3fee0d6](https://github.com/invertase/react-native-firebase/commit/3fee0d6da587f56911669307e35558f55107c88e))
15
+
6
16
  ## [18.3.0](https://github.com/invertase/react-native-firebase/compare/v18.2.0...v18.3.0) (2023-07-19)
7
17
 
8
18
  ### Features
@@ -11,7 +11,7 @@ buildscript {
11
11
  }
12
12
 
13
13
  dependencies {
14
- classpath("com.android.tools.build:gradle:7.0.4")
14
+ classpath("com.android.tools.build:gradle:8.1.1")
15
15
  }
16
16
  }
17
17
  }
@@ -59,6 +59,11 @@ project.ext {
59
59
  }
60
60
 
61
61
  android {
62
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
63
+ if (agpVersion >= 7) {
64
+ namespace 'io.invertase.firebase.auth'
65
+ }
66
+
62
67
  defaultConfig {
63
68
  multiDexEnabled true
64
69
  }
@@ -66,9 +71,11 @@ android {
66
71
  disable 'GradleCompatible'
67
72
  abortOnError false
68
73
  }
69
- compileOptions {
70
- sourceCompatibility JavaVersion.VERSION_1_8
71
- targetCompatibility JavaVersion.VERSION_1_8
74
+ if (agpVersion < 8) {
75
+ compileOptions {
76
+ sourceCompatibility JavaVersion.VERSION_11
77
+ targetCompatibility JavaVersion.VERSION_11
78
+ }
72
79
  }
73
80
  }
74
81
 
@@ -1944,7 +1944,10 @@ class ReactNativeFirebaseAuthModule extends ReactNativeFirebaseModule {
1944
1944
  */
1945
1945
  private void promiseRejectAuthException(Promise promise, Exception exception) {
1946
1946
  WritableMap error = getJSError(exception);
1947
- final String sessionId = error.getString("sessionId");
1947
+ String sessionId = null;
1948
+ if (error.hasKey("sessionId")) {
1949
+ sessionId = error.getString("sessionId");
1950
+ }
1948
1951
  final MultiFactorResolver multiFactorResolver = mCachedResolvers.get(sessionId);
1949
1952
  WritableMap resolverAsMap = Arguments.createMap();
1950
1953
  if (multiFactorResolver != null) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '18.3.0';
2
+ module.exports = '18.3.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "18.3.0",
3
+ "version": "18.3.2",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
6
6
  "main": "lib/index.js",
@@ -24,10 +24,10 @@
24
24
  "auth"
25
25
  ],
26
26
  "dependencies": {
27
- "plist": "^3.0.5"
27
+ "plist": "^3.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@react-native-firebase/app": "18.3.0",
30
+ "@react-native-firebase/app": "18.3.2",
31
31
  "expo": ">=47.0.0"
32
32
  },
33
33
  "devDependencies": {
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "cca7053a12ea04c8476f880bd2220f44ee4ae17a"
45
+ "gitHead": "f323891622441c9d59a25ef37b19534db512b372"
46
46
  }