-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.plugin.js
More file actions
29 lines (23 loc) · 871 Bytes
/
Copy pathapp.plugin.js
File metadata and controls
29 lines (23 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// set Info.plist values
import configPlugin from '@expo/config-plugins';
const { createRunOncePlugin, withEntitlementsPlist, withInfoPlist } =
configPlugin;
const withAllowMixedLocalizations = function (config) {
return withInfoPlist(config, function (modConfig) {
modConfig.modResults.CFBundleAllowMixedLocalizations =
modConfig.modResults.CFBundleAllowMixedLocalizations ?? true;
return modConfig;
});
};
const withDefaultAppleSignIn = function (config) {
config = withAllowMixedLocalizations(config);
return withEntitlementsPlist(config, function (modConfig) {
modConfig.modResults['com.apple.developer.applesignin'] = ['Default'];
return modConfig;
});
};
const withAppleSignin = (config) => {
config = withDefaultAppleSignIn(config);
return config;
};
export default createRunOncePlugin(withAppleSignin, 'apple-signin');