react-native-credentials-manager 0.8.1 → 0.8.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.
|
@@ -6,6 +6,7 @@ import androidx.credentials.exceptions.GetCredentialException
|
|
|
6
6
|
import androidx.credentials.exceptions.NoCredentialException
|
|
7
7
|
import com.credentialsmanager.handlers.CredentialHandler
|
|
8
8
|
import com.credentialsmanager.handlers.ErrorHandler
|
|
9
|
+
import com.facebook.react.bridge.Arguments
|
|
9
10
|
import com.facebook.react.bridge.Promise
|
|
10
11
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
11
12
|
import com.facebook.react.bridge.ReadableArray
|
|
@@ -68,11 +69,11 @@ class CredentialsManagerModule(
|
|
|
68
69
|
credentialHandler.createPassword(username, password)
|
|
69
70
|
|
|
70
71
|
// Create success response
|
|
71
|
-
val result =
|
|
72
|
-
"type"
|
|
73
|
-
"username"
|
|
74
|
-
"success"
|
|
75
|
-
|
|
72
|
+
val result = Arguments.createMap().apply {
|
|
73
|
+
putString("type", "password")
|
|
74
|
+
putString("username", username)
|
|
75
|
+
putBoolean("success", true)
|
|
76
|
+
}
|
|
76
77
|
promise.resolve(result)
|
|
77
78
|
} catch (e: CreateCredentialException) {
|
|
78
79
|
ErrorHandler.handleCredentialError(e)
|
|
@@ -6,6 +6,7 @@ import androidx.credentials.exceptions.GetCredentialException
|
|
|
6
6
|
import androidx.credentials.exceptions.NoCredentialException
|
|
7
7
|
import com.credentialsmanager.handlers.CredentialHandler
|
|
8
8
|
import com.credentialsmanager.handlers.ErrorHandler
|
|
9
|
+
import com.facebook.react.bridge.Arguments
|
|
9
10
|
import com.facebook.react.bridge.Promise
|
|
10
11
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
11
12
|
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
@@ -74,11 +75,11 @@ class CredentialsManagerModule(
|
|
|
74
75
|
credentialHandler.createPassword(username, password)
|
|
75
76
|
|
|
76
77
|
// Create success response
|
|
77
|
-
val result =
|
|
78
|
-
"type"
|
|
79
|
-
"username"
|
|
80
|
-
"success"
|
|
81
|
-
|
|
78
|
+
val result = Arguments.createMap().apply {
|
|
79
|
+
putString("type", "password")
|
|
80
|
+
putString("username", username)
|
|
81
|
+
putBoolean("success", true)
|
|
82
|
+
}
|
|
82
83
|
promise.resolve(result)
|
|
83
84
|
} catch (e: CreateCredentialException) {
|
|
84
85
|
ErrorHandler.handleCredentialError(e)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-credentials-manager",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "A React Native library that implements the Credential Manager API for Android. This library allows you to manage passwords and passkeys in your React Native applications.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -126,10 +126,13 @@
|
|
|
126
126
|
"release-it": {
|
|
127
127
|
"git": {
|
|
128
128
|
"commitMessage": "chore: release ${version}",
|
|
129
|
-
"tagName": "v${version}"
|
|
129
|
+
"tagName": "v${version}",
|
|
130
|
+
"requireCommits": true,
|
|
131
|
+
"requireCommitsFail": false
|
|
130
132
|
},
|
|
131
133
|
"npm": {
|
|
132
|
-
"publish": true
|
|
134
|
+
"publish": true,
|
|
135
|
+
"skipChecks": true
|
|
133
136
|
},
|
|
134
137
|
"github": {
|
|
135
138
|
"release": true
|