react-native-credentials-manager 0.6.2 → 0.7.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/app.plugin.js +28 -0
- package/package.json +2 -1
package/app.plugin.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// set Info.plist values
|
|
2
|
+
import configPlugin from '@expo/config-plugins';
|
|
3
|
+
|
|
4
|
+
const {createRunOncePlugin, withEntitlementsPlist, withInfoPlist} = configPlugin
|
|
5
|
+
|
|
6
|
+
const withAllowMixedLocalizations = function (config) {
|
|
7
|
+
return withInfoPlist(config, function (config) {
|
|
8
|
+
config.modResults.CFBundleAllowMixedLocalizations =
|
|
9
|
+
config.modResults.CFBundleAllowMixedLocalizations ?? true;
|
|
10
|
+
|
|
11
|
+
return config;
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const withDefaultAppleSignIn = function (config) {
|
|
16
|
+
config = withAllowMixedLocalizations(config);
|
|
17
|
+
return withEntitlementsPlist(config, function (config) {
|
|
18
|
+
config.modResults['com.apple.developer.applesignin'] = ['Default'];
|
|
19
|
+
return config;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const withAppleSignin = (config) => {
|
|
24
|
+
config = withDefaultAppleSignIn(config);
|
|
25
|
+
return config;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default createRunOncePlugin(withAppleSignin, 'apple-signin');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-credentials-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"cpp",
|
|
27
27
|
"*.podspec",
|
|
28
28
|
"react-native.config.js",
|
|
29
|
+
"app.plugin.js",
|
|
29
30
|
"!ios/build",
|
|
30
31
|
"!android/build",
|
|
31
32
|
"!android/gradle",
|